WooCommerce Compare Shortcode

Shortcodes Viewed: 1304

Compare Table Shortcode

With the following shortcode you can create a comparison table of selected product ids:

[woocommerce_better_compare products="PRODUCT_ID_1,PRODUCT_ID_2,PRODUCT_ID_3"]

If you leave the product ids empty our plugin will output the products, that a user has in his compare list automatically:

[woocommerce_better_compare]

Autocomplete form Shortcode

To show the autocomplete form, where users can add products by search, to the compare list:

[woocommerce_better_compare_autocomplete]

Compare Button Shortcode

To show the compare button with a shortcode you can use the one below. You can leave out a product ID to use this shortcode dynamically:

[woocommerce_better_compare_button product="PRODUCT_ID_1"]

Leave a Reply

Your email address will not be published. Required fields are marked *