Skip Navigation

[Resolved] Add surcharge to cred form submission

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2631153

Tell us what you are trying to do? I would like to add a surcharge (standard product) to a customer order based on the value of a cred forms field. Scenario, customer completes field and selects custom number (as opposed to auto generated number). A surcharge product (fee) should then be added to that customers order.

Is there any documentation that you are following? I have consulted all the API documentation.

Is there a similar example that we can see?

What is the link to your site?

#2631623

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Are you using Toolset forms commerce plugin? if yes, what if you try to use the following hook:
- https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_before_add_to_cart

Where you should add your desired custom logic to add your fees to your cart total - will that help?