Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to get the model/part # not to truncate?


ActiveTuning

Recommended Posts

Posted
My part numbers are too long so they are truncating on the invoice.  I know there is a simple fix, but how can I do this?

 

In MYSQL table 'products', field 'products_model' change # of characters in column 'type'

 

if you use easypopulate, you need to change it in easypopulate.php also, look for 'products_model'.

 

Good luck, charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Posted
In MYSQL table 'products', field 'products_model'  change # of characters in column 'type'

 

if you use easypopulate, you need to change it in easypopulate.php also, look for 'products_model'.

 

Good luck, charles

 

 

Thanks for the reply. The characters fit, but just to test I upped it to 25. No go. For example, on the invoice, what is supposed to be:

 

NI-AL-02KYBRSHX

 

Comes up as this on the invoice:

 

NI-AL-02KYBR

 

Seems like maybe something in the script is truncating it? Any thoughts?

Posted
Thanks for the reply.  The characters fit, but just to test I upped it to 25.  No go.  For example, on the invoice, what is supposed to be:

 

NI-AL-02KYBRSHX

 

Comes up as this on the invoice:

 

NI-AL-02KYBR

 

Seems like maybe something in the script is truncating it?  Any thoughts?

 

Hmmm... 12 is the default. It worked for me when I set it to 130 because I used the Model number to store the botanical names of herbal products, but I never printed an invoice, settling on a different method instead. You only say that the Model number is truncated on the invoice. If it is complete in catalog then it is probably a box size issue in the Admin funtion that produces the invoice? Of this I know nothing. Anyone else have any ideas?

 

I hope I was of some help.

 

Good luck, charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
  • 2 weeks later...
Posted
Hmmm... 12 is the default. It worked for me when I set it to 130 because I used the Model number to store the botanical names of herbal products, but I never printed an invoice, settling on a different  method instead.  You only say that the Model number is truncated on the invoice.  If it is complete in catalog then it is probably a box size issue in the Admin funtion that produces the invoice? Of this I know nothing.  Anyone else have any ideas?

 

I hope I was of some help.

 

Good luck, charles

 

 

I assume the same thing...anybody know for sure?

Posted

Let start from the top:

 

1. Use phpMyAdmin to edit products_model field of the products table:

ALTER TABLE `products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

2. Use phpMyAdmin to edit products_model field of the orders_products table:

ALTER TABLE `orders_products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

Notes:

- Replace XX with your desired length. (defaults = 12)

- Step 1 allows you to change the products_model length shown throughout your store.

- Step 2 allows you to change the products_model length shown in Admin >> Order

- To achieve Step 2 you must complete Step 1 first.

- The above modifications will work for every future orders.

- To change products_model of the orders made in the past, you'll have to use phpMyAdmin or find someone to write a custom script to excute after completing Step 2.

Posted
Let start from the top:

 

1. Use phpMyAdmin to edit products_model field of the products table:

ALTER TABLE `products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

2. Use phpMyAdmin to edit products_model field of the orders_products table:

ALTER TABLE `orders_products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

Notes:

- Replace XX with your desired length.  (defaults = 12)

- Step 1 allows you to change the products_model length shown throughout your store.

- Step 2 allows you to change the products_model length shown in Admin >> Order

- To achieve Step 2 you must complete Step 1 first.

- The above modifications will work for every future orders.

- To change products_model of the orders made in the past, you'll have to use phpMyAdmin or find someone to write a custom script to excute after completing Step 2.

 

PERFECT, thanks so much Alpha Ray, that was the exact sort of answer I was looking for. It was step 2 that I was missing lol!

 

Thanks again for the tremendous help, and the great post :D

Posted
PERFECT, thanks so much Alpha Ray, that was the exact sort of answer I was looking for.  It was step 2 that I was missing lol!

 

Thanks again for the tremendous help, and the great post :D

Anytime David! :thumbsup: I happened to come accross this a couple of weeks earlier.

Posted

Alpha Ray.

Spot on.

Great.

Cheers.

Keep smiling and thanks.

Colin

Scotland

  • 4 months later...
Posted
Let start from the top:

 

1. Use phpMyAdmin to edit products_model field of the products table:

ALTER TABLE `products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

2. Use phpMyAdmin to edit products_model field of the orders_products table:

ALTER TABLE `orders_products` CHANGE `products_model` `products_model` VARCHAR( XX ) DEFAULT NULL

 

Notes:

- Replace XX with your desired length.  (defaults = 12)

- Step 1 allows you to change the products_model length shown throughout your store.

- Step 2 allows you to change the products_model length shown in Admin >> Order

- To achieve Step 2 you must complete Step 1 first.

- The above modifications will work for every future orders.

- To change products_model of the orders made in the past, you'll have to use phpMyAdmin or find someone to write a custom script to excute after completing Step 2.

 

 

THANKS ALPHA RAY,

 

I searched this site for about an hour before I found your simple easy to understand response.

 

Everyone was saying do it in PHPmyadmin.... but I always thought I was to do the products model in the products table ONLY.

 

STEP 2 cleared it up!

 

Thanks a bunch.

I'm having a great Day - hope you are too!

 

Leon

Archived

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

×
×
  • Create New...