Zen Cart Logo
Forums / Basic Configuration / Default product types - how do I add them back?

Default product types - how do I add them back?

Views: 1,276

Results 1 to 8 of 8
16 Dec 2014, 11:40 PM
#1
rayo avatar

rayo

New Zenner

Join Date:
Jun 2013
Location:
Sydney
Posts:
25
Plugin Contributions:
0

Default product types - how do I add them back?

Hi.

When I first set up our store I somehow managed to delete most of the product types, I have no memory of how or why I did this. I now need to add a new product based on Document-General (which has been deleted). Can anyone suggest the easiest and safest way to recreate this?

Thanks.

17 Dec 2014, 2:43 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Default product types - how do I add them back?

rayo:

Hi.

When I first set up our store I somehow managed to delete most of the product types, I have no memory of how or why I did this. I now need to add a new product based on Document-General (which has been deleted). Can anyone suggest the easiest and safest way to recreate this?

Thanks.

Obtain files from a fresh install... (Without having to actually install it, just need to unzip.) Any idea which document-general files were deleted? Admin side, catalog, both?

17 Dec 2014, 2:59 AM
#3
rayo avatar

rayo

New Zenner

Join Date:
Jun 2013
Location:
Sydney
Posts:
25
Plugin Contributions:
0

Re: Default product types - how do I add them back?

No, I don't know which files were deleted I just know that when I try to create a new product and try to choose a product type I only have 'Product - General' in the drop down menu. Do you know which files I need and their location?

17 Dec 2014, 3:02 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Default product types - how do I add them back?

What about when you go to catalog->product types? Are there five options to choose from or just four?

17 Dec 2014, 3:09 AM
#5
rayo avatar

rayo

New Zenner

Join Date:
Jun 2013
Location:
Sydney
Posts:
25
Plugin Contributions:
0

Re: Default product types - how do I add them back?

Just the one - Product - General.

17 Dec 2014, 3:16 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Default product types - how do I add them back?

It would seem that actually the database has been modified to remove/hide the additional product types... I would have to search the install.sql file to identify the script that adds the product type information to the database.

17 Dec 2014, 5:28 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Default product types - how do I add them back?

For v1.3.9 there's this post: http://www.zen-cart.com/showthread.php?198588-Default-Product-Types ... consult the similar code in the zc_install/sql folder for the version of Zen Cart you're using.
But then for all the settings that belong to each product-type, there's all the data in the product_type_layout table for the corresponding product-type-id.

22 Dec 2014, 3:51 AM
#8
rayo avatar

rayo

New Zenner

Join Date:
Jun 2013
Location:
Sydney
Posts:
25
Plugin Contributions:
0

Re: Default product types - how do I add them back?

Thanks. I will give it a try and let you know how I go.