jdelgado Posted July 21, 2003 Posted July 21, 2003 hi, After I uploaded (using EasyPopulate) a list of 330 books to my OSC site, I'm using for Model number a code that in Spain is called ISBN code and it is a unique number every book comes with. I think it is also used in many other countries. This code is 13 digits long, but after the upload I realised that it had been cut to the first 12 digits only. Is it because OSC has a predefined length of 12 digits for the Model number? Can I change that number? Where is variable set? If not, where do you think my problem may come from? Thanks in advance. Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
Guest Posted July 21, 2003 Posted July 21, 2003 You would change it in the MySQL database. products_model is currently varchar(12). If you edit the database (e.g. with phpMyAdmin), you can change the variable to 13. Good luck, Matt
jdelgado Posted July 22, 2003 Author Posted July 22, 2003 Oh, you were right! I modified the DB using PHPMyAdmin and uploaded again my list of books and it now works great. Thanks so much! Jose Delgado - - - - - - - - - - - - "I wish I were smart enough so I could end all my posts with one of those famous and brillant phrases!" J. Delgado, amateur philosopher (2003)
iamkim Posted August 19, 2004 Posted August 19, 2004 hmmm... i don't see where to change the model var from the admin panel in OSCommerce.. do I need another program? Building the web - One Site at A Time
rockgremlin Posted June 10, 2005 Posted June 10, 2005 I just barely posted about this same problem. I want to change the number of variables that can be entered in the Products Model, but do I need another program to do this? :'(
Jack_mcs Posted June 10, 2005 Posted June 10, 2005 hmmm... i don't see where to change the model var from the admin panel in OSCommerce.. do I need another program? <{POST_SNAPBACK}> As mentioned, you need to use the phpmyadmin program to edit the database. That is not reachable via your sites admin section. You generally need to go to your hosts panel. The program is usually located there. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Birky Posted August 6, 2005 Posted August 6, 2005 As mentioned, you need to use the phpmyadmin program to edit the database. That is not reachable via your sites admin section. You generally need to go to your hosts panel. The program is usually located there. Jack <{POST_SNAPBACK}> Hi I've been looking in phpmyadmin but, can't seem to locate the products_module section that was mentioned earlier in the sql db.....can anyone enlighten me as to where this section is so that I can change it from 12? TIA
Jack_mcs Posted August 7, 2005 Posted August 7, 2005 You need to select your database. Then in the left column, select the products table. On the right side, you will see products_model as one of the fields. Edit that to change its size. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Birky Posted August 7, 2005 Posted August 7, 2005 You need to select your database. Then in the left column, select the products table. On the right side, you will see products_model as one of the fields. Edit that to change its size. Jack <{POST_SNAPBACK}> Thanks Jack..found it :thumbsup:
bitter-girl.com Posted September 9, 2005 Posted September 9, 2005 I have 3-digit model numbers and yet I'm still getting this error! Any ideas? Thanks! Shannon Okey
bitter-girl.com Posted September 9, 2005 Posted September 9, 2005 Also -- just checked via phpmyadmin -- it was 12, as you'd all said -- I changed it to 30, tried to upload the EasyPopulate file again..... same error! Shannon Okey
Jack_mcs Posted September 10, 2005 Posted September 10, 2005 Did you also change the size in the admin/easypopulate.ph file? They have to match. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
bitter-girl.com Posted September 20, 2005 Posted September 20, 2005 Did you also change the size in the admin/easypopulate.ph file? They have to match. Jack <{POST_SNAPBACK}> Hi Jack -- downloaded easypopulate.php and found the location in the file where the error text comes from, but not where to change that number. Am I totally overlooking something? Thanks. Shannon Okey
♥Vger Posted September 20, 2005 Posted September 20, 2005 admin/easypopulate.php ----------------------------- //**** Size of products_model in products table **** // set this to the size of your model number field in the db. We check to make sure all models are no longer than this value. // this prevents the database from getting fubared. Just making this number bigger won't help your database! They must match! global $modelsize; $modelsize = 100; Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.