Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I have a problem with Model longer than 12 digits


jdelgado

Recommended Posts

Posted

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)

Posted

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

Posted

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)

  • 1 year later...
Posted

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

  • 9 months later...
Posted

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? :'(

Posted
hmmm...  i don't see where to change the model var from the admin panel in OSCommerce.. do I need another program?

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

  • 1 month later...
Posted
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

 

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

Posted

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

Posted
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

 

Thanks Jack..found it :thumbsup:

  • 1 month later...
  • 2 weeks later...
Posted
Did you also change the size in the admin/easypopulate.ph file? They have to match.

 

Jack

 

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...