Dave Dean
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerAh… that one’s easy ??
You just have to set the value to be the same as the label.
I can’t remember if conditional logic uses the label or the value. If it uses the value you’ll have to update the conditions in your calculation fields.
Glad you’ve got it working!
Cheers,
Dave
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerI’ve never used it for your specific use-case, so I can’t be totally sure. You could try the Gravity Forms forums:
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customer@codeworxx – I’m sorry, I wouldn’t know the answer to that. I’ve not got any experience of manipulating the Woocommerce fields via Javascript.
I can recommend Gravity Forms and the gravity forms product addons extension. It means when WordPress / Woocommerce or your theme are updated, somebody else is doing the work of updating the code to match (otherwise you have to go back through all the sites you run to update your own bit of code).
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customer@codeworxx – are you using Woocommerce and Gravity Forms with the Gravity Forms Product Addons?
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerAh. I just thought of something else…
In my example:
https://www.print-2-media.com/shop/banners/pvc-banners-510gsm-heavy-weight-single-sided/
The “finishing” radio button field is NOT an options field. It’s just a normal radio button field which the calculation fields use to determine the price multiplication factor.
If it were an “options” field then the price associated with each option would get added to the total, which may be where you’re getting a problem.
I realise my initial instructions were confusing on this point (because I’d forgotten it myself!), so I’m really sorry!
Cheers,
Dave
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerAre you using the total provided by woocommerce or the total provided by Gravity Forms? Although you have to have a Total field at the end of your form, I’ve set the CSS class name in the advanced tab for that field to “hidden-total”, which hides it from the user. So the user isn’t ever seeing the Gravity Forms total, only the one from Woocommerce.
Not sure if this will make the difference, but might be worth a try.
Can you show me exactly what’s in the sub total calculation fields?
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerRegular price was also £0.00.
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerI still don’t follow I’m afraid. Are you using the area calculation as well? I think I’d need to see the form to understand fully what you’re doing.
The only think I would say is that my base price was £0.00.
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerI’m not entirely sure what you mean, but I’ve just had a quick look and in the Gravity Forms Product Add-ons section in the product, underneath “Total Calculations” I’ve got Disable Sub-Total checked, Disable Options Label checked and Disable Total Label UNchecked.
Not sure if any of that will make a difference?
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerIt took me a while, but I managed to do it all using in-built Gravity Forms functionality. Calculation fields are the key to the puzzle.
You need to start with a product field for the base price which I just set to £0.00.
Then create your option fields (like Finish in my example).
Then create your number input fields (Height and Width).
Then create calculation fields for all the different combinations of options. I called the calculation fields “Sub Total”. Use conditional logic on the calculation field so it only shows when the relevant option is selected.
The actual calculation that goes into the calculation field is the Height field * the Width field * the price of the selected option.
You finally need a total field to generate the final price.
I hope that makes sense!
Cheers,
Dave
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerHi jescarcha,
You can see an example page showing what I’ve done here:
https://www.print-2-media.com/shop/banners/pvc-banner-510gsm-single-sided/
If you need more of an explanation of how it works then let me know.
Cheers,
Dave
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerHi ogdesign,
Thanks for the reply. I think perhaps the measurement price calculator has been updated since I last tried it. I’ve just checked out the new demos from the woothemes extension page and it does seem to do more things than it used to.
I managed to solve my particular situation using gravity forms and the gravity forms product add on extensions. I was able to use calculation fields to work out areas and prices. Gravity forms has the added bonus of allowing you to add other fields, like file upload fields which I needed for customers to upload their artwork. You can also use conditional logic in the forms to only show certain fields when they’re required.
Cheers,
Dave
Forum: Plugins
In reply to: [WooCommerce] Price based on width and height entered by customerBump…
I’m desperately in need of this! Anybody got any ideas?