HGiXo Posted November 8, 2023 Share Posted November 8, 2023 Hello, I'm looking for module that clones my shop on dev/prod env and make some kind of zip file that can me imported elsewhere. Link to comment Share on other sites More sharing options...
ComGrafPL Posted November 9, 2023 Share Posted November 9, 2023 Why you need module for this? FTP and copy whole public_html on drive and .zip it. Download data base. Either way, you will need to change url's in data base for the new location. Link to comment Share on other sites More sharing options...
HGiXo Posted November 9, 2023 Author Share Posted November 9, 2023 Could You guide me which columns in DB should I adjust to new localization of store? Link to comment Share on other sites More sharing options...
ps8modules.com Posted November 12, 2023 Share Posted November 12, 2023 (edited) Hi. It is not only the database and the ps_shop_url table, but also the changes in the ps_configuration table. It is necessary to edit the .htaccess file as well as the connection to the database in the ./app/config/parameters.php folder However, this is not a problem either. To unpack the zip file and edit everything needed, a php script would be written to arrange everything. The only problem can be the size of the files on FTP. The biggest problem is with the number of products and product images. The ./img/p folder can be large. Everything can be done 😉 Edited November 12, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
HGiXo Posted November 14, 2023 Author Share Posted November 14, 2023 Hi, I did download directories img, modules, themes and did export/import database from prod to my local env After import db I changed ps_shop_url from prod to dev and disabled ssl in ps_configuration but by front office redirects somehow to ssl version and saying "ERR_SSL_PROTOCOL_ERROR" however my back office shows login page but somehow whenever I enter valid login/password combination I get error saying that it is wrong combination... What should I do to access my backoffice and fix frontoffice? Link to comment Share on other sites More sharing options...
ps8modules.com Posted November 15, 2023 Share Posted November 15, 2023 (edited) Hi. As I wrote, the parameters.php file should also have been transferred and then the information about the new database changed in it. If necessary, you need to take the cookie key parameter from the original file. Why can't you log in? Because the cookie key is different. The password check is md5 consisting of the cookie key followed by your password. The next thing that is needed is to change the .htaccess file. It will contain links to the old subdomain. Edited November 15, 2023 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
HGiXo Posted November 16, 2023 Author Share Posted November 16, 2023 Thank you for guiding me with parameters and cookie hash. It worked! I finally get in to back office. Unfortunatelly I can't get to front office. entering url "http://localhost:{port}" I get redirected to ssl version and get error "ERR_SSL_PROTOCOL_ERROR". I changed PS_SSL_ENABLED to 0 in ps_configuration db. What should I do next? Link to comment Share on other sites More sharing options...
ps8modules.com Posted November 16, 2023 Share Posted November 16, 2023 Hi. It is necessary to turn off rewrite url in the SEO & URL settings, save, turn on rewrite url and save. This will generate a new .htaccess file. Link to comment Share on other sites More sharing options...
ZHSoft Posted November 19, 2023 Share Posted November 19, 2023 https://addons.prestashop.com/en/data-import-export/49857-advanced-csv-export-for-9-in-1product-category-etc.html PrestaShop has built-in CSV file data import, such as Categories, Products, Combinations, Customers, Address, Brands, Suppliers, Alias, Store Contacts. This plug-in will automatically be compatible with the above formats and export store CSV files. 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