[1.4.x][MOD] - Remove All Demo Data
56 posts
• Page 3 of 3 • 1, 2, 3
Re: [MOD] - Remove All Demo Data
I've just installed 1.5.0.5, and run eyeweb's script to clear the demo data.
Some tables in the script don't exist, and it looks to me as if there are other tabels that could be cleared out.
Is this because the script was appropriate for a previous version?
Can anyone provide a correct list of tables to clear for 1.5.0.5?
TIA
Chris
Some tables in the script don't exist, and it looks to me as if there are other tabels that could be cleared out.
Is this because the script was appropriate for a previous version?
Can anyone provide a correct list of tables to clear for 1.5.0.5?
TIA
Chris
- cmgharris
- Posts: 1
- Joined: Fri Jun 24, 2011 12:23 pm
Re: [MOD] - Remove All Demo Data
elaineben wrote:1046 - No database selected
In phpmyadmin you have to select a database first

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [MOD] - Remove All Demo Data
This script and mod are for 1.4.x ONLY

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [MOD] - Remove All Demo Data
cmgharris wrote:I've just installed 1.5.0.5, and run eyeweb's script to clear the demo data.
Some tables in the script don't exist, and it looks to me as if there are other tabels that could be cleared out.
Is this because the script was appropriate for a previous version?
Can anyone provide a correct list of tables to clear for 1.5.0.5?
TIA
Chris
+1
I would prefer optional download of clean installation without any DEMO items directly on opencart.com
- poshook
- Posts: 96
- Joined: Sat Jun 26, 2010 7:19 pm
Re: [MOD] - Remove All Demo Data
cmgharris wrote:I've just installed 1.5.0.5, and run eyeweb's script to clear the demo data.
Some tables in the script don't exist, and it looks to me as if there are other tabels that could be cleared out.
Is this because the script was appropriate for a previous version?
Can anyone provide a correct list of tables to clear for 1.5.0.5?
TIA
Chris
Ditto, I'd like a clean install for 1.5x!
- Bantamanic
- Posts: 3
- Joined: Thu Jul 07, 2011 2:02 pm
Re: [1.4.x][MOD] - Remove All Demo Data
RE: clean install for 1.5x
Not having much luck deleting table data post install. Even when I think I've removed everything, I can't get the product_id to reset to 1. So, I tried tinkering with the opencart.sql file pre-install and removed several of the insert commands and managed to get a clean install with the product_id set to 1. See attached file - It's a bit of a hack, but I hope it helps some people out.
Instructions
1. Save file to /install directory
2. Rename file to opencart.sql
3. Run install

Nick
Not having much luck deleting table data post install. Even when I think I've removed everything, I can't get the product_id to reset to 1. So, I tried tinkering with the opencart.sql file pre-install and removed several of the insert commands and managed to get a clean install with the product_id set to 1. See attached file - It's a bit of a hack, but I hope it helps some people out.
Instructions
1. Save file to /install directory
2. Rename file to opencart.sql
3. Run install

Nick
- Attachments
-
opencart.txt- (233.27 KiB) Downloaded 448 times
- Bantamanic
- Posts: 3
- Joined: Thu Jul 07, 2011 2:02 pm
Re: [1.4.x][MOD] - Remove All Demo Data
Instructions
1. Save file to /install directory
2. Rename file to opencart.sql
3. Run install
Didn't work fine for me, actually, are there any other view on the issue?
1. Save file to /install directory
2. Rename file to opencart.sql
3. Run install
Didn't work fine for me, actually, are there any other view on the issue?
- DaniellY
- Posts: 4
- Joined: Thu Sep 08, 2011 8:45 am
Re: [1.4.x][MOD] - Remove All Demo Data
Does it work with oc 1.5.1.3 ? thanks.
- harmonymusic
- Posts: 24
- Joined: Fri Feb 10, 2012 5:29 pm
Re: [1.4.x][MOD] - Remove All Demo Data
No.. a different one will be needed for 1.5.x
I'll try to find a moment to create one
I'll try to find a moment to create one

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18199
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [1.4.x][MOD] - Remove All Demo Data
Hello,
I am trying to find out how to install v1.5.3 without sample data but no luck.
Can you please help me with this?
Thank you
I am trying to find out how to install v1.5.3 without sample data but no luck.
Can you please help me with this?
Thank you
-

maya - Posts: 11
- Joined: Fri Feb 17, 2012 5:46 pm
- Location: London
Re: [1.4.x][MOD] - Remove All Demo Data
Here's an updated list of sql commands I used to purge all demo data after a fresh install of 1.5.3.1 :
(don't forget to replace "oc_" with your table prefix)
(don't forget to replace "oc_" with your table prefix)
- Code: Select all
TRUNCATE oc_address;
TRUNCATE oc_category;
TRUNCATE oc_category_description;
TRUNCATE oc_category_to_store;
TRUNCATE oc_coupon;
TRUNCATE oc_customer;
TRUNCATE oc_download;
TRUNCATE oc_download_description;
TRUNCATE oc_manufacturer;
TRUNCATE oc_manufacturer_to_store;
TRUNCATE oc_product;
TRUNCATE oc_product_description;
TRUNCATE oc_product_discount;
TRUNCATE oc_product_image;
TRUNCATE oc_product_option;
TRUNCATE oc_product_option_value;
TRUNCATE oc_product_related;
TRUNCATE oc_product_special;
TRUNCATE oc_product_to_download;
TRUNCATE oc_product_to_store;
TRUNCATE oc_review;
TRUNCATE oc_store;
TRUNCATE oc_order;
TRUNCATE oc_order_download;
TRUNCATE oc_order_history;
TRUNCATE oc_order_option;
TRUNCATE oc_order_product;
TRUNCATE oc_order_total;
TRUNCATE oc_product_to_category;
TRUNCATE oc_coupon_product;
TRUNCATE oc_attribute;
TRUNCATE oc_attribute_description;
TRUNCATE oc_attribute_group;
TRUNCATE oc_attribute_group_description;
TRUNCATE oc_banner;
TRUNCATE oc_banner_image;
TRUNCATE oc_banner_image_description;
TRUNCATE oc_customer_group;
TRUNCATE oc_customer_group_description;
TRUNCATE oc_geo_zone;
TRUNCATE oc_product_attribute;
TRUNCATE oc_product_option_value;
TRUNCATE oc_product_reward;
TRUNCATE oc_product_tag;
TRUNCATE oc_tax_rate;
TRUNCATE oc_tax_rate_to_customer_group;
TRUNCATE oc_tax_rule;
TRUNCATE oc_url_alias;
TRUNCATE oc_voucher_theme;
TRUNCATE oc_voucher_theme_description;
TRUNCATE oc_zone_to_geo_zone;
Last edited by garuda on Mon Jun 25, 2012 7:20 pm, edited 2 times in total.
-

garuda - Posts: 13
- Joined: Wed Apr 25, 2012 2:40 am
- Location: Charleston, South Carolina, USA
Re: [1.4.x][MOD] - Remove All Demo Data
garuda wrote:Here's an updated list of sql commands I used to purge all demo data after a fresh install of 1.5.3.1 :
(don't forget to replace "oc_" with your table prefix)
Better do use a TRUNCATE .. otherwise the IDs are continued.
EU-Buttonlösung EU-Cookies OpenCart Rechtskonform
LiveSupport (Chat) Deutsches OpenCart / OCIE Forum
http://osworx.net :: Installation & Update Services for OpenCart, Custom Development
Common modules - Payment modules - Shipping modules - Dt. Sprachpaket
LiveSupport (Chat) Deutsches OpenCart / OCIE Forum
http://osworx.net :: Installation & Update Services for OpenCart, Custom Development
Common modules - Payment modules - Shipping modules - Dt. Sprachpaket
-

OSWorX - Global Moderator
- Posts: 1882
- Joined: Mon Jan 11, 2010 2:52 pm
- Location: Austria
Re: [1.4.x][MOD] - Remove All Demo Data
Any update to use with 1.5.4.x?
Edit: Found
Edit: Found
- Code: Select all
TRUNCATE attribute;
TRUNCATE attribute_description;
TRUNCATE attribute_group;
TRUNCATE attribute_group_description;
TRUNCATE category;
TRUNCATE category_description;
TRUNCATE category_to_store;
TRUNCATE manufacturer;
TRUNCATE manufacturer_to_store;
TRUNCATE product;
TRUNCATE product_attribute;
TRUNCATE product_description;
TRUNCATE product_discount;
TRUNCATE product_image;
TRUNCATE product_option;
TRUNCATE product_option_value;
TRUNCATE product_related;
TRUNCATE product_reward;
TRUNCATE product_special;
TRUNCATE product_tag;
TRUNCATE product_to_category;
TRUNCATE product_to_store;
TRUNCATE url_alias;
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.
Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.
Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
-

i2Paq - Global Moderator
- Posts: 9750
- Joined: Mon Nov 09, 2009 11:00 am
- Location: Winkel - The Netherlands
Re: [1.4.x][MOD] - Remove All Demo Data
Can you please tell me if this still works??? I am using Opencart 1.5.1.3 ??
I have just built a site and have been testing the payment system prior to going fully live. I want to wipe out all the Report data for Sales, Products etc so that it's all on the level when we start trading...
Will this work????
Thanks
I have just built a site and have been testing the payment system prior to going fully live. I want to wipe out all the Report data for Sales, Products etc so that it's all on the level when we start trading...
Will this work????
Thanks
- deanodv8
- Posts: 2
- Joined: Fri Oct 05, 2012 4:31 pm
Re: [1.4.x][MOD] - Remove All Demo Data
Hi,
I cleaned the opencart.sql file to prevent the data insertion (No data in database => nothing to delete lol). I attache my sql file for people who are interested.
Helgvor.
I cleaned the opencart.sql file to prevent the data insertion (No data in database => nothing to delete lol). I attache my sql file for people who are interested.
Helgvor.
- Attachments
-
opencart.sql.zip- (64.07 KiB) Downloaded 37 times
-

helgvor_stoll - Posts: 42
- Joined: Wed Mar 06, 2013 4:53 pm
- Location: Strasbourg (France)
Re: [1.4.x][MOD] - Remove All Demo Data
I forgot. It's the file for the 1.5.5.1 release
-

helgvor_stoll - Posts: 42
- Joined: Wed Mar 06, 2013 4:53 pm
- Location: Strasbourg (France)
56 posts
• Page 3 of 3 • 1, 2, 3
Who is online
Users browsing this forum: 1975bloom and 9 guests














