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.

  • wolulcmit 357 posts 693 karma points
    Nov 13, 2011 @ 08:27
    wolulcmit
    0

    AddVoucher Callback?

    Just wondering if there's a way to determine whether a voucher code was added successfully or not
    there's the xslt extension CommerceLibrary:AddVoucher('yourvouchercodehere');

    but how would I then display a message to the user as to whether or not the code was accepted or not?

    - Tim

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 14, 2011 @ 13:58
    Søren Spelling Lund
    0

    The voucher is validated when the basket pipeline is run. You can check for discounts when you do a GetBasket() call or by checkingpurchaseOrder.Discounts.

Please Sign in or register to post replies

Write your reply to:

Draft