altermate Posted April 20, 2010 Share Posted April 20, 2010 I have searched through the forum but can't find info relating to changing the default 'buy it now' button to 'add to cart' button for every product.. Link to comment Share on other sites More sharing options...
DJMark Posted April 20, 2010 Share Posted April 20, 2010 why dont you just make a add to cart button and call it the same name as the buy it now button therefor you will have a add to cart button Link to comment Share on other sites More sharing options...
altermate Posted April 20, 2010 Author Share Posted April 20, 2010 Ok... where do I change the button from?? index.php etc? Link to comment Share on other sites More sharing options...
DJMark Posted April 20, 2010 Share Posted April 20, 2010 just make a add to cart image and call it the same as the buyit now button and just overwrite the image Link to comment Share on other sites More sharing options...
altermate Posted April 20, 2010 Author Share Posted April 20, 2010 Where do I override it on? Link to comment Share on other sites More sharing options...
DJMark Posted April 20, 2010 Share Posted April 20, 2010 includes/languages/english/images/buttons Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted April 20, 2010 Share Posted April 20, 2010 There is already an Add to Cart button. All you need to do is make a copy and rename the copy. The real question is, what do you want to happen when you click the new button? I believe there are different functions for 'buy now' and 'add to cart' and changing the image of the button is not going to change what happens when you click on it. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
altermate Posted April 20, 2010 Author Share Posted April 20, 2010 mmm... good question. Link to comment Share on other sites More sharing options...
npn2531 Posted April 20, 2010 Share Posted April 20, 2010 Just go to the page ( in this case product_info.php) where the button is and change: <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW); ?> to this: <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> On a vanilla install the 'button_buy_now.gif' is the 'buy now' image and and the IMAGE_BUTTON_BUY_NOW refers to the text on top of the button 'buy now' (if you are using the text, which many people don't- delete the 'button_buy_now.gif' and watch what happens.) 'in_cart.gif' is the 'add to cart' button. Changing the above does not change the function of the button at all. You are free to make up your own buttons and substitute their names if you like. The functionality of the button is in the 'tep_draw_hidden_field' phrase in the first half of the line, and in the 'tep_draw_form' command which will be located at the top of the page. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.