News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

varchar(2500) not enough for customfield_value and fieldtypes in general

Started by sirius, February 11, 2021, 18:44:30 PM

Previous topic - Next topic

pinochico

Quote#__virtuemart_products.product_gtin
Fieldtype :  VARCHAR(64)  OK for this one it's a bit more contentious, but given that the GTIN is officially a maximum of 14 characters in length (ITF-14 for multipacks) I think a VARCHAR(14) would be more appropriate.

for ISBN too?

gtin is not only for gtin
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

sirius

ok thanks jenkinhill
understood, so yes a mediumtext will be involved

hi pinochico
gtin is for gtin, it's hazardous to use it for something else than it's own purpose. And if so the name should be something else than gtin.
https://en.wikipedia.org/wiki/Global_Trade_Item_Number

This apart ISBN is now a GTIN-13 since 2007.

J3.10.12 | PHP 7.4.33 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 4.4.0.11095

pinochico

hi sirius:

thanks for your info, we use this filed for ISBN too, but I don't check if the same as EAN, only import from Helios (value is from eshop owner) and is ok == function.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

jenkinhill

I use GTIN for ISBN for a bookstore, but it is renamed in the language files since they only trade in the UK and everybody who deals with books uses the ISBN designator.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

pinochico

QuoteI use GTIN for ISBN for a bookstore, but it is renamed in the language files since they only trade in the UK and everybody who deals with books uses the ISBN designator.

Exactly, we use too :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products