You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just set up a site and added a product with several variants of differing prices, and the priceRangeLabel text that normally would have said something to the effect of "From $XX.00" when the product initially loads is missing.
I tracked it down to the logic here, which I am not sure makes sense if you are trying to get the "From... " logic. It would seem the models would need to be sorted highest price to lowest for that to work.
I ended up running usort() on $this->arrModels before the foreach loop to sort them highest to lowest, and that seemed to do the trick, but not sure if your logic is assuming something else?
The text was updated successfully, but these errors were encountered:
I just set up a site and added a product with several variants of differing prices, and the priceRangeLabel text that normally would have said something to the effect of "From $XX.00" when the product initially loads is missing.
I tracked it down to the logic here, which I am not sure makes sense if you are trying to get the "From... " logic. It would seem the models would need to be sorted highest price to lowest for that to work.
I ended up running
usort()
on$this->arrModels
before the foreach loop to sort them highest to lowest, and that seemed to do the trick, but not sure if your logic is assuming something else?The text was updated successfully, but these errors were encountered: