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
Can i load only customfield value without name?
Thanks
David
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
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
What VirtueMart version is that?
but assume something like
echo "\n" . strip_tags($product_attribute) . "\n";
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).
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
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
Have u tried this?
echo "\n" . strip_tags($product_attribute) . "\n";