Display onsale custom shortcode
To get the product object based on the current post in the view's loop, I've added the following line of code as you can see with the above shortcode:
$product = wc_get_product($post->ID);
You can find the proposed solution in this case with the following reply:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.