1. Anonymous User
  2. RO CSVI
  3. Wednesday, 03 November 2021
  4.  Subscribe via email
Hi, how can i import products to virtuemart and if the products is publish stay publish and other import as unpublish?
Accepted Answer Pending Moderation
Thank you Roland
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,

What you are asking is not possible with RO CSVI at this point and that is due to this sentence:
Now i would like the import recognize if the product is published
this requires a database check to find out whether or not the product is published.

There are two ways to go about this at this point. First is to create your own RO CSVI rule, that does exactly that check and set the published state according to what is stored in the database. Second is to run an export of all published products with the fields product_sku and published, import this file after you imported the XML file as to sort of reset the published field.

Hope that helps.
Kind regards,

RolandD

=========================
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
Accepted Answer Pending Moderation
Hi Tharuna,
thanks for reply and lets start again what i want ... i would like to import XML and all products from XML stay unpublished (using published field with default 0). So far all good and completed.
Now i would like the import recognize if the product is published and not changed to unpublish and update only prices, description, stock, etc.
I tried the rule - Conditional plugin with no luck.

Thank you
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,
Please check VirtueMart Product import document which explains on how to import product into VirtueMart.

if the products is publish stay publish and other import as unpublish?

The field in VirtueMart database table to set a product published or unpublished is published. If you do not include this field in import file, product published state will not be updated and stays as it is.
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. # 4
  • Page :
  • 1


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