Magento PHP code - "cloned" add-to-cart button not working
Posted: Thu Aug 06, 2009 3:08 pm
PHP n00b here, would really appreciate some help with this...
This is happening in the Magento CMS (if it makes a difference).
I'm trying to "clone" the "Add To Cart" button from the main product page, to the "Related Items" sidebar.
The button appears, along with the entry box for quantity - but when clicked, produces nothing!
It seems like a simple thing - some variable is not getting picked up, or a script isn't activating.
Unfortunately, I know only enough PHP to copypasta the code, not to actually figure out what's broken.
Please take a look at the code:
http://pastebin.com/f301da972
And let me know if you have any suggestions.
Thanks!
This is happening in the Magento CMS (if it makes a difference).
I'm trying to "clone" the "Add To Cart" button from the main product page, to the "Related Items" sidebar.
The button appears, along with the entry box for quantity - but when clicked, produces nothing!
It seems like a simple thing - some variable is not getting picked up, or a script isn't activating.
Unfortunately, I know only enough PHP to copypasta the code, not to actually figure out what's broken.
Please take a look at the code:
http://pastebin.com/f301da972
And let me know if you have any suggestions.
Thanks!