in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Add to Cart is always disabled - Attributes

Last post 07-04-2009 12:28 AM by halozero. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-08-2008 3:34 AM

    Add to Cart is always disabled - Attributes

    Hello,

    I just noticed that the Add to Cart and quantity dropdown are disabled when my products have one or more attributes. I select the attributes (required or not) and all there is is a Javascript error ")" missing on line 65....

    I saw the Add to cart working once. All SKU's are generated and have inventory. At one point, an inventory item started to give this issues. I thought it was limited to this item, but later found out all inventory now is behaving like this...

    I reinstalled dashCommerce fresh from .org - Same Javascript error.

    Any ideas?

    M

  • 06-08-2008 10:02 AM In reply to

    Re: Add to Cart is always disabled - Attributes

    I tried every combination and finnaly found the issue - BUG, LIMTATION

    Attribute Names can't have quote signs, as it screwed up the javascript for ajax. I had an attribute caled "Women's Size" - notice the single quote. Renaming it to "Women - Size" fixed the issue. I guess one would not allow quotes in attribute name admin validator...

    Maye it would be wise to verify other instances of this applying to other fields.

    Any ideas to address this? Validator or something else? 

    Michael

  • 06-10-2008 3:41 PM In reply to

    Re: Add to Cart is always disabled - Attributes

    Just add a validator to the field. Use the regularexpression validator.

  • 07-04-2009 12:28 AM In reply to

    Re: Add to Cart is always disabled - Attributes

     Perhaps you could write in ascript to replace disallowed characters with their HTML special character equivalents so the error can be avoided (e.g. replace the ' with ’).

Page 1 of 1 (4 items)