[Resolved] WooCommerce Variable Products not showing correct price

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by chrisD-14 4 months, 3 weeks ago.

Assigned support staff: Christian Cox.

Author
Posts
#1382589

Tell us what you are trying to do?

I am working on a furniture store site using WooCommerce. I am creating views for different categories of products. When the product is a simple product, the price shows correctly, but if it is a variable product, and the product is on sale, then the regular price is showing, rather than the sale price.

If you go to the link below, you will see a listing of about 8 products. Most are simple products, but Filone Sofa is a variable product, and it shows $899, but is on sale for $549. Other products (simple products) show the sale price correctly.

Is there any documentation that you are following? No

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1382597

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Hi, can you share the code you're using to display the prices in this View? Also, are all the variations of the Filone Sofa on sale, or only some of the variations? Do those on-sale variations have inventory in stock?

#1383329

Hi Christian,

The Loop item is built in the Divi Builder. The module that actually displays the price is using the following code:

<h4>${!{types field='views_woo_price'}!}{!{/types}!}</h4>

All variations are on sale for the same price. We are not managing inventory.

#1383419

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Does the wpv-woo-product-price shortcode perform more like you would expect?

<h4>${!{wpv-woo-product-price}!}</h4>

If not, can you tell me when was the latest batch process run in Toolset > WooCommerce Views > Products Fields for Parametric Searches, and what is the set schedule? If you run the process manually, are the prices updated?

#1383461

My issue is resolved now. Thank you!