Copied to clipboard

Flag this post as spam?

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


  • Neil Hodges 338 posts 987 karma points
    Apr 28, 2021 @ 08:43
    Neil Hodges
    0

    How to add an amount to overall Order value

    HI

    I'm currently overriding the OrderLineCalculator - CalculatePrice, this works fine when individually amending the price point per OrderLine, but I'm trying to amend the overall Order amount.

    I can see within the Order Calculator there is - CalculateOrderTotalPrice but this is protected so I'm unable to override it?

    What's the best way of increasing the overall Order total?

    The amount it is increasing by doesn't really correlate to another product as such. The user uploads logos to a garment, and I'm determining how many logos they upload, will determine an increase of £20.00 per upload, so need to increase the overall Order value.

    What's the best way to achieve this, should I create a dummy product called 'upload', and set it to £20.00 then add this to the Order as an Orderline?

  • Neil Hodges 338 posts 987 karma points
    Apr 28, 2021 @ 13:51
    Neil Hodges
    0

    I've ended up just creating a Product called 'Logo Upload' and set a static price of £20.00

    The editor can then change this price per upload for the future and I can hide it within the basket.

    Using the BundleIdentifier I can attach each one to an OrderLine that way. Which allows me to increase the overall order.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 30, 2021 @ 13:05
    Matt Brailsford
    0

    Great solution Neil, glad you were able to figure out a workaround.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft