Skip Navigation

[Resolved] Views Shortcode for Sale Price and Regular Price separately

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

This topic contains 1 reply, has 1 voice.

Last updated by Nashaat 6 years, 5 months ago.

Author
Posts
#914869

Hi,
I have added two fields "_regular_price" and "_sale_price" in Manage non-Toolset Post Fields with Toolset Forms.
now when i post a new product using toolset forms both fields get added to the new product regular price and sale price.

The problem is that, i would like to show these fields separately in the single-product.php template that i have created with Layouts. because now when i add [wpv-woo-product-price], both regular & sale Price show next to each other in the front end.

is it possible to show _sale_price and _regular_price separately? because i also will need to calculate these fields as following:
"_regular_price" - "_sale_price" = Your Savings

would be great to get step by step instruction.
Thanks

#914895

I have solved this issue!

i was using wrong shortcode for rendering them on the frontend!

following showrcodes are correct:

[wpv-post-field name="_regular_price"]
[wpv-post-field name="_sale_price"]