Price Display Override
- natselection
-
Topic Author
- Offline
Less
More
7 years 11 months ago #298892
by natselection
Price Display Override was created by natselection
-- 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?
-- 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.
7 years 11 months ago #298926
by nicolas
Replied by nicolas on topic Price Display Override
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:
So in the show_default view file, you can move that code where you want to have that second price.
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:
Code:
<span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main">
</span>
Please Log in or Create an account to join the conversation.
- natselection
-
Topic Author
- Offline
7 years 11 months ago - 7 years 11 months ago #298930
by natselection
Replied by natselection on topic Price Display Override
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.
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: 7 years 11 months ago by natselection.
Please Log in or Create an account to join the conversation.
7 years 11 months ago #298937
by nicolas
Replied by nicolas on topic Price Display Override
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.
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.
- natselection
-
Topic Author
- Offline
7 years 11 months ago #299082
by natselection
Replied by natselection on topic Price Display Override
That worked perfectly. Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds