Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Puck Holshuijsen 188 posts 751 karma points
    Oct 31, 2022 @ 08:56
    Puck Holshuijsen
    0

    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:

    1. on the front-end there will be an input field to fill in the length they want
    2. in the add item to basket method I will set that length in a property-field
    3. in the backoffice i set that property to be used as the Product Uniqueness for the orderline
    4. 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 :)

    Thanks!

    Kind regards,

    Puck

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Oct 31, 2022 @ 08:59
    Matt Brailsford
    100

    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.

  • Puck Holshuijsen 188 posts 751 karma points
    Oct 31, 2022 @ 09:00
    Puck Holshuijsen
    1

    Hey Matt,

    Great to hear! Thanks for the advice on the order editor config :)

Please Sign in or register to post replies

Write your reply to:

Draft