Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / automatic product model in product.php

automatic product model in product.php

Locked

Views: 1,751

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
06 Mar 2007, 21:38
#1
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

automatic product model in product.php

Hello can somebody help me with this script? I neet to set the product model to have it same as product ID because when I would like to export data by easy populate. I need to have set product_model and I didn´t write it in products!! So when I export data now in import I can hear only no model in field. Does anybody know how set automatic product model number? Thank you michal

06 Mar 2007, 21:41
#2
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

Re: automatic product model in product.php

the file is in: admin/product.php

06 Mar 2007, 22:35
#3
drbyte avatar

drbyte

Sensei

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

Re: automatic product model in product.php

before you do an export, go to Admin->Tools->SQL Patch

paste this in the window and click submit:```
update products set products_model = products_id;


That will set the model number to the product ID number for *all* products, wiping out *all* previous model number information.
09 Feb 2010, 14:24
#4
odessey1 avatar

odessey1

New Zenner

Join Date:
Mar 2008
Posts:
33
Plugin Contributions:
0

Re: automatic product model in product.php

I need the product ID to be changed to match the Model number.
The model numbers are all unique.

What would be the direction for this?

09 Feb 2010, 14:30
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: automatic product model in product.php

Can't do that. The product ids are automatically generated by the database, and are used for a host of other DB coordination.