I know there is a lot of information on this topic but i was wondering whether it was possible to make a modification so that all of the add to cart buttons do an Ajax add. Not just those on the products page. This would include the little plus buttons for all products.
Thanks for any help you can give
http://www.opencart.com/index.php?route ... ion_id=619
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
How so?Xsecrets wrote:if you do it opens up the possibility for people to scam your cart.
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
I might be wrong but if there is something that we need to fix in our module (if any) would be helpful.
Demo : http://www.opencartaustralia.com/module/freegift/
Try click on the "MacBook Air" from home page.
However, when I add to cart from the sidebar I don't get a free gift. If I was a customer I'd want my free gift if I'm buying legitimately!

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
I would like to test that scenario you mentioned with ajax. Thanks.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Also, it's been shown to increase conversion rates if you don't distract your customer with more products once they are in the checkout process - so removing sidebars from the checkout pages is a good idea all round.
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
If that's true, it sounds like a PHP problem rather than an AJAX problem. How can client side code bypass the PHP code and add something to the cart for free? Isn't there something built-in to the code that would prevent that from happening?Xsecrets wrote:So people can essentially add anything that is in a sidebox to their order for free.
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
no because the AJAX wasn't designed to be used on the confirmation page because there weren't even add to cart buttons on any of the sideboxes at the time, and when they got added they were simply made to not be AJAX to keep from having to go back and rework the way all that code was designed.marc_cole wrote:If that's true, it sounds like a PHP problem rather than an AJAX problem. How can client side code bypass the PHP code and add something to the cart for free? Isn't there something built-in to the code that would prevent that from happening?Xsecrets wrote:So people can essentially add anything that is in a sidebox to their order for free.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Users browsing this forum: Bing [Bot] and 6 guests