Dynamic Data for Product ID in Bricks Builder (Site Reviews integration)
I am building a Single Product template using Bricks Builder and FluentCart.
I successfully managed to display the product title using your specific dynamic tag {fct_product_title}, as standard WordPress tags like {post_title} were not rendering correctly.
My Issue: I need to retrieve the Current Product ID to pass it to a third-party plugin (Site Reviews) via a shortcode (e.g., assigned_to="PRODUCT_ID").
I have tried the following without success:
- Standard Bricks tag:
{post_id}(returns nothing or 0). - Guessed tag:
{fct_product_id}(does not exist/work). - Custom PHP:
get_queried_object_id()andget_the_ID()(both fail to retrieve the ID in the frontend template context).
Question: Is there a specific FluentCart dynamic tag for the Product ID available in Bricks? Or is there a specific PHP function/method I should use to get the current FluentCart Product ID inside a Bricks template?
Thank you for your help.
Would love the same kind of stuff for the Cornerstone page builder. Perhaps if there were official shortcodes for this type of data then custom product pages would be much easier to build, regardless of theme or page builder.