Bamben Posted March 25, 2009 Share Posted March 25, 2009 I want to Copy the 'add to cart' button to another page. The new page is my catalogue, where I have item product descriptions one after another. for example; [Picture1] [Picture2] [product1 description and price] [ADD TO CART] [Picture1] [Picture2] [product2 description and price] [ADD TO CART] [Picture1] [Picture2] [product3 description and price] [ADD TO CART] [Picture1] [Picture2] [product4 description and price] [ADD TO CART] [Picture1] [Picture2] [product5 description and price] [ADD TO CART] [Picture1] [Picture2] [product6 description and price] [ADD TO CART] etc... So far I have been unsuccessful In copying this button because it is not just a link, it is a button that acts out a command. The product Id number is written in the page address of the product info page. for example; http://www.example.com/shop/catalog/produc...?products_id=28 This id is also attached to the add to cart button. but when I try and copy the button to another page it doesn't work because the id is no longer in the address, this is a problem! I need to to have multiple 'add to cart' buttons if there are multiple products on a page but how if it relys on the address bar? Is there some way of sorting this out? because I believe that the products info page is boring, it would make a big difference to my shop if it looked more like a catalogue and not so many page jumps. If i have all my info on the catalogue page and then they have to jump into the products info page just to click 'add to cart' what am I going to put on that page? (ARE YOU SURE?) lol Link to comment Share on other sites More sharing options...
getitdone99 Posted March 26, 2009 Share Posted March 26, 2009 We have done this before on a non-oscommerce php shopping cart page. The button code looks like this: <a href="http://sterlingrichards.com/storefront/index.php?cPath=21&sort=2a&action=buy_now&products_id=28"><img src="images/button_buy_now.gif" border="0" alt="Buy Now" title=" Buy Now " width="61" height="24"></a> You just have to get the two numbers in bold right... Link to comment Share on other sites More sharing options...
Bamben Posted March 26, 2009 Author Share Posted March 26, 2009 Youve only got the one number in bold (cPath=21, do you mean buy_now&products_id=28?) should they both be 28, because that is the product id? I mean what constitutes as right? Thank you Ben. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.