VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: gpessoa on March 17, 2021, 21:04:08 PM

Title: sku not allowed [solved]
Post by: gpessoa on March 17, 2021, 21:04:08 PM
Hi ppl,
I need to create a product with Sku 1310050111-8799050210-8786010210-1510050210, the problem is that VM doesn't allowed it...
It blows up!
I am thinking that this field is doing math... becouse, if I chande the fist digit from 1 to 9, like 9310050111-8799050210-8786010210-1510050210 it works as it should be!
Can somebody test this on your e-shops?
I need to know if this is a bug or something else...
Thank in advanced
Title: Re: sku not allowed
Post by: Jörgen on March 17, 2021, 21:45:07 PM
Virtuemart should not do any kind math on this. The field is a varchar with length of 255. Do You have some plugin or extension that maybe mistreats the field.? Check with phpmyadmin that the field is correct.

Jörgen
Title: Re: sku not allowed
Post by: gpessoa on March 18, 2021, 02:08:57 AM
Maybe the problem is that I changed my Porduct_sku index on DB by recommendation of Rolland (CSVI)...
Proceeded like described on this link!
https://rolandd.com/documentation/ro-csvi/virtuemart/speed-up-product-import (https://rolandd.com/documentation/ro-csvi/virtuemart/speed-up-product-import)
So, How can I undo that?
Title: Re: sku not allowed
Post by: Jörgen on March 18, 2021, 06:22:49 AM
Messing with the db is Always risky if you do not know what you are doing. The problem is not indexing, 25 characters is not enough for your specific needs. Change the size to match your sku length.

Jörgen @ Kreativ Fotografi
Title: Re: sku not allowed [solved]
Post by: gpessoa on March 18, 2021, 13:30:10 PM
Problem solved (increased index)
Thank you!  :)