function as_wish_list_after_add_to_cart_button() { global $product; $data_product = as_get_product_wish_list(); if (isset($data_product[$product->id])) { echo '<span class = "wish-list-notice">' . __("Product is in wishlist", AS_DOMAIN) . ' | <a target = "_blank" href = "' . get_page_link(get_option("as-wishlist-page-id")) . '">' . __("Go to Wishlist", AS_DOMAIN) . '</a></span>'; } else { echo '<span class = "wish-list-notice"><a data-product-id = "' . $product->id . '" class = "button as_button product_show_detail_button as_wishlist_btn" href = "javascript:;">Add To Wish List</a></span>'; } }
<?php $product_list = as_get_product_wish_list(); ?> <table> <tr> <th>Image</th> <th>Name</th> <th>Price</th> <th>View</th> <th>Remove</th> </tr> <?php if (empty($product_list)) { ?> <tr> <td colspan="5"><span>No Products in wishlist</span></td> </tr> <?php } else { foreach ($product_list as $id => $product) { ?> <tr data-product-id="<?php echo $id; ?> "> <td><?php echo $product["image"]; ?> </td>