eCommerce tweaks
Permalink
Hi,
I'm playing with the eCommerce add-on. I'm going to tweak some block templates and that is working allright.
Within the views of the product list, the add-on uses a button for putting a product in the cart. They use the "input" tag, and that tag is also used in the javascript file.
I want to use a "button" tag, so I can add some icons to the button. The only thing is, that that button will not be handled by the javascript, because that is referencing to $("input").
Now i want to change the javascript, so that it will use the buttontag also ($(":input") will do). How should I do this?
The js is not in the block's /js dir. Should I override the whole block (product_list)??
I'm playing with the eCommerce add-on. I'm going to tweak some block templates and that is working allright.
Within the views of the product list, the add-on uses a button for putting a product in the cart. They use the "input" tag, and that tag is also used in the javascript file.
I want to use a "button" tag, so I can add some icons to the button. The only thing is, that that button will not be handled by the javascript, because that is referencing to $("input").
Now i want to change the javascript, so that it will use the buttontag also ($(":input") will do). How should I do this?
The js is not in the block's /js dir. Should I override the whole block (product_list)??