1. webstar
  2. RO CSVI
  3. Thursday, 12 January 2023
  4.  Subscribe via email
We need to make a Discount Adjustment for our account software I'm trying to do the following...
This is a virtuemart Export template - How would I output the following into a column
coupon_discount - (order_tax - order_billTaxAmount)

I can seem to find the right combination in existing rules, Would i need to make my own plugin?
Accepted Answer
Accepted Answer Pending Moderation
Hello,
You can get other fields added to export template using $fields variable. You can get specific field value using the getField method and by passing the name of the field for $fieldname. See below code.


$fieldValue = $fields->getField($fieldname); // for order_tax use $fieldValue = $fields->getField('order_tax');
$value = $fieldValue->value;
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.