I would like to have a increase [+] and decrease [-] button in my basket beside each product, which changes the quantity/amount of products i want of each.
Is there some already made code out there, which allows this?
i’m not sure if there is a ready for copy-paste code for changing the quantity in the basket, but you can use the jquery ui spinner to make crossbrowser +/- buttons: http://jqueryui.com/spinner/
And after that you need to submit the form (basically trigger the update button) to update the quantity and recalculate the prices.
easy way would be to submit the form after each pressing of the +/- buttons, which would make the page reload every time you press the button.
Or the more “pro way” would be integrating a timer before reloading the page after pressing the button, this way the page wouldnt be reloaded immediately so you could click +/- button several times before reloading and setting the final quantity
[QUOTE=Hebsacker;124030]There was the posibility to change quantities and update the basket via button in “Basic” theme - maybe you can take some of this code?[/QUOTE]
Isn’t that possible in Azure (sorry, no shop installation here)? If so - it’s a bug, isn’t it.
To difficult for me. Such a shame they havent added this. is there really not a place where you can get code to oxid, like joomla etc.? must everything be written by yourself. not easy to complete your store, the way you want it, without being really good at coding or have $$.
@c4yolli,
Thanks a lot! we need more people like you in here.
I failed to get it to work in the minibasket.tpl. If i put that in there +
<form name=“basket[{ $basketindex }]” action="[{ $oViewConf->getSelfActionLink() }]" method=“post”>
</form>
around it + foreach, then it just reloads the page. suggestions?
less important at the moment:
This is awesome for now and maybe in the future, there could be done some changes, so its allowed to click multiple times on buttons - now it only in/decreases by 1, when you click more then once, plus it reloads the pages, which it might not need?