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

#   Price with options

##

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

Less More

- Posts: 46
- Thank you received: 1
-
-

14 years 1 month ago [\#68607](#68607) by [ponygirl](/forum/user/5710-ponygirl "View ponygirl's Profile")  *[Price with options](/forum/4-how-to/68607-price-with-options#68607 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")* was created by *[ponygirl](/forum/user/5710-ponygirl "View ponygirl's Profile")*

Hi

When i add an option with a price to a product it displays two prices on the product page

One the orignal price and the other price with options

Is there a way only to display the one price in the original price position with the new price?

Thanks

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

14 years 1 month ago [\#68632](#68632) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Price with options](/forum/4-how-to/68607-price-with-options#68632 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hi there,

You just have to edit the show_default view (in Display&gt;Views) for product and replace these lines:
Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php //LAYOUT listing_price 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;

with these ones: Code:

&lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt; &lt;/span&gt;

then remove this code (to avoid two display of the price):
Code:

if($this-&gt;params-&gt;get('show_price')){ ?&gt; &lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt; &lt;/span&gt; &lt;?php } ?&gt;

The following user(s) said Thank You: [ponygirl](/forum/user/5710-ponygirl "View ponygirl's Profile")

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 3 months ago [\#211364](#211364) by [Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")  Replied by *[Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")* on topic *[Re: Price with options](/forum/4-how-to/68607-price-with-options#211364 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hi there,

we would like to show price AND price with options also. It was alright for a while, but it has been disappeared and can not bring it back.
We use now the default "show_default.php" (as we think it should have shown the price with options by default).

Any js problem maybe?
Or alternatively we need simply to add some code like:

if($this-&gt;params-&gt;get('show_price')){ ?&gt;
&lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt;
&lt;/span&gt;

It hasn't been working so far.

Alternatively we can get access to our site.

Thanks in advance!

- [ ![pricewithoptions.jpg](/forum/attachment/25947) ](/forum/attachment/25947 "...ithoptions.jpg") [ ](/forum/attachment/25947?download=1 "...ithoptions.jpg")

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

11 years 3 months ago [\#211367](#211367) 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 *[Re: Price with options](/forum/4-how-to/68607-price-with-options#211367 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hello,
It's working fine on my end, if you correctly have that code on you "show_default" file, your issue can be coming from :
- Your JS
- The fact that you have set the "Display Price" option to NO via "Hikashop-&gt;System-&gt;Configuration-&gt;System-&gt;Display"

The following user(s) said Thank You: [Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 3 months ago [\#211427](#211427) by [Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")  Replied by *[Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")* on topic *[Re: Price with options](/forum/4-how-to/68607-price-with-options#211427 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hello Mohamed,

thank you for your answer.

Please kindly visit [ ](http://irodaszekfutar.hu/termekek/forgoszekek/product/693-corvus-nf-8802)[ irodaszekfutar.hu/termekek/forgoszekek/p...t/693-corvus-nf-8802](http://irodaszekfutar.hu/termekek/forgoszekek/product/693-corvus-nf-8802) and you can see if I add an option from dropdown, the price is not changing at all and / or the price with options line is missing.

Can you please let us know which codesnippet has to be modified in "show_default" to see both PRICE and PRICE WITH OPTIONS?

Thanks a lot in advance!

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 3 months ago [\#211437](#211437) by [Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")  Replied by *[Ibrahim](/forum/user/36624-ibrahim "View Ibrahim's Profile")* on topic *[Re: Price with options](/forum/4-how-to/68607-price-with-options#211437 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hi there,

we succesfully updated HikaShop to the latest version and it works fine now.

Thanks!

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 2 months ago [\#297359](#297359) by [TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")  Replied by *[TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")* on topic *[Price with options](/forum/4-how-to/68607-price-with-options#297359 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

> ponygirl wrote: Hi
>
> When i add an option with a price to a product it displays two prices on the product page
>
> One the orignal price and the other price with options
>
> Is there a way only to display the one price in the original price position with the new price?
>
> Thanks

I would like to remove the second price as well please. (Am on Essential version 3.4.0). - the code has changed since this last entry and I did not see a button for it.
Looking forward to your reply.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4NjA3LXByaWNlLXdpdGgtb3B0aW9ucz90bXBsPW1hcmtkb3du) 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: 86560
- Thank you received: 14306
-
-

8 years 2 months ago [\#297365](#297365) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price with options](/forum/4-how-to/68607-price-with-options#297365 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hi,

The main price is now displayed by that code: Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main" itemprop="offers" itemscope itemtype="https://schema.org/Offer"&gt; &lt;?php $main =&amp; $this-&gt;element; if(!empty($this-&gt;element-&gt;main)) $main =&amp; $this-&gt;element-&gt;main; if(!empty($main-&gt;product_condition)){ ?&gt; &lt;meta itemprop="itemCondition" itemtype="https://schema.org/OfferItemCondition" content="https://schema.org/&lt;?php echo $main-&gt;product_condition; ?&gt;" /&gt; &lt;?php } // LAYOUT listing_price if($this-&gt;params-&gt;get('show_price') &amp;&amp; (empty($this-&gt;displayVariants['prices']) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display') != 'list')) { $this-&gt;row =&amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); ?&gt; &lt;meta itemprop="availability" content="https://schema.org/&lt;?php echo ($this-&gt;row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt; &lt;meta itemprop="priceCurrency" content="&lt;?php echo $this-&gt;currency-&gt;currency_code; ?&gt;" /&gt; &lt;?php } ?&gt; &lt;/span&gt;

The other piece of code for the option price is still the same.

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 2 months ago [\#297428](#297428) by [TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")  Replied by *[TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")* on topic *[Price with options](/forum/4-how-to/68607-price-with-options#297428 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Thank you for your reply.

So I replace that new code you supplied with:

&lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt;
&lt;/span&gt;

and then remove this code (to avoid two display of the price):

if($this-&gt;params-&gt;get('show_price')){ ?&gt;
&lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt;
&lt;/span&gt;
&lt;?php }

//there is other code here in newer version. Do I leave it?

?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY4NjA3LXByaWNlLXdpdGgtb3B0aW9ucz90bXBsPW1hcmtkb3du) 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: 86560
- Thank you received: 14306
-
-

8 years 2 months ago [\#297431](#297431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price with options](/forum/4-how-to/68607-price-with-options#297431 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

Hi,

You can leave the other code yes.

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 1 month ago [\#298028](#298028) by [TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")  Replied by *[TwoFatFingers](/forum/user/35973-twofatfingers "View TwoFatFingers's Profile")* on topic *[Price with options](/forum/4-how-to/68607-price-with-options#298028 "Hi  When i add an option with a price to a product it displays two prices on the product page  One the orignal price and the other price with options  Is there a way only to display the one price in the original price position with the new price?  Thanks")*

That's great, thanks! This actually removed the original price and only showed the price with options text, but by leaving everything and only removing the last bit that shows the duplicate, I achieved the result I want.

Thanks again!

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

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