keithschm Posted April 2, 2005 Share Posted April 2, 2005 I have edited my index page to show specials. I have added a ad to cart button but I am haveing trouble with the code for actualy adding it to the cart. How do I ADD TO CART. I should be able to pull the product Id from the script that is used for the specials. thanks Link to comment Share on other sites More sharing options...
keithschm Posted April 4, 2005 Author Share Posted April 4, 2005 It looks like when the products are called there is a form, is there a way to make a link to add a product to the cart? Link to comment Share on other sites More sharing options...
Wendy James Posted April 4, 2005 Share Posted April 4, 2005 Might want to try this contribution and save yourself a headache. Puts specials on index and new products on the other pages. http://www.oscommerce.com/community/contri...s+on+front+page 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...
keithschm Posted April 4, 2005 Author Share Posted April 4, 2005 Might want to try this contribution and save yourself a headache. Puts specials on index and new products on the other pages. http://www.oscommerce.com/community/contri...s+on+front+page <{POST_SNAPBACK}> thank you for the reply, I have a specific templete that I purchased. It has taken weeks to merge it with OS. I would think that with some crafty code it could be done... I HOPE. Does that contrib have a add to cart for the specials? Link to comment Share on other sites More sharing options...
Wendy James Posted April 4, 2005 Share Posted April 4, 2005 It is exacly like the whats new box, but it is specials. It is simple to install and yes there is add to cart buttons there if you have them turned on. 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...
keithschm Posted April 4, 2005 Author Share Posted April 4, 2005 well I tried this mod but I do not see a add to cart. where do you enable it? Link to comment Share on other sites More sharing options...
keithschm Posted April 5, 2005 Author Share Posted April 5, 2005 well after some research I came up with the folowing code ok ok :D I took it from another section, and it is really the buy now, but none to be the wiser <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $default_specials['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.