News:

Support the VirtueMart project and become a member

Main Menu

Variant values not stored in mail or database

Started by kermitfrog, January 03, 2019, 09:45:24 AM

Previous topic - Next topic

kermitfrog

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!


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kermitfrog

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.