Closed helgatheviking closed 4 months ago
Following up to add that I do set a product's price to be 0 when the minimum is a null string. So if I toggle NYP off and then back on again at their site, my save routine kicks in and 0 is saved as the regular price as intended. This resolves the warning (and I presume the fatal error as well).
Describe the bug
To reproduce
I'm not seeing this fatal error any longer (or am not sure how to reproduce, just relaying it from the customer's log). I do however, still see a warning pointing to the same line
The line in question
If I had to guess,
$product->get_price()
can be a null string if there's no minimum price set. (I'll have to go double check as I thought that I was setting the price to 0, both for sorting AND for math purposes like this). I don't really know what this code is responsible for, but as a name your price product, it technically doesn't have a price until the customer enters one.Screenshots
Environment (please complete the following information):
Square 4.7.1