Forums
Home / Plugin: WPC Smart Quick View for WooCommerce / Product id
(@zaoyao)
3 years, 3 months ago
How to generate the short code with dynamic product id
(@wpclever)
Hi @zaoyao
You can use the shortcode:
echo do_shortcode('[woosq id="{product_id}"]');
Example:
echo do_shortcode('[woosq id="99"]');