{* Welcome / first-order coupon popup — anonymous visitors only, and not during checkout/cart.
Uses the raw-PHP if/brace pattern index.html already uses (see lines ~62, ~166): {$this->assign}
+ {if} did NOT work here (late-assigned var not reflected in {if} for this top-level template). *}
{php}
$wc_script = basename($_SERVER['SCRIPT_NAME'] ?? '');
if (empty($_SESSION['customer_id']) && strncmp($wc_script, 'checkout', 8) !== 0 && $wc_script !== 'shopping_cart.php') {
{/php}
{include file="bootstrap5/module/welcome_popup.html"}
{php} } {/php}