Product Price is reading 0 when no option selected

Highlighted
New Member
6 0 0

Hi, i am building my first store and plan to be live in a couple of days, however i have come across a little problem and its niggling away at me and i don’t t want to be launching the site until i am completely happy. I am using the narrative free shopify theme and i have 1 item with 3 variants, all variants are the same price. Upon testing the site throughout building it i realised that the featured image was not being selected, i fixed this by adjusting line of code from product-template.liquid

assign current_variant =product.selected_or_first_available_variant 

to

assign current_variant = product.selected_variant

This worked for adjusting it to the main featured image however price of product is displaying $0 because no option is automatically selected, all my variants are the same price so i dont need a range i just want it to display $14.99 when no option is selected instead of $0

 

if anyone could help that would be most appreciated

0 Likes
Highlighted
Shopify Expert
1353 111 181

Please Share a Store url to better assist

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Shopify Expert Page: https://experts.shopify.com/perennialsolution
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
New Member
6 0 0

ezchargerz.com password bowers sites not yet live and this is my first shopify store thats going to be made live so its no great


@Perennial wrote:

Please Share a Store url to better assist


 

0 Likes
Highlighted
Shopify Expert
1353 111 181

Please Share a password 

if you dont want share 

DM ME

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Shopify Expert Page: https://experts.shopify.com/perennialsolution
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
New Member
6 0 0

@Perennial wrote:

Please Share a password 

if you dont want share 

DM ME



Password is bowers

0 Likes
Highlighted
Shopify Expert
1353 111 181

you add some customzition done before 

I can add that customization for you. Shoot me an email.
Thank you!

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Shopify Expert Page: https://experts.shopify.com/perennialsolution
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Shopify Expert
1353 111 181

Hi ,

You will need to adapt the code from the tutorial and / or the product detail tamplate to use this

{{ product.price_min }}

Alternatively, you can look to

<script type="application/json" id="ProductJson-product-template">
// all your product variant data as JSON
</script>

and do it entirely client side.

Hope this helps 

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Shopify Expert Page: https://experts.shopify.com/perennialsolution
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes