Hi
Testing latest package 3.0.19.8 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.
(https://s22.postimg.org/n5fd2iifl/caliber.jpg)
I have updated from beta 3.0.19.4 where the issue does not happen.
Have no clue if this is a cache issue or how could it happen.
Regards
Confirmed as a bug in the order line storage.
administrator\components\com_virtuemart\models\orders.php
Adjust the file to this:
private function _createOrderLines($virtuemart_order_id, $cart)
{
$_orderItems = $this->getTable('order_items');
foreach ($cart->products as $priceKey=>$product) {
if(!empty($product->customProductData)){
$_orderItems->product_attribute = vmJsApi::safe_json_encode($product->customProductData);
} else {
$_orderItems->product_attribute = '';
}
This change will NOT affect orders already raised.
Thanks for your missing Kudos