Set-up
I have a WooCommerce store with Elementor.
I'm using an Elementor single product page template to generate the product page for each product.
I want to use this plug-in to display a Frequently Bought Together (FBT) element on each product page.
To display the FBT element, the creator of the plug-in provides the following shortcode: [premmerce_get_bundles_by_main_product_id id="X"]
, where X
is a WooCommerce product id.
Issue
The X
is not dynamic.
If I fill in the product id of e.g. product 2
in the shortcode, the Elementor product page template will display the FBT products of product 2
for each of my products.
Question
Can I make the X
dynamic? Preferably, the X
is set automatically to the product's id which page is being visited.