Price Display Override

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
6 years 5 months ago #298892

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.2
-- Browser(s) name and version -- : ANy

Hi,

I'm hoping that you can point me in the right direction with this issue.

We have a strange configuration with how prices are displayed but we need to make one more change that I'm not sure where/what needs to be changed.

On the page topsecretequipment.com/categories/vehicl...ignment-scissor-lift If you change the first option (variant) the second price changes (which is normal behavior). But we need that price to remain the same and not change at all. They want the top price to show the lowest price point which we used the MSRP/Retail field for. Then the full price on the second line. And the actual total being added to the cart including options below the options block.

What do I need to remove and add in an override so it just shows the regular price without options or variants?

Please Log in or Create an account to join the conversation.

  • Posts: 83541
  • Thank you received: 13516
  • MODERATOR
6 years 5 months ago #298926

Hi,

So if I understand correctly you still want the second price the way it is, but instead of having it just below the main price, you want it below the options dropdown.
That's actually how it is by default in the show_default view file.
The area which displays that second price is done with this code:

<span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main">
		</span>
So in the show_default view file, you can move that code where you want to have that second price.

Please Log in or Create an account to join the conversation.

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
6 years 5 months ago #298930

Hi Nicolas,

No, that's not what I was trying to ask.



The second price will change if the top option is changed (normal behavior). What I need to do is prevent that displayed price from changing so it's static and always shows the highest price from the Prices and Taxes block here:




Essentially it would be like having 2 msrp lines.

Last edit: 6 years 5 months ago by natselection.

Please Log in or Create an account to join the conversation.

  • Posts: 83541
  • Thank you received: 13516
  • MODERATOR
6 years 5 months ago #298937

Hi,

If you want that price to be static, then you can change the id of the DIV hikashop_product_price_main in the show_default view file.
If the characteristics refresh system doesn't find the DIV, it won't be able to refresh the price when you change the variant selected and it will always display the price of the default variant.

Please Log in or Create an account to join the conversation.

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
6 years 5 months ago #299082

That worked perfectly. Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum