TM WooCommerce Compare & Wishlist

WooCommerce Plugin

WishList

WooWishlist allows your visitors to add products to their wishlist with a single click of a mouse. Showcase the wishlist in a widget area or on a separate page. If a product was added into the wishlist unintentionally, customers can remove it. As the plugin is powered by Ajax, the wishlist and its widget are updated dynamically, without page reloading.
The plugin offers the following options:
  • Enable wishlist
    Enable/disable the wishlist.
  • Select wishlist page
    Choose the page to display the wishlist.
  • Show in catalog
    Display the "Add to wishlist" button on the products page.
  • Show in products page
    Display the "Add to wishlist" button on the product page.
  • Add to wishlist button text
    Specify the wishlist button text.
  • Added to wishlist button text
    Specify wishlist button text for the products that are already added to the list.
  • Empty wishlist text
    Text displayed if the wishlist is empty.
  • Wishlist columns
    Choose a number of columns.

Data will be dynamically updated in all sections and the products added in the listing will be automatically added to the widget and to the wishlist page.

The wishlist table is displayed with the help of [tm_woo_wishlist_table] shortcode. The following options are available:

  • сols
    Number of columns.
  • image_size
    Picture size.
  • template
    Choose template shortcode.
  • сlass
    Table custom class.
Shortcode-templates options

Table and wishlist widget are built on tmpl.

Templates are located in templates\shortcodes\tm-woowishlist\ folder

You can rewrite the templates by copying them to the uploads\templates\shortcodes\tm-woowishlist\ folder or to the woocommerce\shortcodes\tm-woowishlist\ folder inside the theme. You can also change the names of the templates.

Wishlist page templates

The default table template on the compare page - page.tmpl The template supports the following macros:

  • %%TITLE%%
    Display product title.
  • %%IMAGE%%
    Display the product picture. Supports the following attributes:
    • size
      Image size. Supports names of image size presets. For example %%IMAGE size="shop_thumbnail"%%. shop_thumbnail by default.
    • placeholder
      defines whether to display a cover picture if the product doesn’t have one. Takes true|false. true by default.
  • %%ADDTOCART%%
    Display “Add to Cart” button.
  • %%PRICE%%
    Display product price.
  • %%STOCKSTATUS%%
    Display product status in stock.
Customize functionality with hooks
  • add_action( 'woocommerce_after_shop_loop_item', 'tm_woowishlist_add_button_loop', 12 )
    The hook adds the "Ad to wishlist" button on the products page
  • add_action( 'woocommerce_single_product_summary', 'tm_woowishlist_add_button_single', 35 )
    The hook adds the "Ad to wishlist" button on a product page
  • apply_filters( 'tm_wc_compare_wishlist_button_preloader', '' )
    The hook allows to add a custom preloader to the "Add to wishlist" button
  • apply_filters( 'tm_wc_compare_wishlist_loader', $loader )
    The hook allows to change the preloader of the wishlist and widget
  • apply_filters( 'tm_woowishlist_button', $html, $classes, $id, $nonce, $text, $preloader )
    "Add to wishlist" button display filter
  • apply_filters( 'tm_woowishlist_page_button', $html, $classes, $link, $text )
    "Go to my wishlist" button display filter
  • apply_filters( 'tm_woocommerce_include_bootstrap_grid', true )
    Filter that allows to disable the Bootstrap grid for the wishlist page
  • apply_filters( 'tm_woowishlist_empty_message', $html, $empty_text )
    Filter that displays a message if the wishlist is empty
  • apply_filters( 'tm_woowishlist_dismiss_icon', '<>' )
    "Product delete" button display filter

[tm_woo_wishlist_table] shortcode is added to the "Compare" page (if the page is absent in database it will be created automatically). This page is added to the Select wishlist page plugin option.

If the page exists, [tm_woo_wishlist_table] shortcode will be added to the page content. If the shortcode is already inserted, no changes will be made.