Display out of stock products <> show unpublished

  • Posts: 71
  • Thank you received: 1
9 years 3 months ago #230265

-- HikaShop version -- : 2.6.1

When I have the option Display out of stock products on. Hikashop will show product variants that are not published. I don't think this is the right way. Not published is not published :)

Out of stock is something totally different then not published.
You can add an option show not published variants but I don't think anyone will use this.

Best regards,
RG

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
9 years 3 months ago #230352

Hello,

I can understand your surprise, but this can be usefull in some case...
Anyway, you can custom your HikaShop code quite easily.

Find the file : in front=> views => product => view.html.php

Look for this code :



And replace this line for this code :



Hope this will fit your needs!

Regards,

Attachments:
Last edit: 9 years 3 months ago by Philip.

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

  • Posts: 71
  • Thank you received: 1
8 years 1 month ago #266158

Hey,

This is a fix that will be overwritten by an update?

Best regards,

RG

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #266159

Hello RG,

No because it's also available through the last Hikashop version.

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

  • Posts: 71
  • Thank you received: 1
7 years 3 months ago #287108

Hey,

I'm now on HikaShop Business 3.2.2 and the problem is back.
The unpublished products of a variant are back visible. How can I hide them?

Best regards,
RG

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

  • Posts: 83858
  • Thank you received: 13577
  • MODERATOR
7 years 3 months ago #287122

Hi,

We'll need more information because we're not able to reproduce the problem and the code modification we provided is still in place in the file (albeit it's been rewritten a bit).
We've also tried to reproduce the problem on our end, but we correctly have variants not displaying when they are unpublished.

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

  • Posts: 71
  • Thank you received: 1
7 years 3 months ago #287151

Hey Nicolas,

I have copied the webshop to a test env. How can I send you the website info privately?

When I only have 1 characteristic he will display only the published and when I have 2 characteristics he will display also the unplushed.


Best regards,

RG

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

  • Posts: 83858
  • Thank you received: 13577
  • MODERATOR
7 years 3 months ago #287157

Hi,

You can use our contact form:
www.hikashop.com/support/contact-us.html
Please make sure you also include a link to this thread.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 3 months ago #287279

Hello,

What you asked isn't possible in characteristics dropdown display mode, because a characteristics dropdown can't be refresh after selected a first variant, and the only solution is to display the "No stock".
When you have to cross 2 variants via dropdown the only solution is too display all possibilities.

I think that the characteristics display mode will be more clear in list mode.
That will display only available configuration.

Regards

Last edit: 7 years 3 months ago by Philip.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum
loading