Skip Navigation

[Resolved] Cred form to make donation with woocommerce

This thread is resolved. Here is a description of the problem and solution.

Problem:
Cred form to make donation with woocommerce

Solution:
There is no native feature available but you need to add some custom PHP code and use WooCommerce and Toolset Commerce hooks to achieve this.

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/cred-form-to-make-donation-with-woocommerce/#post-948358

Relevant Documentation:

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.

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 3 replies, has 2 voices.

Last updated by Minesh 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#947713

I have woocommerce

I need a 'product' (donation) without a price so that the user can input the amount they wish to pay.

I don't know if this is possible with a cred form? Or is it possible at all?

#948358

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - there is no native feature available but you need to add some custom PHP code and use WooCommerce and Toolset Commerce hooks to achieve this.

You can use following hook to add the product to cart:
=> https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_add_product_to_cart

Here is the complete Doc - how you can set Toolset forms to add Payment:
=> https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/

All API hooks available here for Toolset Forms Commerce:
=> https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_add_product_to_cart

I think the following related ticket may help you a lot - its bit different but will help you to understand:
=> https://toolset.com/forums/topic/cred-commerce-calculate-form-fields-and-sendoverwrite-total-to-cart-item/

#948486

Thank you. I'll take a look at the links you suggested

#948766

Minesh
Supporter

Languages: English (English )

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

Ok fine - thank you.