Skip Navigation

[Resolved] Create custom field with calculated value

This support ticket is created 2 years, 10 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 2 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#2071931

Hello,

I'd like to display a custom field that shows the percentage discount and difference in our currency in Toolset Views.
Is there a way to do this?

For example: a product costs 1000 in general, the sale price is 400. I want to display: You received 600 discount.
Here, the 600 should be dynamic

#2071959

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting Toolset support.

This will need a custom shortcode to calculate the amount. Please check these similar tickets, they may give you inspiration on how to do it:
- https://toolset.com/forums/topic/calculate-woo-fields/
- https://toolset.com/forums/topic/custom-fields-calculations-sum-total-of-two-fields/

You can find other similar tickets with this scoped Google search hidden link

Let me know if you have any questions.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.