Post by djbosanac » Sun Mar 20, 2016 1:41 am

Hello all,

I have a question about the orders in OC.

I want to open a new shop but want to take the orders with me.
Is there a possible way i can export/import the orders and than upload them to the new domain..

Because i want the current domain is be redirected(migrating) to a different domain(new one) but with the old hosting.
So is that possible?? Or do i need to choose a new domain + hosting???

....Only God Can Judge Me....


Active Member

Posts

Joined
Thu Sep 01, 2011 10:12 pm
Location - Saarland, Germany

Post by Randem » Sun Mar 20, 2016 9:41 am

Hi djbosanac,

Not following you... You want to take the orders but not the customers or products? This does not seem logical, perhaps you can give more details. If you just want to move the store to a new hosting site that is completely different. Everything will go...

NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart


User avatar
Active Member

Posts

Joined
Sat Sep 27, 2014 9:17 am

Post by ocart777 » Sun Mar 20, 2016 11:14 am

djbosanac wrote:Hello all,

I have a question about the orders in OC.

I want to open a new shop but want to take the orders with me.
Is there a possible way i can export/import the orders and than upload them to the new domain..

Because i want the current domain is be redirected(migrating) to a different domain(new one) but with the old hosting.
So is that possible?? Or do i need to choose a new domain + hosting???
the simplest way to get this done is make a full database backup and you'll get the sql file, open this file with text editor,i prefer notepad++ as it can handle large file and it is free too. search for your domain eg "http://www.site.com/" and replace with "http://www.newdomain.com/" search for "https://" too if needed. save then import them to the new website

please noted that you may need to change the table prefix if it is different. and also the file transfer may be needed(mod, theme etc..)

for redirect you can add this piece of code to your header controller just after "public function index() {"

Code: Select all

$this->response->redirect("http://www.newdomain.com/");

You can't control the weather, but you can change your mood.
You can't modify the visage, but you can show your smile.
You can't command someone else, but you can hold yourself.
You can't forecast tomorrow, but you can using today.
You can't obtain thanks, but you can exert yourself in everything.


OCEXTENSION.COM - YOUR PROFESSIONAL OPENCART EXTENSION STORE


User avatar
Active Member

Posts

Joined
Mon Jun 10, 2013 4:57 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 10 guests