[Skip to main content](#vessel-content)

#   Is it possible to activate the waiting list for product options

##

- **[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")**
- [![sheenltsc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61891-sheenltsc "View sheenltsc's Profile") Topic Author
- [ Offline](/forum/user/61891-sheenltsc)

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 3 months ago [\#334815](#334815) by [sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")  *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334815 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")* was created by *[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")*

-- url of the page with the problem -- : [ tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug](https://tennislife.sheenltsc.co.uk/index.php/shop/product/14-red-ball-week-9-13-aug)
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.4.21
-- Browser(s) name and version -- : Firefox

Hello,
I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list.
- Is it possibe to show the waiting list option when the product option is 0?
- is it possible to show the stock amount for product options?

Many thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

5 years 3 months ago [\#334821](#334821) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334821 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")*

Hi,

Displaying the stock for each option is possible with a small customization.
You'll have to edit the file product / option.php via the menu Display&gt;Views.
There, the "yes" choice is displayed with the code: Code:

$option_values[] = JHTML::_('select.option', $optionElement-&gt;product_id, $text);

so to add the stock to it, you would have to change it to: Code:

$option_values[] = JHTML::_('select.option', $optionElement-&gt;product_id, $text. ' '.$optionElement-&gt;product_quantity);

To add a waitlist link, you would have to add the code: Code:

&lt;a class="hikabtn" rel="nofollow" href="&lt;?php echo hikashop_completeLink('product&amp;task=waitlist&amp;cid='.$optionElement-&gt;product_id); ?&gt;"&gt;&lt;span&gt;&lt;?php echo JText::_('ADD_ME_WAITLIST'); ?&gt;&lt;/span&gt;&lt;/a&gt;

However, it's a bit more tricky as you need to still display the name of the option, and display that waitlist button only when the option doesn't have stock. So it needs rearranging the code of the view. It requires a developer to work a bit on it to rearrange the code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")**
- [![sheenltsc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61891-sheenltsc "View sheenltsc's Profile") Topic Author
- [ Offline](/forum/user/61891-sheenltsc)

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 3 months ago [\#334836](#334836) by [sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")  Replied by *[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")* on topic *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334836 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")*

That's great thanks, I can now see the stock amount.
It it possible to show a product option even if it is out of stock?

On this page I wanted the option **Red Ball 09/08/2021** to appear in the options list.

[ tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug](https://tennislife.sheenltsc.co.uk/index.php/shop/product/14-red-ball-week-9-13-aug)

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

5 years 3 months ago [\#334838](#334838) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334838 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")*

Hi,

While showing the option even if it is out of stock is quite easy (you can just change the code Code:

if(!$optionElement-&gt;product_published &#124;&#124; empty($optionElement-&gt;product_quantity))

to Code:

if(!$optionElement-&gt;product_published)

in the same view file), the add to cart will be refused if the option is selected since it doesn't have stock anymore.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")**
- [![sheenltsc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61891-sheenltsc "View sheenltsc's Profile") Topic Author
- [ Offline](/forum/user/61891-sheenltsc)

Less More

- Posts: 3
- Thank you received: 0
-
-

5 years 3 months ago [\#334871](#334871) by [sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")  Replied by *[sheenltsc](/forum/user/61891-sheenltsc "View sheenltsc's Profile")* on topic *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334871 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")*

Perfect. Thanks.

Would it be possible to add static text next to the stock amount in the dropdown?

- [ ![dropdown&#95;text.png](/forum/attachment/53364) ](/forum/attachment/53364 "dropdown&#95;text.png") [ ](/forum/attachment/53364?download=1 "dropdown&#95;text.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

5 years 3 months ago [\#334873](#334873) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Is it possible to activate the waiting list for product options](/forum/26-product-category-display/903033-is-it-possible-to-activate-the-waiting-list-for-product-options#334873 "-- url of the page with the problem -- :   tennislife.sheenltsc.co.uk/index.php/sho...d-ball-week-9-13-aug  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.4.21 -- Browser(s) name and version -- : Firefox  Hello, I have set up a product with product options. Each product option has a stock of 12. When the stock is down to 0 the product option disappears from the list. - Is it possibe to show the waiting list option when the product option is 0? - is it possible to show the stock amount for product options?  Many thanks")*

Hello,

To do it, you'll probably just have to edit the line you previously changed : Code:

$option_values[] = JHTML::_('select.option', $optionElement-&gt;product_id, $text. ' '.$optionElement-&gt;product_quantity);

And replace it by : Code:

$option_values[] = JHTML::_('select.option', $optionElement-&gt;product_id, $text. ' Your_Static_Text'.$optionElement-&gt;product_quantity);

Kind regards,
Mohamed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDMwMzMtaXMtaXQtcG9zc2libGUtdG8tYWN0aXZhdGUtdGhlLXdhaXRpbmctbGlzdC1mb3ItcHJvZHVjdC1vcHRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.090 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
