Good day, in VirtueMart 3.8.4, when you block a custom field for a child product, the field attributes are no longer displayed in emails coming to the mail. Moreover, everything is displayed correctly in the shopping cart and admin panel. If you go to the admin panel and update without changing the order status, you receive an email with attributes, the problem is only with the first email when placing an order.
Can anyone help?
This sounds like a template issue, what trash symbol ? This is not standard VM, because the trash symbol is never displayed in the e-mail.
VM-version, Joomla version, PHP version ? Template design ?
Jörgen @ Kreati Fotografi
and URL, some picture with error...
you (all people on this forum) still forget about it.
I don't know if it's already such a sport or you do it on purpose :)
Good afternoon, I apologize... Joomla! 3.9.21, PHP 7.3.21, VirtueMart 3.8.4 10335
Perhaps I was misunderstood, the problem with displaying an additional product property in the email, after it is blocked for a child product.
The problem appeared after updating VirtueMart to version 3.8.4. this may be due to a change in the inherited field lock and the appearance of a new variable
"noninheritable"
Hrmmm, my Russian is not that good, please send images in english.
JPG files are not translatable in google
Jörgen
I had some problems ( different .. customfields were displaying when the shouldn't have) also with customfields displays in the email and traced it to the code block below
sublayouts/customfield.php ~ line 706
foreach( (array)$product->customfields as $prodcustom){
//We just add the customfields to be shown in the cart to the variantmods
if(is_object($prodcustom)){
//We need this here to ensure that broken customdata of order items is shown updated info, or at least displayed,
if($prodcustom->is_cart_attribute or $prodcustom->is_input){
//The problem here is that a normal value and an array can be valid. The function should complement, or update the product. So we are not allowed
//to override existing values. When the $variantmods array is not set for the key, then we add an array, when the customproto is used more than one time
//the missing values are added with an own key.
if(!isset($variantmods[$prodcustom->virtuemart_custom_id]) or (is_array($variantmods[$prodcustom->virtuemart_custom_id]) and !isset($variantmods[$prodcustom->virtuemart_custom_id][$prodcustom->virtuemart_customfield_id])) ){
/************ GJC removed insert of extra customs in emails and admin *************/
#$variantmods[$prodcustom->virtuemart_custom_id][$prodcustom->virtuemart_customfield_id] = $prodcustom->virtuemart_customfield_id;
/************ GJC removed insert of extra customs in emails and admin *************/
//vmdebug('foreach $variantmods $customfield_id ', $prodcustom->virtuemart_custom_id, $prodcustom->virtuemart_customfield_id,$variantmods);
}
}
$productCustoms[$prodcustom->virtuemart_customfield_id] = $prodcustom;
}
}
Didn't investigate further due to lack of time and clients small budget.. ;)
Maybe something in this area?
Good day, I tried to place an order on the demo site, the same problem, the email does not display the product property when the "disinh"checkbox is active. Can you help? Ready to pay...