My Wishlist

‘;
echo ‘

    ‘;

    // Loop through each Wishlist item
    foreach ($wishlist_items as $wishlist_item) {
    $product_id = $wishlist_item[‘prod_id’];
    $product = wc_get_product($product_id);

    // Display the product information
    echo ‘

  • ‘;
    echo ‘‘ . $product->get_name() . ‘‘;
    echo ‘
  • ‘;
    }

    echo ‘

‘;
} else {
echo ‘

Your Wishlist is empty.

‘;
}
?>