Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product ID still only 12 Chars?


Guest

Recommended Posts

Posted

Hi,

 

After 10 Years of OSCommerce, I had to restart from scratch and ran again into an old OSC problem:

 

The product ID is still 12 Chars only.

 

Why so narrow?

We don't have to spare every byte any more, do we?

 

The international ISBN standard for books is 13 chars and will not fit into OSCommerce ProductID, EAN is 13 chars as well, many product codes in the industry are wider.

 

OK the fix is easy, but wouldn't it be as easy to extend it to 16 or better 24 Chars in the standard and to avoid future trouble?

 

Regards

RIN

 

Posted

Hmm.  That's the normal osCommerce, if you're using that, a model of 12 is the least of your worries.

 

Anyone starting from scratch would be best advised to use the Responsive osCommerce.  

Posted

if database size/space is no concern, and you want to search efficiently on products model, I think you should be using a char field that has fixed length for each entry and your index will be much more performant

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

if database size/space is no concern, and you want to search efficiently on products model, I think you should be using a char field that has fixed length for each entry and your index will be much more performant

 

Performance should only be a concern for really huge shops. With some thousand products I don't have to worry about the product indexing.

Posted

I think @@rin67630 refers to products_model...

 

And, ummmmm, taken direct from the install SQL

Yes thanks for the precision.

Posted

Performance should only be a concern for really huge shops. With some thousand products I don't have to worry about the product indexing.

lucky you :D

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Archived

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

×
×
  • Create New...