Passer la navigation

[Résolu] I'm trying to figure out the qty someone purchased

This support ticket is created Il y a 3 years, 2 months. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 years, 2 months.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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?