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 329 posts 935 karma points
    1 week ago
    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 329 posts 935 karma points
    1 week ago
    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 3041 posts 15765 karma points MVP 7x c-trib
    1 week ago
    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