I am trying to setup products for my store, but the problem is the product prices displayed on the main product pages are retrieved from second variant (low prices). I want my products to display prices from the first variant by default.
I tried finding a solution for this in the edit code but the solutions refer me to Product-template.liquid file which is not available. Then somone referred me to product.json as well but i couldn’t find the area to put in the edit code.
The template being used is studio. I would be really helpful if someone can pinpoint exactly where to put the code.
Hi @ZahidMansoori
In studio theme, it is main-product
Here price snippet is being rendered
you have to pass use_variant: true here
Like this:
{%- render 'price',
product: product,
use_variant: true,
show_badges: true,
price_class: 'price--large'
-%}
Please check
Thanks!
Thanks for the reply. I found the section and it is exactly as you have described above. So what changes i need to make to the code to get the desired results?
This is the current code. (I want the products to display first variant prices as default)
{%- render ‘price’,
product: product,
use_variant: true,
show_badges: true,
price_class: ‘price–large’
-%}
Hi @ZahidMansoori
If you have not modified price snippet then it should work, Please share product url so that I can check it further, if store is password protected, Please provide passwords as well
Thanks!
We’re having the same issue. Was there a resolution to this? Thanks.
One of my clients faced the same issue and came to me to check it for him. After spending a good amount of time, online article search, Shopify admin, and other settings checking, I found that he has set a different price for the “USA” market catalog. You can navigate it from “Markets → Catalogs”, where you can find the list of countries. Select your country and search for the product there, and check the pricing. The theme editor uses the default catalog price, but for the web, it takes the price from the Market Catalogs. I hope this will help and solve your problem too.