Re: Product Variant Pricing Not Updating

Why is my product variant pricing not updating on the page?

ebboyd
Visitor
1 0 1

Hi everyone, we are running into a bit of a problem with our website. We have products with different variants that have different pricing. When the variants with different prices are selected, the pricing is not updated on the product page itself as it should be. The price updates in the cart itself, just not on the product page. 

 

I have tried a few fixes from the forums here and none of them seemed to work. I think I have pinpointed the problem to an app installed on the store called Wholesale Club. I have a copy of the theme without Wholesale Club and the issue doesn't seem to be there on that version. We would prefer to keep the app active on our site rather than deleting it. 

 

The website is: fab28industries.com 

 

Any guidance for how to fix this would be much appreciated. I can provide a copy of the code or whatever is required to get this sorted as it is a less than ideal for the user experience. We are using the Shopify Ride theme as a base for reference. 

 

 

Replies 2 (2)

rvs_collective
Visitor
1 0 0

I've been having this same issue. I saw your post mentioned Wholesale Club, which my store also uses. Everything was okay for wholesale users, but not for retail users. So I reached out to Wholesale Club and they were able to find the problem. 

 

It all came down to this:

In the price.liquid snippet, the line below needs to be changed

assign price = WCProduct_Price | default: 1999

 

It should be:

assign price = WCProduct_VariantPrice | default: 1999

 

For me this was on line 81.

 

I hope this helps.

 

PetStreetMall
Visitor
3 0 1

We're now having this same issue. Theme is Pursuit v.3.

 

https://www.petstreetmall.com/

 

We've looked through the product-price.liquid with this being the current code:

 

{% include 'product-price', variant: current_variant, product: product %}
{% endcomment %}
{%- liquid
if variant.title
assign compare_at_price = variant.compare_at_price
assign price = variant.price
assign available = variant.available
else
assign compare_at_price = 1999
assign price = 1999
assign available = true
endif

 

Any help would be greatly appreciated!