Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Making the shortcode dynamic

$
0
0

Replies: 1

Hello Marc,
Sorry to bother you again!

I used your great shortcode to imbed the configurator as you know.

[mkl_configurator product_id=1 classes=”container-class something-else”]

Now I have made a second product page, and I am using elementor which creates a “single product template” that is applied to all single products.
This seems to mean when I specify a product ID in the shortcode, that ID is applied to all pages, so the two product pages I have made are embedding the same product.

Is there a way I can get the shortcode to default to the product page it is on?

Another way is if I make many elementor templates, but I’m having trouble getting that to go well.

If there is a way from the code end, that would be very helpful.

Thank you!

https://woocommerce-384941-1559973.cloudwaysapps.com/product/meishi-ire

https://woocommerce-384941-1559973.cloudwaysapps.com/product/passcase


Viewing all articles
Browse latest Browse all 59525

Trending Articles