marketedsites Posted June 2, 2008 Posted June 2, 2008 I am manually adding an 'add to cart' button on my page for a certain product. I can't figure out how to make it work. This is what I have so far, but no worky. The product I'd like to add is product_id 31 echo tep_draw_hidden_field('products_id', product_id=31, tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
marketedsites Posted June 2, 2008 Author Posted June 2, 2008 I also tried echo tep_draw_hidden_field('products_id', $shopping_cart['products_id=31']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); Obviously, I don't know PHP, but I'm trying. Any help would be greatly appreciated!
L!mit Posted June 3, 2008 Posted June 3, 2008 Hi, You can probably just hard code it like .. <a href="index.php?action=buy_now&products_id=31">Click to Buy</a>
marketedsites Posted June 3, 2008 Author Posted June 3, 2008 Hi, You can probably just hard code it like .. <a href="index.php?action=buy_now&products_id=31">Click to Buy</a> Thanks L!mit, that definitely did the job!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.