Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Ajax quantity field?


Go to End


1045 Views

Avatar
inCharge

Community Member, 102 Posts

28 April 2011 at 11:59pm

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.