Saltar navegación

[Resuelto] Add surcharge to cred form submission

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
- 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh 2 years, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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?