paulinewong Posted November 28, 2016 Share Posted November 28, 2016 Hello, I installed the "bootstrap" module to my website and made some changes to the template files in the backend to customize my website. For example, I change the width of the top banner, the maximum width of images in the home hook so an image can span two columns, font coloiur/size, adding the currency symbol next to any price point on the website, etc. However, with every Prestashop update, my changes are wiped because the templates in the module revert back to default. Is there a way to prevent this? Thank you. Link to comment Share on other sites More sharing options...
w3bsolutions Posted November 28, 2016 Share Posted November 28, 2016 Creating a proper override: http://doc.prestashop.com/display/PS16/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule'sbehavior Link to comment Share on other sites More sharing options...
paulinewong Posted January 26, 2017 Author Share Posted January 26, 2017 I tried following the instructions in that manual and it is very confusing since I am not familiar with PHP or MySQL. Are there a better step-by-step tutorial elsewhere or could someone walk me through it? Basically, I downloaded the default-bootstrap theme and made a number of changes to some of the .tpl documents in that theme. For example, I adjusted the css to "blockcms", added an extra line to "blockuserinfo", removed a few lines from "blockcontact", etc. Everytime the script goes through an upgrade, all of those files revert back to the original AND all the countries are disabled except for United States (I offer shipping worldwide so ALL countries were enabled). I want the updates but I want to the above to stop. If there is an easy hack to do this, please let me know! Thank you. Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 26, 2017 Share Posted January 26, 2017 If ALL your changes are done inside the themes directory, then all you would have to do is rename your custom "default-bootstrap" them to something else, for instance the name of your shop (no spaces), upload it to the themes directory and then install that theme via back office. Then, in the auto-upgrade module configuration, disable "Switch to default theme" option, also disable "Disable non-native modules". With this setup you should be able to upgrade without losing your changes, as long as you did not modify any file outside the "default-bootstrap" theme directory you referred to. The countries problem seems a different issue. I've never seen that, but it should not be related to any theme modification. Link to comment Share on other sites More sharing options...
paulinewong Posted February 6, 2017 Author Share Posted February 6, 2017 Perhaps I am looking in the wrong place (Modules & Services) but I was unable to locate the Auto-Upgrade Theme Configuration? Sorry, quite new with Prestashop. Thanks. Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 6, 2017 Share Posted February 6, 2017 Perhaps I am looking in the wrong place (Modules & Services) but I was unable to locate the Auto-Upgrade Theme Configuration? Sorry, quite new with Prestashop. Thanks. If you don't have it you can download it from: https://addons.prestashop.com/en/data-migration-backup/5496-.html How have you been updating PS previously? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now