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 [3]

  • Installation
  • Setting Page
  • Compare button

Developer [4]

  • Using Hooks
  • Overwriting Templates
  • Useful Functions
  • Shortcode

Support [2]

  • Support & Discussion
  • Changelog
  • Home
  • Kb
  • WooCommerce Compare Products
  • Developer
  • Shortcode

Shortcode

  • Updated on: September 4, 2023

[addonify_compare_products]

This shortcode is used for displaying products comparison table.

[addonify_compare_products]

[addonify_compare_button]

This shortcode is used for displaying compare button. The shortcode accepts four parameters:

  • product_id – used for passing the ID of a WooCommerce product. If the shortcode is being used outside of a product loop, then the parameter is required.
  • button_label – used for passing the label to the button.
  • classes – used for passing additional CSS class(es) to the button. When passing the CSS class(es), the CSS classes should be separated by a space.
  • button_icon_position – used for displaying icon and specifying it’s location in the button. The value for the parameter should be either ‘left‘, ‘right‘, or ‘none‘.

An example of compare button shortcode with four parameters is as below:

[addonify_compare_button product_id="1" button_label="Compare" classes="class-one class-two class-three" button_icon_position="left"]

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