Skip Navigation

[Resolved] products form woocommerce in select

This support ticket is created 5 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Beda 5 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#1278361

Hi,
I try to create form with select which contains products form woocommerce

#1278405

For this, you need Toolset Forms and Toolset WooCommerce Forms and WooCommerce Plugin installed.
Then, create a Simple Product with a price.
After, create either an Edit or Create Form in Toolset > Post/User Forms and complete it to edit or create a post or user.
In the form choose to charge payment with this form, see https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/#2-connecting-products-to-forms
Then, at the bottom of the form choose the product to charge when submitting the form.
This can also be a dynamic input from a Field you have to create first.
https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/#2-1-product-to-buy

Here is the Full DOC of this task:
https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/

#1279629

Where is information about insert products to select(html) on page?

#1279989

I had shared this above, the direct link:
https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/#2-1-product-to-buy

You will check the "cover payment" option, select the input which in this case needs to be "The form specifies the product according to the value of this custom field option."
In this case, you should create several products and a custom field who’s value corresponds with the item IDs. A select or radio input would be great for this purpose.

Now in details this means:

1. Create a few products you plan to add as payment and note down their IDs
2. Create a Custom Field in Types that is assigned to your post type edited or created by the Form
3. The Field should be a radio or select field populated with values equal to the IDs of the Products that you plan to add to the form as payment options. The labels should obviously be something humanly readable, not ID's but maybe Product Names. Important is the ID is set in the value of the fields options.
4. Then insert that Field in the Form so users can choose the product to pay with when submitting the form.

Now the users can submit that form and pick a product to pay with, which will lead to purchase the precise product corresponding to the ID set in the field.