- Posts: 46
- Thank you received: 1
Price with options
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 or Create an account to join the conversation.
You just have to edit the show_default view (in Display>Views) for product and replace these lines:
with these ones:
then remove this code (to avoid two display of the price):
Please Log in or Create an account to join the conversation.
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->params->get('show_price')){ ?>
<span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main">
</span>
It hasn't been working so far.
Alternatively we can get access to our site.
Thanks in advance!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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->System->Configuration->System->Display"
Please Log in or Create an account to join the conversation.
thank you for your answer.
Please kindly visit irodaszekfutar.hu/termekek/forgoszekek/p...t/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 or Create an account to join the conversation.
we succesfully updated HikaShop to the latest version and it works fine now.
Thanks!
Please Log in or Create an account to join the conversation.
- Posts: 20
- Thank you received: 0
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 or Create an account to join the conversation.
The main price is now displayed by that code:
Please Log in or Create an account to join the conversation.
- Posts: 20
- Thank you received: 0
So I replace that new code you supplied with:
<span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main">
</span>
and then remove this code (to avoid two display of the price):
if($this->params->get('show_price')){ ?>
<span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main">
</span>
<?php }
//there is other code here in newer version. Do I leave it?
?>
Please Log in or Create an account to join the conversation.
You can leave the other code yes.
Please Log in or Create an account to join the conversation.
- Posts: 20
- Thank you received: 0
Thanks again!
Please Log in or Create an account to join the conversation.