Problem:
User created a classifieds site and wants to charge users for posting an “ad” (1 month / 6 months / 12 months) using Toolset Post Forms + Toolset Forms Commerce + WooCommerce.
The form redirects to the WooCommerce cart after submission, but the cart is empty (no product/billing info shows). The setup used “product based on custom field”, however no custom field was selected/mapped, so Toolset had no product to add to the cart.
Solution:
Connect the Toolset form submission to a WooCommerce product by mapping a Toolset custom field to WooCommerce Product IDs:
Create/confirm the 3 WooCommerce products (1 / 6 / 12 months).
Create a Toolset Select/Radio custom field on the “Gyms” CPT (e.g. ad_product).
Set each option’s stored value to the corresponding WooCommerce Product ID.
Add this field to the Post Form so the selected Product ID is saved on submission.
In Toolset Forms Commerce settings inside that form:
Enable Charge payment with this form
Choose “The form specifies the product according to the value of this custom field”
Select the ad_product field in the dropdown (this was missing, causing the empty cart)
Once the field → product mapping is set, Toolset can correctly add the selected WooCommerce product to the cart after publishing the post.
Relevant Documentation:
https://toolset.com/course-lesson/charge-users-for-submitting-content/
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.
This topic contains 1 reply, has 1 voice.
Last updated by 3 weeks ago.
Assisted by: Christopher Amirian.