Enhanced Shortcode Functionality for Pro Users of WishList for WooCommerce
This article is designed for users of the Pro version of the WishList for WooCommerce plugin. It highlights the additional shortcode functionalities that can enhance your wishlist experience.
Pro Shortcode Enhancements (Exclusive to Pro Version)
While the free version provides a solid foundation, the Pro version unlocks additional shortcodes for greater control over your wishlists.
Advanced Wishlist Management
- [alg_wc_wl_search]: Integrates a search bar specifically for your wishlist, allowing users to quickly find desired items.
- [alg_wc_wl_single id=”ID”]: Showcases a single wishlist using its unique ID. This is useful for creating public wishlists or sharing specific lists with others.
- [alg_wc_wl_archive]: Generates an archive page displaying all your wishlists.
Wishlist Button Customization
- [alg_wc_wl_button product_id=”ID”]: Adds a wishlist button directly to product pages. You can customize it using the
product_id
parameter to target specific products.
Using Pro Shortcodes
Similar to the free version’s shortcodes, these Pro features use the standard WordPress shortcode syntax for integration into your pages or posts.
Example of Using the Wishlist Button with a Product ID
[alg_wc_wl_button product_id="123"]
Pro Tip: Combine Shortcodes for Powerful Results
By combining these Pro shortcodes, you can create dynamic wishlist experiences. For instance, you could use the wishlist archive shortcode alongside the single wishlist shortcode to display a list of all your wishlists with the option to click and view each one individually.
Shortcode Overview
- [alg_wc_wl]: Displays the wishlist page.
- [alg_wc_wl_counter]: Shows the number of items in your wishlist. Use the
ignore_excluded_items
parameter with a value of “true” to exclude items marked as excluded, ensuring the displayed count matches the expected number of items. - [alg_wc_wl_remove_all_btn]: Displays a button to remove all items from your Wishlist.
- [alg_wc_wl_icon]: Displays a customizable Wishlist icon on your WooCommerce store
Example Usage
[alg_wc_wl_icon counter="true" link="true" ignore_excluded_items="true"]
Explanation:
- counter=”true”: Shows the number of items in the Wishlist.
- link=”true”: Makes the icon a clickable link to the Wishlist page.
- ignore_excluded_items=”true”: Excludes certain items from being counted in the total.
These shortcodes can be added anywhere on your pages or posts using the standard WordPress shortcode syntax.
Example Usage
To display the wishlist button, use
[alg_wc_wl_remove_all_btn]
I hope this helps clarify how to utilize the shortcodes provided by the WishList for WooCommerce plugin.