checkout)) {
$checkout = $booking->checkout;
}
// If still no checkout model, we can't display anything
if (!isset($checkout) || !($checkout instanceof \Yatra\Models\Checkout)) {
echo '
' . esc_html__('Pricing information not available.', 'yatra') . '
';
return;
}
?>
isTravelerBased() && !empty($checkout->getCategoryBreakdown())) : ?>
getCategoryBreakdown() as $cat) : ?>
0 ? $cat['subtotal'] / $cat['count'] : 0;
$per_unit_formatted = $checkout->formatPrice($per_unit_price);
?>
x
0) : ?>
(formatPrice($cat['subtotal'])); ?> )
( x )
formatPrice($cat['subtotal'])); ?>
getFormattedPricePerPerson()); ?>
getTotalTravelers(); ?>
getDynamicPricing();
}
$dp_total_adjustment = (float) $checkout->getDynamicPricingTotalAdjustment();
$has_dp = !empty($dynamic_pricing) && !empty($dynamic_pricing['rules']);
?>
hasAdditionalServices()) : ?>
getAdditionalServices() as $service) : ?>
formatPrice($service_price)); ?>
getFormattedGrossTotal()); ?>
hasCoupon()) : ?>
getCouponDiscountLabel()); ?>
(getCouponCode()); ?>)
-getFormattedCouponDiscount()); ?>
getGroupDiscountAmount() > 0) : ?>
getGroupDiscountLabel()); ?>
-getFormattedGroupDiscount()); ?>
hasItineraryCosts()) : ?>
getItineraryCosts() as $cost) : ?>
getTotalTravelers();
$unit_price = $cost['price'] ?? 0;
$total_cost = $unit_price * $quantity;
?>
getTotalTravelers();
$unit_price = $cost['price'] ?? 0;
$total_cost = $unit_price * $quantity;
echo esc_html($checkout->formatPrice($total_cost));
} else {
echo esc_html($checkout->formatPrice($cost['price'] ?? 0));
}
?>
hasCoupon() || $checkout->getGroupDiscountAmount() > 0;
// Only show taxable amount if there are taxes AND if there's a discount
if ($checkout->hasTaxes() && $has_discount) :
$taxable_amount = $checkout->getTaxableAmount();
?>
formatPrice($taxable_amount)); ?>
hasTaxes()) : ?>
getTaxBreakdown() as $tax) : ?>
(%)
formatPrice($tax['amount'])); ?>
getFormattedNetTotal()); ?>
getPaymentMethod() !== 'full') : ?>
getFormattedAmountDue()); ?>