Temporarily Remove Option From Dropdown

  • Posts: 966
  • Thank you received: 11
11 years 11 months ago #107527

I have a characteristics of Small, Medium and Large. I no longer have any Small products left but I do not want to delete it because I will be getting more so I unpublished it but it is still showing in the selection on the front page.

I thought if I unpublished it it would not show in the frontend?

How can I keep the characteristics in the backend but not have it show in the frontend.

Thank you!!

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
11 years 11 months ago #107562

Hi,

If you unpbulish it, it can still show but you won't be able to purchase it.
If you don't want it to show, you need to turn off the option "Show out of stock products" in the configuration.

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #119747

If you unpbulish it, it can still show but you won't be able to purchase it.

Can it be greyed out then so the user cannot select it?

If you don't want it to show, you need to turn off the option "Show out of stock products" in the configuration.

Although I can turn off "out of stock" products I have the shop set-up to show the items that are sold out so I need this option to remain.

Thanks!!

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
11 years 8 months ago #119798

There is no way to add a disable on dropdown elements with the API of Joomla we're using to display the dropdowns. It would require to rewrite a good part of the characteristic dropdown display so it's no easy task but nothing is impossible.
What you can do alternatively is to change the characteristic display method from dropdown to list in order to get a listing of the variants on the product page with each own having its add to cart button instead of a dropdown selector.

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #122054

What you can do alternatively is to change the characteristic display method from dropdown to list in order to get a listing of the variants on the product page with each own having its add to cart button instead of a dropdown selector.


Until I get the above sorted is there a way that I can add a note to say "Sold Out" if the user choose a size is sold out? If so, how would I do that?

Thank you!!

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
11 years 8 months ago #122072

That should already be the case.
When a user select a variant without any stock, the add to cart button won't show and you will get a "no stock" message displayed.

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #122200

Odd :( The "add to cart" but does not show - which is correct, but I don't see the "no stock" message.

I looked to see if there is somewhere where I could have turned it off but I don't see that.

Thanks!!

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

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
11 years 8 months ago #122233

If you don't see it, it's probably that you use a translation override to remove it or added custom CSS to hide it.

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #122351

Nicolas,

I always seem to run into another issue when I fix one issue :)

Because the first variant is "Select a Size" and it's set to quantity = 0 the message is showing as sold out - so user, will assume that that product is sold out when it's not. Only when they click on the size they will get the correct messages that are related to each size.

I noticed in the new release there is an option to have an "add to cart" for each size, where is the instructions for that? I would like to try that.

Thank you!!

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

  • Posts: 2334
  • Thank you received: 403
11 years 8 months ago #122709

Hi there,

You can fix this by different way:
- You can set the quantity for this variant to 1 and add a javascript check when the user click on the button. So if the selected option is the first one, an error message is displayed and the user stay on the page (it's not very hard to code if you have some js skills).
- You can change the translation for sold out to nothing so the message won't be displayed (but it won't be displayed anywhere...)
- Or you can add some php code to the view so the sold out message is never displayed for this option (but I need the exact error message to tell you how to do this).

About the option you are talking about, I can't see where it is, could you be more precise?

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #123566

About the option you are talking about, I can't see where it is, could you be more precise?

I know I saw it but I can't seem to find it right now. :( I will look again.

The options dropdown display now takes into account the "show out of stock products" option of the configuration to display or not the options variants

The above may help me with what I'm trying to do here but I don't understand fully what it means and how it works. Can you clarify?

Thanks!!

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

  • Posts: 966
  • Thank you received: 11
11 years 8 months ago #123608

About the option you are talking about, I can't see where it is, could you be more precise?

I see it now it's in the post above from nicolas that says:

What you can do alternatively is to change the characteristic display method from dropdown to list in order to get a listing of the variants on the product page with each own having its add to cart button instead of a dropdown selector.


Thanks!!

The following user(s) said Thank You: Jerome

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

Time to create page: 0.086 seconds
Powered by Kunena Forum