1. delinieict
  2. RO CSVI
  3. Sunday, 31 March 2019
  4.  Subscribe via email
Hi,
Is it possible to unpublish HikaShop products during import when the price is 0 or empty ?
I've searched but have not found enough inspiration to make it work.
Thanks for any tips.
Nico
Accepted Answer Pending Moderation
Thank you Tharuna,
So our best option is to use the skip option for now.
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Nico,
We don't have CSVI rules which can control two field values. The CSVI Conditional field plugin will manipulate values based on only one field. I can think of two ways to handle this situation.

One is to unpublish all the products before import by setting Unpublish before import to Yes on Options tab in import template settings and then publish the products which has a price value with published field set to 1 in your import file.

Second option would be using CSVI Skip rule plugin, where you skip the import of records which has a price value. You can add Published as a template field and set Default value to 0. With Skip rule all the records which has a price greater than 0 will be skipped and only records with price as 0 or empty will be imported. To find if the price has a value greater than 0, you may need to use regular expression. Regular expression something like ^(0*[1-9][0-9]*)$, this need to be modify accordingly but this will be a good one to start with.

Let me know if this helps.
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. # 2
  • Page :
  • 1


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