Skip Navigation

[Resolved] Add attributes to products and make it visible – CRED forms

This support ticket is created 4 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
- 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 3 replies, has 2 voices.

Last updated by Minesh 4 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1995377

Hello,

I'm using "woocommerce product vendors" and I use "wp user frontend" to manage the user submissions from the frontend.

I want to replace "wp user frontend" with " Toolset" but the problem is that toolset doesn't allow attribute management from the frontend.

When I enable "Archive" for the WooCommerce attribute. then it is shown as a field in forms. and will be shown as Single text field in the form, so when I type it will get the data. after choosing and submitting the form. it will not save that attribute.

What I need is:
1- Able to make attributes to be chosen from the forms.
2- choose how to show them ( dropdown, select, text, multiple choice .. etc.).
3- make the attribute visible in the frontend.
4- make the attribute available for variation.

I can do all of this using "wp user frontend" but I want to be able to do it using toolset.

Can you imagine that toolset does everything but not this?

if it can't be done then I will get back to that plugin.

Thanks

#1995707

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Toolset forms have limited support for creating products, having said that you can create forms to add/edit "Simple Products" and "External/Affiliate" products.

You cannot create Toolset forms for Variable and Grouped products.

More info:
=> https://toolset.com/course-lesson/creating-front-end-forms-for-adding-woocommerce-products/#what-kinds-of-products-you-can-add-with-forms

#1995737

Hello Minesh,

Consider the product as simple product. and cancel step 4.

as you said I can make simple products, am I able to add new attributes / choose existing attribute / make them visible in the frontend?
can I do that with CRED forms?

thanks

#1997361

Minesh
Supporter

Languages: English (English )

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

When you say attributes what attributes exactly, I can see you can add default product attributes like product color to the Toolset form.

The integration of Toolset forms to add Product is limited. However, you can obviously add custom fields and custom taxonomies as you want but there is limitation on attributes.

To handle attributes with a front-end form you would need to use the cred_save_data form's API hook.
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

Then write some custom code to update the post meta and taxonomy tables accordingly.

Following article may help you to understand how product attributes are stored within the database :
=> hidden link

However, I do not have any other workaround to display the custom product attributes using frontend form, you may try to use generic field to populate the attributes value using custom code but again it will require custom code that is beyond the scope of our support policy.

For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
=> https://toolset.com/contractors/