It should not be nessesary to have to change the Tea Commerce javascript API as most is using settings and you can hook into success and error methods to do custom UI stuff. What are your needs?
Ah, maybe I'm looking in the wrong place. Basically for now I just need to change way that the 'adding to cart' message works. I want my own custom behaviour when someone clicks a 'buy' button.
You are looking for the ecommerce.js script file. It's in the scripts folder and contains the specific integration for the new starter kit. It's mostly a bunch of event handling for the different events thrown by Tea Commerce.
Unminified teacommerce.js file
Hi,
Could anyone point me in the direction of an un-minified teacommerce.js file for Tea Commerce 2?
Have some changes to make to the AJAX stuff but can't because it's all minified.
Thanks
Hi Dan
It should not be nessesary to have to change the Tea Commerce javascript API as most is using settings and you can hook into success and error methods to do custom UI stuff. What are your needs?
Kind regards
Anders
Ah, maybe I'm looking in the wrong place. Basically for now I just need to change way that the 'adding to cart' message works. I want my own custom behaviour when someone clicks a 'buy' button.
Hi Dan,
You are looking for the ecommerce.js script file. It's in the scripts folder and contains the specific integration for the new starter kit. It's mostly a bunch of event handling for the different events thrown by Tea Commerce.
/Rune
Thanks Rune. Yes, now I found that file it makese a lot more sense :)
Yep. Hope you like it. It's much more simple than the old starter kit JavaScript :)
/Rune
is working on a reply...