MSRP shows variation price when no MSRP is set

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #95834
    Eric
    Guest

    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.
    #95835
    WPWhale
    Moderator

    Hi Eric,

    Thanks a lot for reporting this and going an extra mile to find the cause.

    I will check this to confirm, and release a fix in the next update.

    Omar

    #95836
    WPWhale
    Moderator

    Hi again,

    Can you please update to 1.7.3 and see if it’s solved? Let us know otherwise please.

    Omar

    #95837
    Eric
    Guest

    Fixed in 1.7.3. Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.