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.

  • Kevin Walker 66 posts 87 karma points
    Oct 07, 2013 @ 17:02
    Kevin Walker
    0

    UCommerce limited use voucher codes.

    Package name uCommerce 2.6.1.0 Package version 2.1.0.0

    I am using the above version of UCommerce. We have successfully implemented promocode/voucher functionality in our installation and everything works correctly in the basket and for payments etc, however, when we limit the number of vouchers to 5 for example, how do we get the number of vouchers used to decrease in the back office after a voucher has been used for a successful payment? At the moment the number of uses of a voucher is not reflected in the back office. We apply the voucher to the basket prior for checkout as follows:

    UCommerce.Xslt.Library.AddVoucher(Txt_VoucherCode.Text);                                       SiteContext.Current.OrderContext.GetBasket().Save();
    TransactionLibrary.ExecuteBasketPipeline();
    

    Thanks

    Kevin

  • Jesper Nielsen 141 posts 498 karma points
    Oct 14, 2013 @ 10:27
    Jesper Nielsen
    0

    Hello Kevin,

    The number of uses of a voucher is counted in the checkout pipeline. (In the step "SetVoucherUses")

    The idea is to not count uses if a basket is abandoned. Only count it when it is actually used.

    Kind regards,

    Jesper

Please Sign in or register to post replies

Write your reply to:

Draft