Unhandled Error!

Undefined variable: desktop

Document product_card
Document type CMS partial
Line 65
Exception class Cms_ExecutionException

Code Highlight

                <?php
                $productDeal = false;
                if((!empty($product->deal_name) && date("Y-m-d") < $product->deal_ends) || empty($product->deal_ends) && !empty($product->deal_name)) {
                    $productDeal = true;
                }
                ?>
				<? if($desktop && $productDeal): ?>
                    <div class="lightning-deal_cat">
                        <i class="fa-solid fa-bolt"></i> <b>Lightning Deal:</b> <?php echo $product->deal_name; ?>
                    </div>
				<?php endif; ?>
 
 
# Document Type
4 product_card CMS partial
3 shop:product_list_list:2:0 CMS partial
2 shop:product_list:2:0 CMS partial
1 Best Portable Air Conditioners CMS page