Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 10 of 10

Thread: Add To Cart error

  1. #1
    Sharpleaf is offline Junior Member
    Join Date
    Mar 2010
    Posts
    12

    Default Add To Cart error

    Whenever you click on a category and go to the page which lists the items in that category there are "add to cart " and "add to wish list" buttons. I assume these are being generated from the entity.simpleproductlist.xml.config file line that says
    Code:
    <xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 0, 'left')" disable-output-escaping="yes" />
    However when I click on them... nothing happens!

    When I click on "Read More" or on the name of an item and go to it's solo view (or product view or whatever it's called) the "Add to cart" and "Add to wish list" buttons DO work.....

    O.k. now lets go back to the page that lists all of the items in a category. If I go to the error console on Firefox or Internet Explorer (not in the admin section, but rather the "this page has loaded, but with errors" console) it shows this message:
    Code:
    Error: aspdnsf is not defined
    Source File: http://localhost/storefront_arg/c-2-asb-buckles.aspx
    Line: 254
    "Line: 254" is the one in bold below:

    Code:
    <script type="text/javascript" language="Javascript" >
        $window_addLoad(function(){ 
            var ctrl_AddToCartForm_81637_10786 = new aspdnsf.Controls.AddToCartForm(81637, 10786); 
            ctrl_AddToCartForm_81637_10786.setValidationRoutine( function(){ return AddToCartForm_81637_10786_Validator(theForm) } );
            ctrl_AddToCartForm_81637_10786.setUseAjaxBehavior(false);
            ctrl_AddToCartForm_81637_10786.registerButton('AddToCartButton_81637_10786', 0);
            ctrl_AddToCartForm_81637_10786.registerButton('AddToWishButton_81637_10786', 1);
        });</script>
    That error doesn't occur in the solo/product view yet the same line of code exists.

    I've looked in a lot of places and compared old to new version of various xml.config files, but I 'm missing something.

    Any help would be greatly appreciated!

    Details: ASPDNSF Version 9.0.1.2 upgraded from version 8 which in turn was recently upgraded from version 7.

  2. #2
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    Can you send this over to our support team to investigate?

    Thanks.

  3. #3
    Sharpleaf is offline Junior Member
    Join Date
    Mar 2010
    Posts
    12

    Red face

    This is going to sound really dumb of me, but where do I do that?

  4. #4
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    Curious.

    In your template.master (or whatever template you are using), is both formValidate.js and core.js referenced?

    That might be causing the javascript error...
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  5. #5
    Mike The Last Boyscout is offline User
    Join Date
    Nov 2008
    Posts
    254

    Default

    Thanks Matt for chiming in there to help! Much appreciated!

    To submit a ticket to support, please go to: https://support.aspdotnetstorefront.com
    and click the "Submit A Ticket" link.

  6. #6
    Sharpleaf is offline Junior Member
    Join Date
    Mar 2010
    Posts
    12

    Default

    Quote Originally Posted by mbertulli View Post
    Curious.

    In your template.master (or whatever template you are using), is both formValidate.js and core.js referenced?

    That might be causing the javascript error...
    Yes they are both referenced. Just to make sure, however, is this the way it should look?

    Code:
    <head id="Head1" runat="server"> 
       *some stuff not pertinent to the issue, so I cut it, and then...*
    
    	<script type="text/javascript" src="jscripts/formValidate.js"></script>
    	<script type="text/javascript" src="jscripts/core.js"></script>
    
    
    </head>

  7. #7
    Sharpleaf is offline Junior Member
    Join Date
    Mar 2010
    Posts
    12

    Default

    Quote Originally Posted by AspDotNetStorefront Staff - Mike View Post
    Thanks Matt for chiming in there to help! Much appreciated!

    To submit a ticket to support, please go to: https://support.aspdotnetstorefront.com
    and click the "Submit A Ticket" link.
    Done and done

  8. #8
    Sharpleaf is offline Junior Member
    Join Date
    Mar 2010
    Posts
    12

    Default

    Just for anyone that may stumble across this searching for the same answer:

    I submitted a ticket on the issue with the same information I posted above and here is what they told me.

    Please backup the following files:

    App_Code/ShowEntityPage.cs
    showcategory.aspx.cs
    showdistributor.aspx.cs
    showgenre.aspx.cs
    showlibrary.aspx.cs
    showmanufacturer.aspx.cs
    showsection.aspx.cs
    showvector.aspx.cs

    Then replace them with the ones provide in the attachment.
    I can't put those files up here (of course) but I just wanted to let you know that it worked! So if anyone finds this thread with the same issue, submit a ticket and they can help you

  9. #9
    brianperry is offline Member
    Join Date
    Sep 2005
    Posts
    41

    Default will this fix happen in 9.0.1.3

    is this issue fixed in 9.0.1.3 or do i need to ask for the fix files

  10. #10
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That update will be in the 9.0.1.3 release, that should be out in the next couple of days.