ken0306 Posted February 15, 2019 Share Posted February 15, 2019 Hi there, I trying to upgrade my site with CSS button to replace with the old images button. I wondering which file to edit the button function or add new button function. I try Ultimate Buttons for OSCommerce, and other css buttons that I can find from the add on section. They all since like adding or adjusted the tep_image_submit under the includes/functions/html_output.php page. But I still unable to make it work. I trying to directly insert the images button code on my products_info.php page <input type="image" src="includes/languages/english/images/buttons/button_in_cart.png" border="0" alt="Add to Cart" title=" Add to Cart " name="submit_cart" class="btn btn-primary"> it works, product added to my cart. but I change to the following <input class="single_add_to_cart_button button " type="submit" name="submit_cart" value="Add To Cart"> and the add to cart button is not adding the product to my cart any more. so if there any other files that control the button function? thank you ken Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 15, 2019 Share Posted February 15, 2019 @ken0306 Which version of osCommerce are you using? M Link to comment Share on other sites More sharing options...
ken0306 Posted February 15, 2019 Author Share Posted February 15, 2019 still on older version 2.2CR2a Link to comment Share on other sites More sharing options...
♥JcMagpie Posted February 15, 2019 Share Posted February 15, 2019 class="btn btn-primary"> may be your issue. Link to comment Share on other sites More sharing options...
ken0306 Posted February 16, 2019 Author Share Posted February 16, 2019 @JcMagpie The input with type="image" button work, but the second one input type="submit" doesn't work. Link to comment Share on other sites More sharing options...
Hotclutch Posted February 16, 2019 Share Posted February 16, 2019 You have 2 classes here: class="single_add_to_cart_button button " So what is class="button" and class="single_add_to_cart_button" defined as? Replace that with btn btn-primary if you're using bootstrap. Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 16, 2019 Share Posted February 16, 2019 @ken0306 Since you are running such an old version of osC, have you adapted it to use the BootStrap framework? Both @Hotclutch and @JcMagpie have expressed a concern that the 'btn' and 'btn-primary' classes are just used with Bootstrap. That said, in your first post here, you state that when you use type = "image", the item is added to your cart. But, when you use type = "submit', it isn't. If "image" works, why not use it? M Link to comment Share on other sites More sharing options...
ken0306 Posted February 17, 2019 Author Share Posted February 17, 2019 @ArtcoInc My application currently running on the Bootstrap 3 framework, and the button is the only part I can't replace CSS with the image. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.