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

#   Choose options button not working without variants

##

- **[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")**
- [![pursuit&#95;jp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile") Topic Author
- [ Offline](/forum/user/5622-pursuit-jp)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 10 months ago [\#36191](#36191) by [pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")  *[Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36191 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")* was created by *[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")*

Hi,

After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.

We're using the Hikashop Content Module to display our tours (products) within an article. Check [ pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village](http://pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village) for an example. Through the language file we have changed "Add to Cart" and "Choose Options" to "BOOK NOW".

The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the "available stock" display from the module which we want to keep.

Any way to trigger the "Choose Options" button without adding a variant?

Also, how do we add the "Price with options" you have on the demo page to the product page?

Thanks for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2MTkxLWNob29zZS1vcHRpb25zLWJ1dHRvbi1ub3Qtd29ya2luZy13aXRob3V0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 10 months ago [\#36228](#36228) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36228 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

Hi,

In that case, you should edit the file "listing_div" of the view "product" via the menu Display&gt;Views and add the line:
$this-&gt;row-&gt;has_options = true;

after the line:
$this-&gt;row =&amp; $row;

For the price display, you should turn on the option "show price" in the Display tab of the configuration.

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

- **[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")**
- [![pursuit&#95;jp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile") Topic Author
- [ Offline](/forum/user/5622-pursuit-jp)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 10 months ago [\#36247](#36247) by [pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")  Replied by *[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36247 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

Hi,

Thanks for the quick reply and code. It worked.

I have the option to "show price" but I think the issue is because the main product is free. The pricing comes from the options. I tried putting the price of the main product to $100 and this worked fine. As soon as I change the price back to $0 I lose the price with options (they show fine in the cart I just can't get them on the product page).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2MTkxLWNob29zZS1vcHRpb25zLWJ1dHRvbi1ub3Qtd29ya2luZy13aXRob3V0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 10 months ago [\#36286](#36286) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36286 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

Indeed if the price of the product is 0, the "price with options" won't show.
You'll need to replace the file components/com_hikashop/views/product/tmpl/show.php with the one in the archive enclosed and it should then work.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

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

- **[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")**
- [![pursuit&#95;jp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile") Topic Author
- [ Offline](/forum/user/5622-pursuit-jp)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 10 months ago [\#36290](#36290) by [pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")  Replied by *[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36290 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

Thanks Nicolas. That worked great!

One last issue in regards to the free products. I have the options grouped with the products (gives a clearer view for our clients at checkout). If I remove the product from the cart, the product and options disappear but the total price still reflects the value of the options.

Everything works fine if the primary product has a price, just not for a free product.

Any suggestions?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2MTkxLWNob29zZS1vcHRpb25zLWJ1dHRvbi1ub3Qtd29ya2luZy13aXRob3V0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 10 months ago [\#36328](#36328) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36328 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

It's probably because of that:
[ www.hikashop.com/en/support/forum/3-bug-...ns-remain.html#34972](http://www.hikashop.com/en/support/forum/3-bug-report/34927-when-removing-a-product-from-cart-options-remain.html#34972)

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

- **[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")**
- [![pursuit&#95;jp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile") Topic Author
- [ Offline](/forum/user/5622-pursuit-jp)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 10 months ago [\#36342](#36342) by [pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")  Replied by *[pursuit\_jp](/forum/user/5622-pursuit-jp "View pursuit&#95;jp's Profile")* on topic *[Re: Choose options button not working without variants](/forum/4-how-to/36191-choose-options-button-not-working-without-variants#36342 "Hi,  After playing with the characteristics and options we have decided to create a product for each departure with an option for each rate (adult, senior, youth, child and transportation only). This allows us to automatically stop selling tours on a preset date without having to work with too many variants.  We're using the Hikashop Content Module to display our tours (products) within an article. Check   pursuitadventure.ca/bow-valley/day-trip-to-sunshine-village  for an example. Through the language file we have changed &quot;Add to Cart&quot; and &quot;Choose Options&quot; to &quot;BOOK NOW&quot;.  The issue we are having is that if we do not add a variant to the main product, it gets added to the cart from the module instead of taking the client to the product page where they can choose the options. The work around has been to add a pointless variant to the product but this removes the &quot;available stock&quot; display from the module which we want to keep.  Any way to trigger the &quot;Choose Options&quot; button without adding a variant?  Also, how do we add the &quot;Price with options&quot; you have on the demo page to the product page?  Thanks for your help.")*

Thanks! That solved it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM2MTkxLWNob29zZS1vcHRpb25zLWJ1dHRvbi1ub3Qtd29ya2luZy13aXRob3V0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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.064 seconds

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