Skip Navigation

[Resolved] Questions about Toolset Forms and WooCommerce

This support ticket is created 4 years, 9 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/Karachi (GMT+05:00)

This topic contains 9 replies, has 2 voices.

Last updated by Waqar 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1284135

Hello,

In the web that I am developing the purchase of a product depends on formulas according to the fields that the user is entering, some fields can be calculated with respect to other fields, to finally introduce a new line of purchase in the shopping cart of woocommerce (something similar to what is shown in the article: https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/).
Toolset Forms can do the following:
Create formulas for calculating fields based on other fields?
Filter data from a table created with types to be shown in a selection box according to the selection of other fields in the form?
Toolset ECommerce Forms allows you to make several purchases according to the previous method?
That is, make a purchase and keep buying, so they would show several shopping lines in the cart, then make the checkout process of ending the purchase.

Thank you very much for the help.

Best regards,
Francisco R.Molina

#1284585

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Francisco,

Thank you for contacting us and I'd be happy to assist.

> Create formulas for calculating fields based on other fields?

- Toolset Forms plugin supports conditional display of fields based on user's input ( ref: https://toolset.com/documentation/user-guides/cred-conditional-display-engine/ ), but I'm afraid, it doesn't include a feature to fill the field values, based on calculations/formula applied on the input of other fields.

You're welcome to submit a feature request for this at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Meanwhile, as a workaround, you can include custom script to perform calculations and fill the values in the fields.

> Filter data from a table created with types to be shown in a selection box according to the selection of other fields in the form?

- To show some data with search filters, you'll need to create a view for it, as explained at:
https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/

These views can be used to show search form and data inside a Toolset Form, but the results output can't be natively, linked with the form's field.

For linking the results from the view with any input field in the form, again, you'll need some custom script.

> Toolset ECommerce Forms allows you to make several purchases according to the previous method?
> That is, make a purchase and keep buying, so they would show several shopping lines in the cart, then make the checkout process of ending the purchase.

- When you'll use a Toolset Form to allow users to pay for a product ( ref: https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/ ), it will not process the payment on it's own. Instead, it will add the connected product into the WooCommerce cart, when the form will be submitted. The rest of the cart and checkout process will still be controlled by the WooCommerce.

Through the form's settings, you can either send the user to checkout page, cart page or any other page of your choice, after the form's submission. User can keep on adding products in the cart through form and then place the order as one, later.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1284637

Hi Waqar,

Where can I get information on how to include custom script to add these features?
- Hooks, etc ...
- Include custom script to perform calculations and fill the values in the fields.
- Linking the results from the view with any input field in the form.

I appreciate all the help you can give me.

Regards,
Francisco R.

#1285061

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Francisco,

Thanks for writing back.

We have a detailed guide on the topic of including custom scripts in Toolset Views, but the basic principals remain the same for the Toolset Forms as well:
https://toolset.com/documentation/user-guides/adding-custom-javascript-views/

On the form's edit screen, you'll see "JS editor" tab, right below the fields, which can be used to include custom scripts.
( screenshot: hidden link )

To get the community-based assistance, you can post your questions to the specialized forums like:
https://stackoverflow.com/questions/
hidden link

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

regards,
Waqar

#1285215

Hi Waqar,

But, this is very basic, do not you have documentation with examples to work internally with Toolset? both from PHP and from Javascript. In the links that you have told me it does not explain anything about using toolset through code. This should be a fundamental part of your documentation, complex examples are not necessary, but simply small examples that serve as a basis for making more elaborate codes, your documentation is very basic and incomplete. Toolset was not born yesterday, I find it very strange that your documentation is not deeper in these aspects, since being so limited many aspects of Toolset, there is no choice but to implement them through code. The solution is not to hire a developer, the solution is to put a complete documentation so that people with some knowledge of PHP and javascript can know how to use the interiors of Toolset to create custom code.
A product like ACF has many examples and a lot of documentation to use the created fields, how is it possible that a product like Toolset, which is supposed to be more advanced, does not have a more complete documentation that includes enough examples?
Please, where can I find in-depth documentation that includes examples?
If you do not have this documentation, you should do it as soon as possible or, alternatively, give examples in the queries that are made.
I also need to include new fields in woocommerce products, check boxes relative to others, etc ... and make calculations with these fields to determine the final price of the product.

Thanks for your help.
Francisco R.

#1285971

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Francisco,

I apologize and it seems that my last messages have resulted in some confusion. I'd be happy to clarify that.

In this thread, we've been discussing in general, what can be achieved using Toolset's built-in or out-of-the-back features and which of the parts will require code customization.

When a user shares specific requirements and/or link to pages where the forms/views can be seen, we (the support team) do out best to suggest some workarounds or code examples, whenever possible.

To read details around what exactly is covered under the support, you can visit:
https://toolset.com/toolset-support-policy/

The following support threads are related to the topic of calculation of Toolset form fields, based on the user's input and will give you some more insights:
( you can use the search feature at https://toolset.com/forums/forum/professional-support/ to look for similar examples )

https://toolset.com/forums/topic/calculation-fields-for-form-in-a-grid/
https://toolset.com/forums/topic/create-cred-form-with-read-only-and-and-calculated-fields/
https://toolset.com/forums/topic/math-with-custom-fields-values/
https://toolset.com/forums/topic/create-an-calculated-field-in-a-user-input-form-with-cred/

As for our documentation and guides ( https://toolset.com/documentation/ ), they mostly cover what can be achieved using Toolset's built-in features, but you'll also find a number of articles on how to extend them using the custom code.

The fundamentals of using custom PHP, jQuery, CSS code remain the same with and without the Toolset plugins, which means that users who are familiar with these languages can extend the website's features, as much as needed.

There are plans to introduce a library of a frequently requested custom code snippets, but I'm afraid, I don't have a time estimate to share at the moment, around when it will be available.

Your feedback and suggestions are very important to us and help us improve in the right direction. For this reason, I'll encourage you to add your vote and voice for an out-of-the-box "form field calculation" feature and the improvements that you'd like to see in the documentation, through the form at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

> I also need to include new fields in woocommerce products, check boxes
> relative to others, etc ... and make calculations with these fields to determine
> the final price of the product.

- Toolset Types plugin, will enable you to add new custom fields to any post type, including the "Products" added by WooCommerce.
( ref: https://toolset.com/documentation/user-guides/using-custom-fields/ )

You can also collect the values for those custom fields from users, through Toolset's front-end forms.
( ref: https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/ )

However, Toolset Forms plugin doesn't include the feature to dynamically change the default price of the product and for this, it would be best to consult WooCommerce plugin's official support and documentation.

I hope this makes it more clear.

regards,
Waqar

#1286173

Hi Waqar,

Ufff, that's a serious problem. Toolset should have the possibility to modify the price of the product according to the conditions established in the new fields created and selected by user, since, otherwise, its value at the level of WooCommerce is null, the new fields that can be created with Types on WooCommerce are of little use. . This is something that you should solve as soon as possible. 🙁
On the other hand, how can you pick up all the values ​​or some of them (depending on a filter) of a new field created by types?
What functions does Toolset incorporate to do all this?

I do not know what happens with Toolset. Every time I try to do something with Toolset I find walls that make me desist from using Toolset for the creation of any web. I have not yet been able to create any websites due to lack of features. 🙁

Thanks for your help.

#1286593

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Francisco,

Sorry to learn that some of the features that your project requires are not available in the Toolset.

Improvement of existing features and introduction of new ones, based on the feedback and suggestions we receive is an ongoing process. But unfortunately, it won't be possible for us to guarantee the availability of a particular feature or it's timeline ( ref: https://toolset.com/toolset-support-policy/ ).

Toolset plugins offer many features out-of-the-box, and for things which aren't covered, they can be accomplished through custom code, thanks to built-in functions, hooks, and filters.

For example, to get the values of custom fields, "Types Fields API" offers a shortcode method as well as the PHP function:
https://toolset.com/documentation/customizing-sites-using-php/functions/

Likewise, the Toolset Forms and Views also include a number of hooks and filters, to extend what can be achieved:
https://toolset.com/documentation/programmer-reference/cred-api/
https://toolset.com/documentation/programmer-reference/views-filters/

The guide on WooCommerce hooks and filters can be accessed at:
https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/

It is unfortunate that you find features offered by Toolset plugins limiting, but we'll encourage you to keep on sharing your suggestions so that they can become more useful for everyone, moving forward.

Tip: To get more specific and to-the-point support, I'll recommend sharing the link to the form or view that you're working with, in a new ticket and let us know, exactly what results, you'd like to achieve from them.

regards,
Waqar

#1286615

I'm still not working with those forms, before I wanted to know if Toolset allowed me to do what I wanted, but apparently there are too many things that you have not taken into account to incorporate fields to the products and work with them in an easy way, added to this, if you do not give the possibility of modifying the price of the product according to the selection made by the user, you already complicate all the work too much. Instead, as on other occasions, it will surely be easier to remove Toolset from the web I am creating and search for a plugin that does have the features that are needed.
Maybe at some point in the distant future Toolset has the features that really need to work in the reality. 🙁

#1287033

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing your feedback, Francisco.

You can stay up-to-date with Toolset's upcoming features and improvements, through our blog:
https://toolset.com/blog/

For a new question or concern, you're welcome to start a new ticket or chat.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.