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

#   Automatically unpublish products

##

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 8 months ago [\#232796](#232796) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232796 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")* was created by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Can we automatically unpublish products that are no longer available?

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 8 months ago -  10 years 8 months ago [\#232800](#232800) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232800 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hi,

I would like to know it too. I think this can be done with mass action help. A tutorial would be welcome. How to unpublish product when quantity gets to 0...

Last edit: 10 years 8 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

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

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 8 months ago [\#232804](#232804) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232804 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Maybe one could run a cron job then.. but what would it look like?

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 8 months ago [\#232806](#232806) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232806 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Here is mass action to unpublish product when quantity is changed to 0.
But it's very bad practice to unpublish products.

- [ ![fefefe4f6e4f6ef4.png](/forum/attachment/30020) ](/forum/attachment/30020 "...4f6e4f6ef4.png") [ ](/forum/attachment/30020?download=1 "...4f6e4f6ef4.png")

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile")
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 8 months ago [\#232809](#232809) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232809 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hi,

Korzo thanks for share. Why would you say it is bad practise?

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 8 months ago [\#232814](#232814) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#232814 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

I did a case study on this subject and it has negative impact on SEO.
When product is unpublished, Hikashop display soft 404, what is generally an empty page.
Visitors landing on such page tend to leave site immediately.
Google has problem identifying such pages as error pages which leads to a lot of duplicate content. declining crawl rate and number of indexed pages.

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

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 7 months ago [\#233876](#233876) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#233876 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hi, ours is jut a school shop so SEO is not an issue. We don't use quantity so need it done based on availability date i..e once the date is past the product must be unpublished,

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

- **[korzo](/forum/user/34428-korzo "View korzo's Profile")**
- [![korzo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34428.png)](/forum/user/34428-korzo "View korzo's Profile")
- [ Offline](/forum/user/34428-korzo)

Less More

- Posts: 193
- Thank you received: 76
-
-

10 years 7 months ago -  10 years 7 months ago [\#233924](#233924) by [korzo](/forum/user/34428-korzo "View korzo's Profile")  Replied by *[korzo](/forum/user/34428-korzo "View korzo's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#233924 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

You have to set up cron task to run this mass action periodically
[ ](http://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop/installation-configuration/55-hikashop-cron-task.html)[ www.hikashop.com/support/documentation/i...ashop-cron-task.html](http://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop/installation-configuration/55-hikashop-cron-task.html)

[ ![unpublish&#95;after&#95;sale&#95;end.png](/forum/attachment/30242) ](/forum/attachment/30242 "...r&#95;sale&#95;end.png")

- [ ![unpublish&#95;after&#95;sale&#95;end.png](/forum/attachment/30242) ](/forum/attachment/30242 "...r&#95;sale&#95;end.png") [ ](/forum/attachment/30242?download=1 "...r&#95;sale&#95;end.png")

Last edit: 10 years 7 months ago by [korzo](/forum/user/34428-korzo "View korzo's Profile").

The following user(s) said Thank You: [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI5NTktYXV0b21hdGljYWxseS11bnB1Ymxpc2gtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 7 months ago [\#233886](#233886) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#233886 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hi,

So the mass action provided by korzo should do the job.

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

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 7 months ago [\#234000](#234000) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#234000 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Thanks, I had not seen Korzo's bulk actions.

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

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

10 years 2 weeks ago [\#254081](#254081) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#254081 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hikashop 2.6.4

1. Is it possible to use this mass action for products with variants ?
2 ..and also make it unpublish the main product when all the variants are sold out ?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 2 weeks ago [\#254082](#254082) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Automatically unpublish products](/forum/26-product-category-display/882959-automatically-unpublish-products#254082 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Can we automatically unpublish products that are no longer available?")*

Hi,

Regarding the mass-action system, it won't be possible because you will need to check every variants and it can be done using several SQL queries and multiple checks.
In that case, a custom plugin will be required.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI5NTktYXV0b21hdGljYWxseS11bnB1Ymxpc2gtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) 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.106 seconds

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