Custom fields assigned to all products in order

Started by lindapowers, March 07, 2017, 21:10:43 PM

Previous topic - Next topic



Testing latest package I encountered an issue where orders which contain a product with a field of type string are showing that custom field below every product in the order.

If you watch the image only the first product "naranjas de zumo (kg) has that custom field of type string "caliber standard" but is showing in all. The rest of the products don't even have that custom field assigned in the backend and of course is not chooseable from the frontend either.

I have updated from beta where the issue does not happen.

Have no clue if this is a cache issue or how could it happen.



Confirmed as a bug in the order line storage.


Adjust the file to this:

private function _createOrderLines($virtuemart_order_id, $cart)
$_orderItems = $this->getTable('order_items');

foreach ($cart->products  as $priceKey=>$product) {

$_orderItems->product_attribute = vmJsApi::safe_json_encode($product->customProductData);
} else {
$_orderItems->product_attribute = '';

This change will NOT affect orders already raised.


Joomla 4.4.5
php 8.1


Should I fix your bug, please support the VirtueMart project and become a member
Extensions approved by the core team: