Copied to clipboard

Flag this post as spam?

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


  • Vladimir 10 posts 120 karma points
    Sep 08, 2013 @ 16:19
    Vladimir
    0

    discount

    Our discount scenario will be:
    We have a promotion key for some user and from this key we can calculate a discount!
    So the discount is a fixed value for one sale.

  • Vladimir 10 posts 120 karma points
    Sep 08, 2013 @ 16:20
    Vladimir
    0
    Just found this:
     
     
    Med venlig hilsen / Best regards

    Anders Burla Johansen
  • Vladimir 10 posts 120 karma points
    Sep 08, 2013 @ 16:26
    Vladimir
    100

    Another way how to make discount

     

     

     

     

     

    just remove validation ....

     

    and change mini-cart.cshtml

    @using TeaCommerce.Umbraco.Web
    @using TeaCommerce.Api.Models
    @using umbraco.MacroEngines
    @inherits umbraco.MacroEngines.DynamicNodeContext
     
    @{


      TC.AddOrUpdateOrderLine(1, "1385", 1, null, false, true, null, null);//add product
      TC.AddOrUpdateOrderLine(1, "1386", 1, null, false, true, null, null);//add discount
      //Store id
      long storeId = long.Parse(Model._Store);

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies