Hey Charlie,
While working on a custom single product layout assigned to the FluentCart Product CPT I experience an issue with getting certain post data, such as the post title, to appear. Just a simple {{ post.title }} DC tag. Initially the correct product title appears, but it then disappears after a refresh.
This PHP notice shows up in the console:
PHP Notice: FluentCartAppModulesTemplatingTemplateActions::{closure:FluentCartAppModulesTemplatingTemplateActions::initSingleProductHooks():190}(): Argument #2 ($post_id) must be of type int, string given, called in /wp-includes/class-wp-hook.php on line 324 in /wp-content/themes/pro/cornerstone/includes/views/partials/menu.php on line 179
And this is what FluentCart support said about it:
This actually means Cornerstone is sending the $post_id as a string instead of an integer. FluentCart expects an integer, so the mismatch causes the title and other product details to break inside the builder.
At this point, this error seems to be coming from how Cornerstone handles the product context