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.

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Jan 13, 2013 @ 17:49
    Marc Love (uSkinned.net)
    0

    Determine if adding voucher code has been successful

    When I add a voucher code to my cart, how do I tell if it has been successful so that I can provide feedback to my users:

    MarketingLibrary.AddVoucher("12345")

    Cheers,

    Marc

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 14, 2013 @ 09:51
    Søren Spelling Lund
    1

    Hi Marc,

    You can check if you got an additional discount on your order.

    Like this:

    bool discountAdded = order.Discount.Count() > previousCount;

    We have a work item scheduled so MarketingLibrary will report back the status directly from the call, which makes the scenario easier to deal with.

    Hope this helps.

  • Marc Love (uSkinned.net) 445 posts 1787 karma points
    Jan 14, 2013 @ 11:18
    Marc Love (uSkinned.net)
    0

    Thanks Soren, would also be good to know if you re-enter a voucher code, if it has already been applied.

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft