Minimal theme - price is currently showing the lowest price, please help to change it to max price

Fernbaby
Tourist
9 0 5

Hi

Can I please have some help in changing the From price to the maximum variant price?

For instance, one of our product's price is $65, there is a variant of pre order for 10% deposit of $6.5, with the current coding, it automatically shows the lowest price, can you please change the show price to always show the max value, in this case $65?

Thanks

Replies 14 (14)
KetanKumar
Shopify Partner
24919 2497 9030

@Fernbaby 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Fernbaby
Tourist
9 0 5
No worries at all, and thanks for the quick response.

My site URL as below
https://fern-baby.myshopify.com/

Thanks again
Fern
Fernbaby
Tourist
9 0 5

Hi Ketan

 

Thanks for the quick reply!

my site URL as below

https://fern-baby.myshopify.com/

Thanks
Fern

KetanKumar
Shopify Partner
24919 2497 9030

@Fernbaby 

thanks for url sorry your store is password project you have able to code try this 

Go to Online store > Edit Code > Snippets > Product-price.liquid

Locate this line of code (Usually line no. 15)

assign price = variant.price
and replace it with 
to
assign price = variant.price_max
 
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Fernbaby
Tourist
9 0 5

Hi Ketan

I have disabled the password now, my bad.

I have tried your codes below, but I couldnt find assign price and didnt want to screw up the codes just in case..

Fernbaby_0-1634795229867.png

Thanks

Fern

KetanKumar
Shopify Partner
24919 2497 9030

@Fernbaby 

yes please assing price code and add

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Fernbaby
Tourist
9 0 5

sorry but I meant I couldnt find the line to be replaced, any chance you can change it for me pls?

I have disabled the password now.

Thanks

Fern

KetanKumar
Shopify Partner
24919 2497 9030

@Fernbaby 

yes please find this class and added

grid-link__meta  or share code here

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Fernbaby
Tourist
9 0 5

Below code is from Snippets - Product-unit-price.liquid

 

{%- unless available -%}
{%- if variant.title -%}
{%- assign available = variant.available -%}
{%- else -%}
{%- assign available = true -%}
{%- endif -%}
{%- endunless -%}

<span class="product-unit-price{% unless available and variant.unit_price_measurement %} hide{% endunless %}{% if wrapper_class != blank %} {{ wrapper_class }}{% endif %}" data-unit-price-container>
{%- capture unit_price_separator -%}
<span aria-hidden="true">/</span><span class="visually-hidden">{{ 'general.accessibility.unit_price_separator' | t }}</span>
{%- endcapture -%}
{%- capture unit_price_base_unit -%}
<span data-unit-price-base-unit>
{%- if available and variant.unit_price_measurement -%}
{%- if variant.unit_price_measurement.reference_value != 1 -%}
{{- variant.unit_price_measurement.reference_value -}}
{%- endif -%}
{{ variant.unit_price_measurement.reference_unit }}
{%- endif -%}
</span>
{%- endcapture -%}
<span class="visually-hidden">{{ 'products.product.unit_price_label' | t }}</span>
<span data-unit-price>{{ variant.unit_price | money }}</span>{{- unit_price_separator -}}{{- unit_price_base_unit -}}
</span>

 

How should I update the code?

Thanks