HEX
Server: LiteSpeed
System: Linux host.point2pointhosting.com 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
User: nolabhpoint2p (1291)
PHP: 8.4.15
Disabled: NONE
Upload Files
File: /home/nolabhpoint2p/public_html/wp-content/themes/PoinTheme/includes/wishlist.php
<?php
$wish_arr = array(0);

if( isset($_COOKIE['mfn_wishlist']) ){
    $wishlist = $_COOKIE['mfn_wishlist'];
    $wish_arr = explode(',', $wishlist);
}

$wish_query = new WP_Query( array(
    'post_type' => 'product',
    'posts_per_page' => -1,
    'post__in'=> $wish_arr
) ); ?>

<div class="section wishlist woocommerce">
    <div class="section_wrapper clearfix">
    <?php if($wish_query->have_posts()): ?>
        <?php while($wish_query->have_posts()): $wish_query->the_post();
            $product = wc_get_product(get_the_ID());
        ?>
        <div class="wishlist-row">
            <div class="column one-fourth">
                <?php echo Mfn_Builder_Woo_Helper::get_woo_product_image($product); ?>
            </div>
            <div class="column one-second">
                <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                <p class="price"><?php echo $product->get_price_html(); ?></p>
                <?php the_excerpt(); ?>
                <?php woocommerce_template_single_meta(); ?>
            </div>
            <div class="column one-fourth wishlist-options">
                <?php echo Mfn_Builder_Woo_Helper::get_woo_product_button( $product ); ?>
            </div>
        </div>
        <?php endwhile; ?>
    <?php else: ?>
        <div class="wishlist-info">
            <h3>Your wishlist is empty.</h3>
            <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="button mfn-btn">Go to shop</a>
        </div>
    <?php endif; ?>

    <div class="wishlist-info" style="display: none;">
        <h3>Your wishlist is empty.</h3>
        <a href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>" class="button mfn-btn">Go to shop</a>
    </div>
    </div>
</div>