How to unpublished products by default after Product Cron Update

  • Posts: 324
  • Thank you received: 10
  • Hikamarket Frontedition Hikashop Business
4 months 4 days 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: 4 months 4 days ago by Sailfin73.

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

  • Posts: 62488
  • Thank you received: 8936
  • MODERATOR
4 months 3 days 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: Sailfin73

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

  • Posts: 324
  • Thank you received: 10
  • Hikamarket Frontedition Hikashop Business
3 months 2 weeks 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.072 seconds
Powered by Kunena Forum