How to unpublished products by default after Product Cron Update

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 1 month ago #288177

-- url of the page with the problem -- : remedybank.com
-- HikaShop version -- : 3.3
-- Joomla version -- : 3.8.5
-- PHP version -- : 7

Hi Hikashop team,

Every 15 minutes we update the products form our back-end administration too Hikashop with a CSV file. We do not use the product_published field because we want to publish or unpublish products manually in Hikashop.

But when a product is imported for the first time it’s automatically published and that is not allowed in our situation because the price has not yet been added because we want to do this manually.

Is it possible to make an option in the Product Cron Update plugin to set new / first imported products by default unpublished. (No problem if there are costs involved)

Hope you can help us.

Kind regards,
Lumiga


Kind regards,
Lumiga
Last edit: 6 years 1 month ago by Lumiga.

Please Log in or Create an account to join the conversation.

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 1 month ago #288185

Hi,

You can modify the plugins/hikashop/datafeed/datafeed.php file of the product cron update plugin and add the line:
$importHelper->header_errors = false;
after the line:
$importHelper->force_published = false;
to deactivate the auto publishing of new products.
We'll look at adding an option for that.

The following user(s) said Thank You: Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
6 years 1 month ago #289243

Hi Nicolas,

It's working fine!
Thank-you very much.

I hope it will be a option in the next update.

You only mixed-up the old and new line in your text. It should have been:
You can modify the plugins/hikashop/datafeed/datafeed.php file of the product cron update plugin and add the line:
$importHelper->force_published = false;
after the line:
$importHelper->header_errors = false;
to deactivate the auto publishing of new products.

Kind regards,
Lumiga


Kind regards,
Lumiga
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum