Hi,
In reality the relationship between both plugins is in reverse, should be included the form created with our plugin into a product of WooCommerce, furthermore it is possible calculated the product’s price through the form, delegating in WooCommerce the shopping cart management, the checkout process, the shipping and tracking if proceed, etc.
Please, follow the steps below:
1. Go to the settings page of the plugin, through the menu option: “Settings/Calculated Fields Form”, tick the checkbox corresponding to the WooCommerce add-on, and press the “Update” button.
2. Create a form as usual, but, if you want calculate the product’s price through the form, don’t forget to select the calculated field from the attribute: “Request Cost” in the form’s settings.
3. Now it is time to relate the form with the product. In the product’s settings will appear a new section for entering the form’s id (created in the previous step), with a checkbox to calculate the product’s price through the form or not, furthermore, there are other attributes to define the information that will be displayed in the shopping cart, and in the orders.
Please, visit the following link, that include the instructions and screenshots for the settings section:
http://cff.dwbooster.com/documentation#woocommerce-addon
Best regards.
Thread Starter
sagaio
(@sagaio)
Thank you for your reply.
I’m already using your plugin that way.
I think I was unclear. You see, I’m building a form where I use DS RecordSets to fetch WooCommerce products into the form and now I want to insert the WooCommerce “Add to cart” button on each of those products in the form.
I already calculate the product variations, quantity etc. via CFF.
Another question. Is it possible to use [CP_CALCULATED_FIELDS id=1 myvar=4] in a WooCommerce product?
Hi,
If you have created a form that loads the list of products, you should redirect to the user to the corresponding product’s page, because it is not possible to insert shortcodes of third party plugins into the form, furthermore, our plugin has access to the shopping cart of WooCommerce, only from a product’s page.
About your second question, with the WooCommerce add-on it is not inserted the form’s shortcode directly in the product’s page, however, you can insert into the product’s description the shortcode to create a global variable used from the equations:
[CP_CALCULATED_FIELDS_VAR name="myvar" value="4"]
Best regards.