bearclaws Posted June 22, 2006 Share Posted June 22, 2006 I am having trouble trying to add an "Add to cart" button (or link) beneath the price of a product in the "New Products" section of the homepage. I want the table cell containing the product to look like this: [Photo] [Title with link to Product Info] [Price] [Add to Cart button] Any idea how to do this?! Many thanks, BC Link to comment Share on other sites More sharing options...
Wendy James Posted June 22, 2006 Share Posted June 22, 2006 http://www.oscommerce.com/community/contributions,2402 I think that does what you want. That is for the new products for month box. There is this one too http://www.oscommerce.com/community/contributions,2252 same deal Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
bearclaws Posted June 22, 2006 Author Share Posted June 22, 2006 Thanks. I managed to work out a solution on my own but will keep these contribs on file for the future. For anyone interested, you can add a link to "Add to cart" anywhere that you are displaying a product using this code: <? php '<a href="' . 'index.php?action=buy_now&products_id='.$new_products['products_id'] .'">add to cart</a>' ?> The end result is that you want to create a URL that looks like this: http://www.yourserver.com/catalog/product_...products_id=123 ...where "123" is the product ID of the current product. Cheers, BC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.