Just to be sure i'm on the right track with my thinking :)
Hi Matt,
I have an idea how to solve a problem, but I just want to be sure that I'm on the right track and not forgetting something.
A customer of ours want's their customer to be able to order a quantity and certain length.
Because the length can be anything, I can't make this as an option to select. The price for a product = length 1 meter. If their customer fills in 2.35 meters, the price needs to be calculated according to that value.
My thoughts are this:
on the front-end there will be an input field to fill in the length they want
in the add item to basket method I will set that length in a property-field
in the backoffice i set that property to be used as the Product Uniqueness for the orderline
I create a new IOrderLineCalculator for calculating the price based on the length value
Do you think this will work? Or maybe am I missing something in this flow :)
The only extra thing I could add to that would be to also modify the order editor config to display the length property in the back office, but in terms of price calculation, you're spot on.
Just to be sure i'm on the right track with my thinking :)
Hi Matt,
I have an idea how to solve a problem, but I just want to be sure that I'm on the right track and not forgetting something.
A customer of ours want's their customer to be able to order a quantity and certain length. Because the length can be anything, I can't make this as an option to select. The price for a product = length 1 meter. If their customer fills in 2.35 meters, the price needs to be calculated according to that value.
My thoughts are this:
Do you think this will work? Or maybe am I missing something in this flow :)
Thanks!
Kind regards,
Puck
Hey Puck,
You've nailed it.
That's exactly what you'd want to do 👍
The only extra thing I could add to that would be to also modify the order editor config to display the length property in the back office, but in terms of price calculation, you're spot on.
Hey Matt,
Great to hear! Thanks for the advice on the order editor config :)
is working on a reply...