Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHeather McFadden
6,473 PointsWordpress and Woocommerce...
Hi
First time posting here, so not sure if I'm even going about this the right way!
But does anyone know the best way to do something like this:
https://www.nicholloils.com/instant-quote/
I'm basically wanting to possibly do the same sort of thing, that allows you to pick a quantity, get a price and then select a delivery day and go through to checkout/payment options etc.
I was hoping there was some way to do it with woocommerce but I'm not sure.
Thanks if anyone is able to help me.
Heather
2 Answers
Zac Gordon
Treehouse Guest TeacherYes, this is possible, but you will have to do some custom coding in order to build something that looks and functions exactly like this.
The easiest way to do this is to add a single product with two sets of variables to pick from. Once they pick their options (fuel type and litres in this example). Then during the checkout process they can enter their zip code to determine shipping costs.
That could all be done by default with WooCommerce. The tricky thing would be collecting and passing around the zip code before the checkout page. You may find it's a trade off with the UX and amount of custom coding needed.
Heather McFadden
6,473 PointsThanks Zac for coming back to me that's clarified it in my head what approach I need to take with it and that woocommerce will def work. Will go and do some practice now :-)