[Skip to main content](#vessel-content)

#   How to unpublished products by default after Product Cron Update

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 646
- Thank you received: 26
-
-
-

8 years 9 months ago -  8 years 9 months ago [\#288177](#288177) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[How to unpublished products by default after Product Cron Update](/forum/37-import-export-csv-xls/893843-how-to-unpublished-products-by-default-after-product-cron-update#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&#95;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")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- url of the page with the problem -- : [ remedybank.com](https://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: 8 years 9 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTM4NDMtaG93LXRvLXVucHVibGlzaGVkLXByb2R1Y3RzLWJ5LWRlZmF1bHQtYWZ0ZXItcHJvZHVjdC1jcm9uLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

8 years 9 months ago [\#288185](#288185) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to unpublished products by default after Product Cron Update](/forum/37-import-export-csv-xls/893843-how-to-unpublished-products-by-default-after-product-cron-update#288185 "-- 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&#95;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")*

Hi,

You can modify the plugins/hikashop/datafeed/datafeed.php file of the product cron update plugin and add the line:
$importHelper-&gt;header_errors = false;
after the line:
$importHelper-&gt;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](/forum/user/31479-lumiga "View Lumiga's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTM4NDMtaG93LXRvLXVucHVibGlzaGVkLXByb2R1Y3RzLWJ5LWRlZmF1bHQtYWZ0ZXItcHJvZHVjdC1jcm9uLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 646
- Thank you received: 26
-
-
-

8 years 8 months ago [\#289243](#289243) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[How to unpublished products by default after Product Cron Update](/forum/37-import-export-csv-xls/893843-how-to-unpublished-products-by-default-after-product-cron-update#289243 "-- 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&#95;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")*

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-&gt;force_published = false;
after the line:
$importHelper-&gt;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](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTM4NDMtaG93LXRvLXVucHVibGlzaGVkLXByb2R1Y3RzLWJ5LWRlZmF1bHQtYWZ0ZXItcHJvZHVjdC1jcm9uLXVwZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.087 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
