VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: gregcr66 on February 05, 2016, 19:09:15 PM

Title: product_mpn in virtuemart_product_customfields what's it for?
Post by: gregcr66 on February 05, 2016, 19:09:15 PM
Hi All,

I'm working with custom fields and noticed the datacolumn product_mpn in the customfields table of the DB.
I also see product_sku and product_gtin.

I don't see where this data may be used, but it may be helpful to my cause.

Can someone please let me know what these columns are intended for?

thanks!

Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: AH on February 05, 2016, 19:49:01 PM
its the product Manufacturer Part Number
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: jenkinhill on February 05, 2016, 20:37:16 PM
And GTIN is Global Trade Item Number. SKU (stockkeeping unit) is obvious to all businesses.
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: servlet on January 21, 2017, 13:59:15 PM
Ok.
How to use product_mpn in virtuemart_product_customfields
When shopper fill custom fields there are only title, price, value
there is on fields for product_mpn or product_gtin
from other side is it possible to display it in confirmation email
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: Studio 42 on January 22, 2017, 12:49:10 PM
It's only used for generic variant and multivariant.
I was wondering myself that this are not in the customfiel parameters, we have 2 columns only for this(or more?).
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: servlet on January 22, 2017, 20:42:13 PM
Thank you for replay
If I import values manually in database how to echo this values in cart or confirmation e-mail inline next to the selected field value
eg Material: WOOD mpn: W2032
Now it is possible to display
Material: WOOD
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: Studio 42 on January 22, 2017, 23:33:24 PM
This is bad way to use this fields. And perhaps this get removed a day.
Simply use a customfield having attribute cart, this is displayed in the cart and in the order too.
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: servlet on January 23, 2017, 19:14:28 PM
I am using customfields with Cart Attribute but I want to add MPN for this field
now I can add CUSTOM VALUE and CUSTOM PRICE when I create product with custom fields. Where is the field for MPN of custom field. There is a column MPN in database but you cannot use it. This option is needed.

No matter it get removed some day. I want to display it in confirmation mail. How to do it.
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: Studio 42 on January 23, 2017, 23:04:31 PM
Add a new custom field string and set it as cart attribute and name it MPN or Gtin or any you want add it to your product and fill your MPN and it work, it not need a hack
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: servlet on January 26, 2017, 16:17:12 PM
May be we dont understand each other.

Custom Fields of product

Sizes: 10m, 20m, 30m
Colors: Red, Blue

For what reason I have to add field with MPN field. Any size has own MPN
If user Select Size 20m MPN field will not change and I dont know which is the product in the store...
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: jenkinhill on January 26, 2017, 16:42:14 PM
As MPN has to be unique for each size variant, then surely each "variant" should be a different product, ie a child of the parent product.
Title: Re: product_mpn in virtuemart_product_customfields what's it for?
Post by: Studio 42 on January 26, 2017, 21:53:46 PM
If you need NMP for each variant
Sizes: 10m, 20m, 30m
Colors: Red, Blue
...
then use multi variant, because in this case the stock is not the same and perhaps other informations.
If only the color ahve NPM, then use genric variant for color and string list for sizes