Automatically unpublish products

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #232796

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

Can we automatically unpublish products that are no longer available?

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

  • Posts: 1119
  • Thank you received: 114
9 years 1 month ago #232800

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: 9 years 1 month ago by kyratn.

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

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #232804

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

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

  • Posts: 193
  • Thank you received: 76
9 years 1 month ago #232806

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

Attachments:

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

  • Posts: 1119
  • Thank you received: 114
9 years 1 month ago #232809

Hi,

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

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

  • Posts: 193
  • Thank you received: 76
9 years 1 month ago #232814

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

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #233876

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

  • Posts: 193
  • Thank you received: 76
9 years 1 month ago #233924
Attachments:
Last edit: 9 years 1 month ago by korzo.
The following user(s) said Thank You: rcadmin

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

  • Posts: 83677
  • Thank you received: 13546
  • MODERATOR
9 years 1 month ago #233886

Hi,

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

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

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #234000

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

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

  • Posts: 344
  • Thank you received: 3
8 years 6 months ago #254081

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
8 years 6 months ago #254082

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 & 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.

Time to create page: 0.116 seconds
Powered by Kunena Forum