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

#   Show unpublished products without add to cart button

##

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 5 months ago [\#270073](#270073) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270073 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")* was created by *[montemama](/forum/user/43131-montemama "View montemama's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.4

Hi,

is it possilbe to show unpublished items without add to cart button and with some notification like "archived item" or something like that?
I do not want to have unpublished products in product listings, only show them if somebody clicks on "old" link to the product instead 404 page. Is it possible to do it somehow?
Thanks!
Jarka

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

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

Less More

- Posts: 200
- Thank you received: 75
-
-

9 years 5 months ago [\#270079](#270079) by [GW](/forum/user/33851-gw "View GW's Profile")  Replied by *[GW](/forum/user/33851-gw "View GW's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270079 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hi,

that's a good question, we had the same issue.
It is possible, but your products have to remain published in order not to get the 404 page.

What you can do, is create a new Hikashop Category called "archived" or something and place your products in there. As long as you don't add this category in any product listing, the products will not be visible to visitors of your webshop, but the product will still be accessible if someone clicks on an old link to it from a search engine for example.

The easiest way not to have an add to cart button is to simply set your product quantities to 0, otherwise you could make a view override not to show the button for all products in this category but that is more complicated.

Hope that helps!

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 5 months ago -  9 years 5 months ago [\#270114](#270114) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270114 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Thank you very much for your advice. The extra category for archived items is a good idea.
I use a small "hack" for inventory - in order to know the amount of sold out items, I added 1000 to quantity of all products. This way, if it says 1005, I know I have 5 available. And if the quantity reaches 1000 or less, I have mass action set up to unpublish the item. Instead of unpublishing I could replace current category (or categories) assigned to product to "Archived".
Now, the question is: what and where should I change if I want to hide add to cart button if the quantity is 1000 or less?
OR
How to hide the add to cart button for all products in this category?

When the product is available again, do I have to manually add the original categories again and remove it from "archived" category? Is there some way to use mass actions for this?

And what about variants? As far as I know, variants do not have categories assigned.

Last edit: 9 years 5 months ago by [montemama](/forum/user/43131-montemama "View montemama's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNTQtc2hvdy11bnB1Ymxpc2hlZC1wcm9kdWN0cy13aXRob3V0LWFkZC10by1jYXJ0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

9 years 5 months ago [\#270116](#270116) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270116 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hi,

You could change your mass action to instead update the product_sale_end value of the product to {time}
That would also remove the add to cart button while still allowing the display of the product page.
And you could use another mass action to empty that product_sale_end value when the stock goes above 1000.
That way, the system would be automated.

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 5 months ago [\#270188](#270188) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270188 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Thank you very very much, Nicolas! You are genious! ![:)](/media/kunena/emoticons/3.png ":)") This is exactly what I need.

One more question - when I try to search for unavailable hidden product, I can find it when I use Joomla search module, but Hikashop filter doesn´t find it. Is it a purpose or not?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNTQtc2hvdy11bnB1Ymxpc2hlZC1wcm9kdWN0cy13aXRob3V0LWFkZC10by1jYXJ0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 4079
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#270191](#270191) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270191 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hello,

The Search plugin for HikaShop products do not have specific filters for the categories ; so it can find products which are "hidden".
The filter system is something which interact with the product listing ; so if a product is not visible in the listing, the filter won't make it appear.

Regards,

---

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 5 months ago -  9 years 5 months ago [\#270294](#270294) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270294 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hi,
is it possible to add new column with product_sale_end to product listing in backend? I know how to add custom field, but this requires probably some coding in product / listing.php view, right?
In fact, I do not need to have here the complete time stamp, just want to know, if the field is empty or not - to know if the product is visible in frontpage or not.

Last edit: 9 years 5 months ago by [montemama](/forum/user/43131-montemama "View montemama's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNTQtc2hvdy11bnB1Ymxpc2hlZC1wcm9kdWN0cy13aXRob3V0LWFkZC10by1jYXJ0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 4079
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#270297](#270297) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#270297 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hello,

Every HikaShop view can be customized and override, even the backend interface.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Adding a column in that listing is not very complicated but it requires some PHP knowledge.

Regards,

---

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 5 months ago [\#271701](#271701) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#271701 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Dear Hikashop team,
I would appreciate your help. How to set up mass action to empty the product_sale_end value when the stock goes above 1000? I was trying, but without success. Update the values product_sales_end = STRING and leave the value empty? Or how? Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNTQtc2hvdy11bnB1Ymxpc2hlZC1wcm9kdWN0cy13aXRob3V0LWFkZC10by1jYXJ0LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 4079
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#271703](#271703) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Show unpublished products without add to cart button](/forum/26-product-category-display/890354-show-unpublished-products-without-add-to-cart-button#271703 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.4  Hi,  is it possilbe to show unpublished items without add to cart button and with some notification like &quot;archived item&quot; or something like that? I do not want to have unpublished products in product listings, only show them if somebody clicks on &quot;old&quot; link to the product instead 404 page. Is it possible to do it somehow? Thanks! Jarka")*

Hello,

You need to put a number (integer) into the "product_sales_end" column.
If you have more question about your mass action ; please create a new subject for it, including a screenshot of the mass action settings.

Regards,

---

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

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

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

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