![]() |
add to cart link?
Do you guys know how I can add an add to cart text link on the products.tpl file?
Thanks ;) |
Version :D ?
|
DOH!
Sorry Jon :lol: 4.0.4 |
4.0 doesn't have an add to cart there ? 8O
I pulled some key code from the product.tpl that you can try adding to the products.tpl No idea if this will work but backup and give it a try :) Code:
|
Nope, that didn't do it :(
|
How did u implement it?
|
I copied the code above into the products.tpl file.
Tryed a couple of different things but no matter what I do I get a JS error)object expected) when I click the button. |
Here it is:
This will add the product to the cart from the products.tpl file. Now if I could figure out how to get the extra fields to display on the products.tpl my store would be finished :) |
Pretty sure you need a form field in order to do product options, amounts, etc. I have it functioning well on my store with the 3.5.x version.
You can't just copy the code I provided exactly, you have to take those components and implement them skillfully so that they appear around each product. If you'd like some assistance and have MSN Messenger you can PM me your MSN email :) |
Hi Jon,
I got the link to work with the code I posted above. Thanks ;) |
Mind sharing the code just incase I need it in the future or somebody else does :)
|
Scroll up, 3 posts ;)
|
Lol, ok, I got that one. Thought you implemented product options as well.
|
All times are GMT -8. The time now is 12:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.