I believe there is a bug on single product pages for variable products where MSRP will display the variation price even if no MSRP is set.
On line 952 of class-alg-wc-msrp-core.php $msrp = $msrp_data[‘msrp’] returns an empty string on single product pages if no MSRP is set for a variable product.
I think the wc_get_price_to_display() method on line 955 wants and integer for the ‘price’ key. Wrapping $msrp_data[‘msrp’] with intval() fixes it for me, but perhaps there’s a better solution.
Thanks for the great plugin!
-
This topic was modified 1 year, 10 months ago by WPWhale.
-
This topic was modified 1 year, 10 months ago by WPWhale.