1. konstantinos29
  2. RO CSVI
  3. Friday, 31 May 2019
  4.  Subscribe via email
We set up a template to export Virtuemart orders to CSV.
We use phone1 and phone2 fields.

We want phone2 to be the same as phone1 (duplicate), if phone2 is not provided.

Any pointers?

Thanks
Accepted Answer Pending Moderation
Hello,
You can use Conditional rule for export for checking if a value of a field is empty and to replace it with another field value. To do that

1. Go to CSVI Rules page
2. Create a new Rule, give a name, Select action as export, set plugin as CSVI Conditional and Save the plugin for seeing the rest of the settings.
3. Select Compare that value to be Equal to, Value field to be empty space, Replace with as Value from another field, Field/Value as phone_1.
4. Save the rule. Apply this rule on phone_2 field on CSVI templates field page.
5. Run the export and check.
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. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!