Author Topic: Problem with displaying the trash attribute in an email  (Read 1103 times)

korets77

  • Beginner
  • *
  • Posts: 4
  • A beginner
Problem with displaying the trash attribute in an email
« on: September 23, 2020, 17:59:51 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3881
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Problem with displaying the trash attribute in an email
« Reply #1 on: September 24, 2020, 00:17:40 am »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1526
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Problem with displaying the trash attribute in an email
« Reply #2 on: September 24, 2020, 02:14:50 am »
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

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Problem with displaying the trash attribute in an email
« Reply #3 on: September 24, 2020, 08:09:48 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3881
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Problem with displaying the trash attribute in an email
« Reply #4 on: September 24, 2020, 08:28:55 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10532
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Problem with displaying the trash attribute in an email
« Reply #5 on: September 24, 2020, 11:36:02 am »
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

Code: [Select]
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

korets77

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Problem with displaying the trash attribute in an email
« Reply #6 on: September 25, 2020, 09:07:08 am »
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...