Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Dan 2 posts 52 karma points
    Feb 10, 2015 @ 20:27
    Dan
    0

    Shipping methods with sage pay

    Hi there,

    I'm currently working on a site that processes orders through sagepay. Everything is working fine at the moment but when the order is sent up to Sage pay it seems to be passing the sub total rather than the order total. I've noticed this now that I've implemented shipping costs. When checking the order value the shipping costs are definiely being added and the order total is also being updated.

    Also, is there a way to add shipping costs using the API without having an address? The checkout flow of this site has address as the last step so ideally as soon as something is added to the basket I'd like to add on the shipping costs straight away.

    I'm using the buit in shipping service too.

    Thanks,

    Dan

  • Thomas 30 posts 163 karma points
    Feb 23, 2015 @ 15:34
    Thomas
    0

    Hey Dan

    Could you tell me which version of uCommerce you're using?

    Can you show me code where you add the shipment to the basket?

    Do you create the payment before you add the shipment to the basket? 

    Could you also send me a screenshot of the result, when you run this query in your database?

    select PO.OrderId, PO.OrderTotal, PO.SubTotal, PO.TaxTotal, PO.ShippingTotal, PO.PaymentTotal, PO.DiscountTotal, S.ShipmentId, S.ShipmentPrice, S.ShipmentDiscount from uCommerce_PurchaseOrder PO join uCommerce_Shipment S on PO.OrderId = S.OrderId;

    Kind regards
    Thomas Arvidsen

  • Dan 2 posts 52 karma points
    Feb 24, 2015 @ 20:55
    Dan
    100

    Thanks for getting back to me, Thomas. I managed to get to the root of the problem eventually. Embarassingy I was passing up the subtotal rather than the total so a very simple fix when I spotted it. Thanks a lot for replying though.

Please Sign in or register to post replies

Write your reply to:

Draft