Skip to content

Adding the Price Comparison Pro shortcode to product pages using Elementor

If you are using Elementor to edit your WooCommerce product detail template then you’ll find below the technique to use to place the price comparison table wherever you like.

Price Comparison Pro has two shortcodes for the price comparison table – one is for specific posts or pages (e.g. you’re performing a one-off product comparison) and the other is for WooCommerce product detail pages.


This shortcode will only run on WooCommerce product detail pages and will pull the product and affiliate URLs from whatever you have specified for that specific product.

In the Elementor editor, search for the ‘shortcode’ widget, add it on your page somewhere, then in the left hand box enter the shortcode:

Save your template, then visit a product detail page where you have entered Price Comparison Pro URLs, or where you have an external/affiliate product specified and then you’ll see the price comparison table appearing in the position you chose.



Did this article answer your question?

Leave a Reply

Your email address will not be published.

Come chat to me on our Discord server to ask questions - Dave Hilditch, WP Intense

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.