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

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

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

$foodord_upsell_products = $foodord_card_upsells;
$foodord_upsell_context  = 'card';

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