News:

Looking for documentation? Take a look on our wiki

Main Menu

Order email - RAW - customfields

Started by Dragoner, August 17, 2016, 08:55:01 AM

Previous topic - Next topic

Dragoner

Hi, I need advice how to erase  red underlined DIV from raw order email? There need be only the name customfield (yellow box on screen).

Thank you
David

Dragoner

Can i load only customfield value without name?

Thanks
David

GJC Web Design

You need to adapt your components\com_virtuemart\views\invoice\tmpl to display how u want if u don't want to use plain text in your custom I guess
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

Dragoner

Thanks for reply.

I have this code in /components/com_virtuemart/views/invoice/tmpl/mail_raw_pricelist.php

   
if (!class_exists('VirtueMartModelCustomfields'))
    require(VMPATH_ADMIN . DS . 'models' . DS . 'customfields.php');
$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item, 'FE');
echo "\n" . $product_attribute . "\n";



I donť know how can i change it.

Thanks
David

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

but assume something like

echo "\n" .  strip_tags($product_attribute) . "\n";
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

jenkinhill

It is a bug, I just replicated it in VM 3.0.17.6   HTML mail is fine, it's just a problem with plain text mail (I have never used text mail on VM before).
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

Not trivial to change this. It could work with the strip_tags($product_attribute), then it is trivial, but if it does not work, then we need an extra param for the VirtueMartModelCustomfields::CustomsFieldOrderDisplay function, which renders without tags
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Dragoner

I have version 3.0.17.4, my client want to use RAW (plain text) emails. Will it be repair in next version?

Thank you.
David

GJC Web Design

Have u tried this?

echo "\n" .  strip_tags($product_attribute) . "\n";
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