Skip Navigation

[Resolved] I'm trying to figure out the qty someone purchased

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, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2580347

Tell us what you are trying to do? I'm trying to figure out the qty someone purchased. We sell tokens, and the shop has a product called Token. Either right after they placed the order and paid, or when they try and use the token, I need to check how many they paid for.

I could not seem to query any order info.

#2581079

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know are you using Toolset Forms commerce? If yes:
You can use the following hook: :
- "cred_commerce_after_payment_completed"
- https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_after_payment_completed
OR
- "cred_commerce_after_order_completed":
=> https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_after_order_completed

Does that helps?