Support » Plugin: PPOM for WooCommerce » $NAN PRODUCT PRICE & TOTAL

  • Resolved sunkissmarc

    (@sunkissmarc)


    I am using Woocommerce Bookings for rental product and Woocommerce Product Addons together but as you can see on the page that the totals display $NAN. I think the problem has to do with the date range (number of days booked). I am using Version 11.8 of Woocommerce Product Addons and I’ve checked to make sure I have the latest version. I have deactivate it, uninstalled it and reactivated it but it didn’t make a difference. Any help is appreciated.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    Thanks for providing all information, but your site is not opening.
    This site can’t be reached

    I just checked the link I provided and its working fine. I am not logged into the admin either, just straight from the web. Please try it again. There is no reason that the link would not be reachable.

    I was looking at the problem and have some additional thoughts. I have a screen shot of the pricing formula which I would be happy to share with you but the bottom line is that I think the problem is being cause by the fact that this is a “Bookable” product with price calculations based on the number of days and not a “Simple” product. In the Product Price field this displays “PRODUCT PRICE – $60.00 X NAN”. The price is $60 for the first day but then adding days after that are based on a formula which doesn’t seem to correlate here. I don’t think the “X” understands how to handle the formula since it is not simply multiplying the base price. Anyway, that’s my thought. Any help you can give is appreciated. If you want me to send you the screen shot please let me know. Thanks in advance.

    Plugin Author N-Media

    (@nmedia)

    Ok I got the issue.

    the reason is that you are using some calendar/event booking plugin and it has disabled the default quantity field. Now it’s getting NAN (not a number). But we will fix it our new version so if no quantity is found it should set it to 1

    Plugin Author N-Media

    (@nmedia)

    we also fixed this in version 11.9, it will be released in couple of days.

    Outstanding! Looking forward to the fix!
    Thanks in advance for your help.

    I just tried the fix and it works the way you said it would but if multiple days are selected then the actual price is not correct. Is it possible to set it so that if no quantity is found then the product price in WCA equals booking price?

    Plugin Author N-Media

    (@nmedia)

    Hi,

    well PPOM consider product default price as base, calendar price is being calculated using some formals which we don’t know.

    I’m actually suggesting that “if bookable product then ppom product price equals product display price” perhaps using woo class:
    <span class=”woocommerce-Price-amount amount”><span class=”woocommerce-Price-currencySymbol”>$</span>90.00</span>
    I don’t know if that’s possible but I would think that it is doable.

    Plugin Author N-Media

    (@nmedia)

    Well we don’t rely on html based price, we get price from $product->get_price() function.

    I’m having a similar problem with $nan. However, my problem has occurred twice after the installation of WooCommerce Wallet. After installing, all prices on products, orders, checkout, etc showed $nan.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘$NAN PRODUCT PRICE & TOTAL’ is closed to new replies.