Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Ajax quantity field?

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 536 Views
  • inCharge
    Avatar
    Community Member
    102 Posts

    Ajax quantity field? Link to this post

    I'm using the latest Burnbright code i.e.
    svn checkout http://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright/ burnbright

    The product quantity control looks like Ajax should be enabled...
    <input type="text" class="ajaxQuantityField"...

    ...but I can't get it to work. Has anyone got it working? If so, please can you post or pm a link to a working site?

    It looks like ecommerce.js is required. That's missing from the product and basket pages, but it's present on the checkout page, although Ajax still isn't enabled there either.

    If Ajax isn't enabled, it should degrade gracefully. I've seen other SS ecommerce sites that have a...
    disabled="disabled"
    ....attribue on the input field. I don't know what version they're using. The version I'm using doesn't have that, so the user can type a new quantity, but there's no form, and it's never submitted, so the user is going to be confused. I can't see code that adds the 'disabled' attribute in any of the older or newer ecommerce versions. Confusing.

    536 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.