News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problem with displaying the trash attribute in an email

Started by korets77, September 23, 2020, 17:59:51 PM

Previous topic - Next topic

korets77

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?

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

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 :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

korets77

#3
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"

Jörgen

Hrmmm, my Russian is not that good, please send images in english.

JPG files are not translatable in google

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

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?
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

korets77

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...