How to hide product options #2809
Replies: 3 comments 2 replies
-
That's an interesting feature. In my case, there are select elements where the options are dependent on dynamic factors and other selected options. I use js to hide/show the options. |
Beta Was this translation helpful? Give feedback.
-
I analyzed in more detail this feature that we could add to OpenMage to give flexibility to the custom options when not all are available at a moment. Instead of a checkbox dedicated to hiding an option, the most suitable would be a dropdown called Status with 3 variants Show / Disable / Hide. By default the first one is selected. The second one selected will make the option visible in the Frontend but it cannot be used. The third one will temporary remove the option from the Frontend. |
Beta Was this translation helpful? Give feedback.
-
I have implemented custom options which are:
|
Beta Was this translation helpful? Give feedback.
-
I would like to mention I did not search the Internet for any resources yet.
I am looking for a piece of code to hide custom options for a simple product. For example, a product has a custom option named "Color" with 3 rows (Red, Green, Blue). At a moment Green and Blue become temporary unavailable and the store admin doesn't want them listed. As OpenMage is built in the only way is to delete those two rows and put them back when they become available. I would like to skip this inefficient time consuming solution and add a checkbox named "Exclude" for every row. If it is checked that option should not be listed in Frontend. It is exactly the same behavior like when we exclude product images.
Please let me know if anyone has a solution for this issue. I think this should be implemented in OpenMage.
Beta Was this translation helpful? Give feedback.
All reactions