Magento PHP code - "cloned" add-to-cart button not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tjonnyc
Forum Newbie
Posts: 3
Joined: Thu May 21, 2009 3:43 pm

Magento PHP code - "cloned" add-to-cart button not working

Post by tjonnyc »

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!
Post Reply