Shortcodes in URL/text fields within pro

Hi there,

I know this topic has been covered before, but I can’t find the correct answer.

I’m trying include dynamic shortcodes in buttons and urls. I’ve figured out how to use dynamic content to put the correct urls in but I can’t figure out how to use shortcodes as button texts for example.

I have made a button where I’d like to display a price coming from a custom shortcode in the button. Is there anyway for me to do this without manually coding the button?

Kind regards
Kyle

Hi Kyle,

It seems that you want to show a product price as a button text, if that is the case you can add the dynamic content tag into the Button > Text Setup. Please find the sample tag below.

{{dc:woocommerce:product_price product="2224"}}

Please replace the 2224 with your product id, of which you want to show the price.

Body-Movin-Barber (1)

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.