Show unpublished products without add to cart button

  • Posts: 46
  • Thank you received: 3
7 years 11 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 75
7 years 11 months ago #270079

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

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

  • Posts: 46
  • Thank you received: 3
7 years 11 months ago #270114

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: 7 years 11 months ago by montemama.

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

  • Posts: 83806
  • Thank you received: 13571
  • MODERATOR
7 years 11 months ago #270116

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

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

  • Posts: 46
  • Thank you received: 3
7 years 11 months ago #270188

Thank you very very much, Nicolas! You are genious! :) 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 or Create an account to join the conversation.

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 11 months ago #270191

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 46
  • Thank you received: 3
7 years 11 months ago #270294

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: 7 years 11 months ago by montemama.

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

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 11 months ago #270297

Hello,

Every HikaShop view can be customized and override, even the backend interface.
www.hikashop.com/support/documentation/1...-display.html#layout

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 46
  • Thank you received: 3
7 years 11 months ago #271701

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 or Create an account to join the conversation.

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 11 months ago #271703

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: montemama

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

Time to create page: 0.067 seconds
Powered by Kunena Forum