Skip Navigation

[Resolved] Front end listings showing after a deposit is made.

This support ticket is created 2 years, 3 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2428261

We list Dogs for Sale using Toolset. People can make a deposit/payment online for the Dog for sale that is listed. How can we show that dog hidden on the front end once payment has been made. That way a new buyer won't be able to make a deposit on the same dog that has received deposit /payment.
Is there a way to do that?

here is a page that you can make a deposit on.
hidden link

#2428663

Hello,

You can follow our document to setup a post form for creating "Dog" post, and change users when they submit the form, after user complete the Woocommerce order, publish the new "Dog" post automatically:
https://toolset.com/course-lesson/charge-users-for-submitting-content/

#2429217

I'm not quite sure that pertains to the question I had.
Here is the page: hidden link
Once a person clicks on one of the dogs, it takes them to the single page. If they want to buy it, they click on Make a Deposit.
But the site owner wants that same dog to be either hidden or marked as sold once a person puts a deposit on it. that way another person can't put a deposit on the same puppy. The site owner might not look at the site for a day and then realizes 2 people have sent payments for the same dog.
How can that puppy show it has been sold or pending payment?

#2429389

Hello,

You can try these:
1) Create a custom checkbox field "sold" in post type "Dog"
2) Create a post form for editing "Dog" post, display only the submit button as "puts a deposit on it", enable the option "Charge payment with this form", after user submit this form, and complete the payment,
3) After user submit above post form, and complete the Woocommerce order, use action hook "cred_commerce_after_order_completed" to change the field "sold" of "Dog" value to: sold
https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_after_order_completed
4) In the single "Dog" post, use wpv-conditonal shortcode to check "sold" field value, and display above editing post form link of step 2)
https://toolset.com/course-lesson/front-end-forms-for-editing-content/

#2433959

Would this work without using woocommerce? We use Square for payments.
thanks.

#2433961

Toolset Forms Commerce supports Woocommerce plugin only, but you can setup Square as payment gateway, more help:
https://woocommerce.com/products/square/

#2433999

We have Square Payments set up already. We only wanted to know if there was a way once a payment has been made on that particular dog, it would be hidden or at least marked as sold or pending, so no one else can put the same payment on it.
just wanted to know if there was an easy way to do this. or if it is possible.

#2434001