I am moving my OpenCart website from one domain to another.. but i got some issues.
While the website was on the old domain, I was using 4th Store for my domain, this is i gues from my template i got 4 different stores for different designs so I used the 4th one and in the data base its ID was Store 3... the 1st one was Store ID 0
When i moved the domain the default store was set to the 1st one and its now with the new domain... also on the actual website which was 4th store i change the domain to the new one.. but still the 1st one was the default... so i dont know how to change it..
Also i changed the config files in main folder and admin folder, everything there was fine. Changed in the DataBase oc_store last store with ID 3 the values with the new domain, but i dont see the store ID 0 in oc_store... but in oc_settings i see Coulm with name Store ID and there were 0,1,2,3 recorded settings for all of them
So the website atm is half working... but most of the pictures and codes is redirecting to the old domain: https://healthandfitness.goinfancy.com/ (this is the new domain and live version of the website)
So guys any idea 1) how to properly change the domain so it will be working correctly and 2) how to change the default store???
One thing to note is that you have not waited for the Propagation
Propagation is the projected length of time it takes a domain's DNS (Domain Name System) information to be updated across the entire web after a change is made. The process can take 24-48 hours to complete in full.
You can check where your site is up to here:
https://www.whatsmydns.net/#A/healthand ... nfancy.com
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I will try to explain it more clearly:
I want to change the domain of an existing website. Its domain has expired long ago. I created for it another cPanel Acc with other domain. Moved the files and Data Base. Changed the Config files in the main folder and admin folder. Also inside the admin panel i changed the URL of the store. But dont know why the default store is 1st one, mine which was working before is the 4th one... so i need to change the default store because of its settings. ALso i changed the URL in the DataBase. But still its not working correctly, thats why i asked what it needs to be done to change the default store in the Admin Settings and how to change the domain properly? So to be working as intended..
https://healthandfitness.zendesk.com/embeddable/config
<img data-scr - presumably missing your lazy load so that is why your images are broken
and you are missing some theme css
I am not sure what you have done in the database directly, but this might help you
viewtopic.php?t=27538
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Also whats the correct way to move OpenCart website from one domain and cPanel acc to another to work correctly.. i couldnt find info about that anywhere..
You just copy the database to the new server via e.g. PHPMyAdmin's export and import. And then, using FTP, you download your current OpenCart files and re-upload them to your new server. Finally, update your config.php, admin/config.php and .htaccess (e.g. for the Base). That's it pretty much.saregas wrote: ↑Wed Feb 12, 2025 4:48 pmAny idea what might caused it? Do I need to repeat some of the steps of changeing the domain or copying files?
Also whats the correct way to move OpenCart website from one domain and cPanel acc to another to work correctly.. i couldnt find info about that anywhere..
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
As per the conversation we went through, we understand that you have successfully moved the Opencart to the new domain, now the only issue is that you are not able to set a different store as the default store in your new domain.
If our understanding is correct, then to make another store the default store in your Opencart, you need to do the below settings:
1. Update the Settings in the Database:
- Find your Store ID.
- Update the same in the default store settings. For that, you can use the below query:
Code: Select all
UPDATE `oc_setting` SET `value` = 'https://yournewstore.com/' WHERE `store_id` = 0 AND `key` IN ('config_url', 'config_ssl');
- Update config.php and admin/config.php
4. Update your .htaccess file and set the new store as the default store. Refer to the below code:
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oldstore\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.oldstore\.com$
RewriteRule ^(.*)$ https://yournewstore.com/$1 [R=301,L]
Please review the above information and let us know in case of any queries.
Regards,
Knowband Team
ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8tewebsitedevelopment.com/contact
https://www.elev8tewebsitedevelopment.com
As per the requirement, they need to set a different store (with a store_id other than 0) as the default store in OpenCart. This is only possible if the database reflects the new store as the one with store_id = 0. Therefore, modifying the database is necessary to implement this change.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
Some web hosts will do this for free - it's worth asking them.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: pprmkr and 17 guests