Skip to content
Addonify

Addonify

Documentation & knowledge based site

  • Docs
    • Quick View
    • Compare Products
    • Floating Cart
    • EDD 2Checkout Inline Gateway
  • Plugins
  • Themes
  • Support
  • Blog
Addonify store
  • Docs
    • Quick View
    • Compare Products
    • Floating Cart
    • EDD 2Checkout Inline Gateway
  • Plugins
  • Themes
  • Support
  • Blog

Getting started [2]

  • Installation
  • Setting Page

Developer [3]

  • Using Hooks
  • Overwriting Templates
  • Useful Functions

Support [1]

  • Support & Discussion
  • Home
  • Kb
  • WooCommerce Compare Products
  • Developer
  • Useful Functions

Useful Functions

  • Updated on: July 29, 2022

Addonify Wishlist has defined some useful helper functions that you may want to use. The helper functions could be found inside inc/addonify-wishlist-helper-functions.php file.

Some of the helper functions are as follows:

// Function to get all items in the compare.
addonify_compare_products_get_compare_cookie();

// Function to get the numbers of items compare list count.
addonify_compare_products_get_compare_cookie_count();

// Function to check if a product is in compare list. $product_id is required.
addonify_compare_products_is_product_in_compare_cookie( $product_id );

// Function to check if compare list is empty.
addonify_compare_products_is_empty_compare_cookie();

Didn't find what you looking for? Try sending your questions from our contact page.

Your feedback matters to us. Was this article helpful to you?

Copyright © 2022 addonify.com. All rights reserved.

Project by 💖 CreamCode.Org