<?php
/**
 * FoodOrd Product Modal Upsells Template
 *
 * @package FoodOrd
 * @since 1.3.36
 *
 * @var WC_Product[]                  $foodord_modal_upsells Eligible upsell products.
 * @var Foodord_Product_Modal_Upsells $foodord_upsell_helper Upsell helper.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( empty( $foodord_modal_upsells ) || ! is_array( $foodord_modal_upsells ) ) {
	return;
}

$foodord_upsell_products = $foodord_modal_upsells;
$foodord_upsell_context  = 'modal';

$foodord_shared_upsells_template = FOODORD_DIR . 'templates/frontend/shared-upsells-rail.php';
if ( file_exists( $foodord_shared_upsells_template ) ) {
	include $foodord_shared_upsells_template;
}
