-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-to-wishlist-added.php
executable file
·46 lines (41 loc) · 1.74 KB
/
add-to-wishlist-added.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Add to wishlist button template - Added to list
*
* @author YITH
* @package YITH\Wishlist\Templates\AddToWishlist
* @version 3.0.12
*/
/**
* Template variables:
*
* @var $wishlist_url string Url to wishlist page
* @var $exists bool Whether current product is already in wishlist
* @var $show_exists bool Whether to show already in wishlist link on multi wishlist
* @var $product_id int Current product id
* @var $parent_product_id int Parent for current product
* @var $product_type string Current product type
* @var $label string Button label
* @var $browse_wishlist_text string Browse wishlist text
* @var $already_in_wishslist_text string Already in wishlist text
* @var $product_added_text string Product added text
* @var $icon string Icon for Add to Wishlist button
* @var $link_classes string Classed for Add to Wishlist button
* @var $available_multi_wishlist bool Whether add to wishlist is available or not
* @var $disable_wishlist bool Whether wishlist is disabled or not
* @var $template_part string Template part
* @var $loop_position string Loop position
* @var $is_single bool Whether we're on single template
*/
if ( ! defined( 'YITH_WCWL' ) ) {
exit;
} // Exit if accessed directly
global $product;
?>
<!-- ADDED TO WISHLIST MESSAGE -->
<div class="yith-wcwl-wishlistaddedbrowse" data-product-id="<?php echo esc_attr( $product_id ); ?>" data-original-product-id="<?php echo esc_attr( $parent_product_id ); ?>">
<?php
echo yith_wcwl_kses_icon( $icon );
//echo wp_kses_post( $product_added_text );
?>
</div>