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

#   Option Price and Main Price - can it be combined

##

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#52944](#52944) by [Huski](/forum/user/3364-huski "View Huski's Profile")  *[Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#52944 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")* was created by *[Huski](/forum/user/3364-huski "View Huski's Profile")*

Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.

Prestashop and many others only show one price and this just changes if options are chosen.

Is there a a way I can do this in Hika?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 months ago [\#52986](#52986) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#52986 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Hi Huski,

In HikaShop, by default only one price is displayed.
Do you set the options with characteristics, HikaShop &gt; Products &gt; Characteristics ?

When you manage variants, you can change the price, an then only one price is displayed, the default price OR the variant price.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#53029](#53029) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53029 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

I am getting both the total price with options showing and the main price here. [ www.ecomad.com.au/ecomadBamboo/shop-cate...gory\_pathway-47.html](http://www.ecomad.com.au/ecomadBamboo/shop-categories/product/122-recycled-fruit-produce-bins/category_pathway-47.html)

If you see the 2 option boxes, the default option values don't have price assigned to them. The other options all have prices assigned as is needed but not sure you can.

1. I have created the main product page with price
2. I created characterstics for this product (x 2)
3. I created 2 products for the options in an unpublished category and then assigned the characteristics to them
4. I managed the characteristics for each of these "option" products and set prices on those variants which need them
5. Then back to the main product where I added these 2 option products.

It all works ok on the front end but it shows 2 price lines as you see.

I only want to see one price at any time and this price just changes accordingly.

Is it possible to also have the word "from" in product listings for any product that does have options (with prices) but only then. It should not show if there is only one price for that product and no variants at all.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 months ago -  14 years 4 months ago [\#53111](#53111) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53111 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Hi,

You can hide the normal price when your product have options.
Edit the view: HikaShop &gt; Display &gt; Views, product / show_default.php

And replace: Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); }

By: Code:

&lt;?php if(empty($this-&gt;row-&gt;options)){?&gt; &lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } }?&gt;

Last edit: 14 years 4 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#53420](#53420) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53420 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Doesn't seem to work. I am replacing this:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;
&lt;/span&gt;

WITH

&lt;?php if(empty($this-&gt;row-&gt;options)){?&gt;
&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
}?&gt;
&lt;/span&gt;

And both prices are still showing up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#53505](#53505) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53505 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

You should hide it with CSS:

\#hikashop_product_price_main{display:none;}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#53558](#53558) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53558 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Thanks - if I use css to hide the main price - what about those products which dont have options and will need to show the main price?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#53628](#53628) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53628 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Then in that case CSS won't do.

The solution proposed by Xavier will be better. Just make sure that you're editing the view file for the correct template you're using on your front end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#53739](#53739) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53739 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

I thought that would be the case.

I have tried Xaviers recommendation but I can't seem to get it to work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#53826](#53826) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53826 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

It should work though...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#53879](#53879) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53879 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

This is the code in my product/show_default file (for front end) as it is now.

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;
&lt;/span&gt;

If I copy of this part as Xavier says

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}

With this:

&lt;?php if(empty($this-&gt;row-&gt;options)){?&gt;
&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
}?&gt;

Then it doesn't work which I guess is due to the code:

$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;

I'm not a coder - should I just delete the above 3 lines - says show_block_dimensions - not sure if this is required for anything?

This is all the code between the spans - what might I be doing wrong when changing this?

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;
&lt;/span&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#53952](#53952) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#53952 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Of course, you need to keep the &lt;?php and ?&gt; tags and the span.
You should have that:
&lt;?php if(empty($this-&gt;row-&gt;options)){?&gt;
&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;
&lt;/span&gt;
&lt;?php } ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#55268](#55268) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55268 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

None of this is working for me - I get a Parse Error when I change the code. See me previous post - thats what I am doing but nothing works. Have attached the entire show_default code as it is now if that helps.
See this product and notice there is $85 (which is main price) and then above it is the price with option. Don't want the $85.00 to appear if there are options.
[ www.ecomad.com.au/ecomadBamboo/shop-cate...gory\_pathway-35.html](http://www.ecomad.com.au/ecomadBamboo/shop-categories/product/53-3-tray-vermihut-worm-farm-delivered/category_pathway-35.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#55353](#55353) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55353 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Hi,

Your show_default file does not have the modification I talked about in my last message which will do what you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#55472](#55472) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55472 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Have attached the show_default again with the code. I replace what you mentioned but I get parse error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#55558](#55558) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55558 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

That is not possible:
}?&gt;
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;

it should be:
}
$this-&gt;setLayout('show_block_dimensions');
echo $this-&gt;loadTemplate();
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago -  14 years 4 months ago [\#55585](#55585) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55585 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Thanks
I tried again and am not getting an error at all but the 2 prices are still showing - the product main price shouldn't be showing at all if there is an options price - code attached.

Last edit: 14 years 4 months ago by [Huski](/forum/user/3364-huski "View Huski's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#55653](#55653) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55653 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Ah yes, try to change the line:
&lt;?php if(empty($this-&gt;row-&gt;options)){?&gt;

to:
&lt;?php if(empty($this-&gt;element-&gt;options)){?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#55753](#55753) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#55753 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Perfecto - that did it
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 1
-
-

11 years 8 months ago [\#190931](#190931) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Option Price and Main Price - can it be combined](/forum/2-general-talk-about-hikashop/52944-option-price-and-main-price-can-it-be-combined#190931 "Website product page doesn't look that great when a product has options as I get 2 prices showing - Price including the chosen option then the Main product price below it.  Prestashop and many others only show one price and this just changes if options are chosen.  Is there a a way I can do this in Hika?")*

Hi this is an old post from a few years ago but I have the same question again but with the latest Hikashop Essentials and latest Joomla 3 version.

I can't copy my old VIEWS from Joomla 2.5 site to this one as the code seems quite a lot different.

How do I combine the Main Price and Option price so only one price ever shows?

THanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyOTQ0LW9wdGlvbi1wcmljZS1hbmQtbWFpbi1wcmljZS1jYW4taXQtYmUtY29tYmluZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.113 seconds

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