Open wajihsayyed opened 6 months ago
just need to add below snippet to wp-content/plugins/hostaway/assets/hostaway.js
after line number 3528
or after var pricePerNight = selectors.pricebreakdown.pricePerNight(store);
if(!pricePerNight){
var getAmount = function getAmount() {
if (useCustomAmount) return customAmount;
var res = item.total;
var amount = res;
if (res) {
if (showDecimals) {
amount = (0, _roundDecimals.roundDecimals)(amount);
} else {
amount = (0, _roundDecimals.roundDecimals)(amount, 0);
}
}
return amount;
};
var amount = getAmount();
pricePerNight = amount / nights;
}
Per night price in the listings' booking section is showing 0.00 USD x XX Nights. I have checked the latest, second-latest, and even third-latest plugins, and they all show up the same way. Attaching 3 screenshots from 3 different websites as proof of error.
Thanks