Lod&svetshuset Posted December 16, 2015 Share Posted December 16, 2015 Hello Restore the Add to cart button on the product page. submitting a copy of the original file product.tpl and produkt.css so that I can paste it in my fileI or want to reset the button to the original as it was originally .someone who knows what to do , it looks now: http://lodochsvetshuset.com/index.php?id_product=2&controller=product thanks for the help Link to comment Share on other sites More sharing options...
Dh42 Posted December 16, 2015 Share Posted December 16, 2015 You can find the files you need here, https://github.com/PrestaShop/PrestaShop/tree/develop/themes/default-bootstrap Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 16, 2015 Author Share Posted December 16, 2015 Is it to PS 1.6? I've tried and color of the button was changed , but not the size of the button , and the icon of the cart 's still not there.Then the box (in stock) also gone now.Please really need your help Link to comment Share on other sites More sharing options...
Azoda.net Posted December 17, 2015 Share Posted December 17, 2015 (edited) it's so easy, you can add this script for that $("#add_to_cart imput").click(function(e){ e.stopPropagation(); }); Edited December 17, 2015 by john smith151 (see edit history) Link to comment Share on other sites More sharing options...
gabdara Posted December 17, 2015 Share Posted December 17, 2015 What exact number version you have? As Dh42 said, you can find all your files on github. If you click on the Branch drop down and go to Tags, there you can find all PrestaShop versions. Here is link for version 1.6.1.3 : https://github.com/PrestaShop/PrestaShop/tree/1.6.1.3/themes/default-bootstrap (you can change the number version right in the link). Click on the file that you need, click on Raw, then CTRL+S and save the file (without the extension .txt), or just copy paste the code in your files. Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 17, 2015 Author Share Posted December 17, 2015 Hello I 'm very grateful for the help I removed all Themes from the File Manager and installed it again , everything is all original but the Add to Cart button is still the same , what's wrong ? Where can I go in and change it.? PS v1.6.1.2 I uploaded the file so you can check on them . website : http://lodochsvetshuset.com/index.php?id_product=3&controller=product product.tpl.txt product.css Link to comment Share on other sites More sharing options...
gabdara Posted December 17, 2015 Share Posted December 17, 2015 Please disable option Smart cache for CSS so I can look through CSS files to find from where that horrible style comes from. Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 17, 2015 Author Share Posted December 17, 2015 I've disabled it nowSmart cache for CSS Link to comment Share on other sites More sharing options...
gabdara Posted December 17, 2015 Share Posted December 17, 2015 You have most of the add to cart button styles in product.css at line 454 .box-info-product .exclusive and it's different from the default one. You can see the in the default product.css that class is at line 443: https://github.com/PrestaShop/PrestaShop/blob/1.6.1.2/themes/default-bootstrap/css/product.css#L443 Also in your product.tpl look for id="add_to_cart" and see that your code is different from the default one: https://github.com/PrestaShop/PrestaShop/blob/1.6.1.2/themes/default-bootstrap/product.tpl#L389 Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 17, 2015 Author Share Posted December 17, 2015 what do you think I should do? copy the files and paste them in my SCC and TPL file? can it help ? Link to comment Share on other sites More sharing options...
gabdara Posted December 17, 2015 Share Posted December 17, 2015 make a backup then try to copy paste into your files. Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 17, 2015 Author Share Posted December 17, 2015 How do I make a backup ? I do not think I 've made a backup , if it is not done automatically !! ? it is not enough that I delete Theme and installed again? Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 17, 2015 Author Share Posted December 17, 2015 I have deleted and replaced the files product.scc 443 and product.tpl 389 you selected . but it is still the same problem. Link to comment Share on other sites More sharing options...
gabdara Posted December 18, 2015 Share Posted December 18, 2015 I see you've replaced the tpl but product.css is the same. Also deactivate Smarty Cache untill you figure this out. Link to comment Share on other sites More sharing options...
Lod&svetshuset Posted December 18, 2015 Author Share Posted December 18, 2015 I have done exactly as you wrote to me , but the button is completely black . and when I enable the cache smart it goes back to that ugly button Link to comment Share on other sites More sharing options...
Recommended Posts