VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: kermitfrog on January 03, 2019, 09:45:24 AM

Title: Variant values not stored in mail or database
Post by: kermitfrog on January 03, 2019, 09:45:24 AM
Hi,

I'm using Joomla 3.9.1 und VM 3.4.2.

I have products with variants using the "multi variant" plugin.
For example a Shirt with variants of "color", so a custom label for color.

I do also have string fields for the size.

Since the last update, the labels for "multi variant" (but also if I use the "Generic child variant") are not stored in the mail or in the database.
The string fields however are stored.

The shopping cart displays everything correctly.

Attached you can see
1_backend:  the multi variant plugin and the product
2_frontend: the product and the cart (everything is correct here)
3_mail_backend: the mail and the Order information (the variants are missing)

It was working before the update.

Regarding the database table "virtuemart_order_items" I can see a difference between the older (working) and newer (not working) orders.
The older ones have stored in the "product_attribute"
{
    "73": {
        "1678": false
    },
    "71": "1703"
}

1678 is the list of child variants
1703 is the size

Now, the child variants seems empty
{
    "73": [],
    "71": "1703"
}

The size is still there, but the child variants are now only []



Kind regards!

Title: Re: Variant values not stored in mail or database
Post by: GJC Web Design on January 03, 2019, 11:57:52 AM
is this the same problem? 

http://forum.virtuemart.net/index.php?topic=141797.0
Title: Re: Variant values not stored in mail or database
Post by: kermitfrog on January 03, 2019, 12:26:56 PM
Quote from: GJC Web Design on January 03, 2019, 11:57:52 AM
is this the same problem? 

http://forum.virtuemart.net/index.php?topic=141797.0
Oh, yes. It is.

And it's true: If I delete all string attributes, the variant attribute is stored correctly.