Copied to clipboard

Flag this post as spam?

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


  • joanna 2 posts 22 karma points
    Jan 02, 2013 @ 20:32
    joanna
    0

    free vat campaign

    Hi, I want to implement a new campaign with razor. I call below macro in "page full width" template (in which cart steps use it). but I get "Error loading MacroEngine script (file: " as i am a newbie, expect your understanding and need a little help.


    @using TeaCommerce.Razor
    @using TeaCommerce.Data
    
    
    @{
      Order order = TeaCommerce.GetCurrentOrder();
      if (order.PaymentFeeWithoutVAT > 50) {
    
          order.PaymentFeeVAT=0;
    
      }
    }

  • Anders Burla 2560 posts 8256 karma points
    Jan 03, 2013 @ 16:21
    Anders Burla
    0

    Hi Joanna

    Its just TeaCommerce.GetOrder()

    You can always use the umbDebugShowTrace=true in your query string to enable the debug trace info to see more details of the error

    Kind regards
    Anders

  • joanna 2 posts 22 karma points
    Jan 04, 2013 @ 11:55
    joanna
    0

    Thank you Anders,

    But i get same error. Because TeaCommerce.Data.Order.PaymentFeeVAT is read only. 

    is it possible to set it editable? or should i use some different parameter to set the vat as 0 for PaymentFeeWithoutVAT>50 case?

     

    Kind Regards

    /joanna

Please Sign in or register to post replies

Write your reply to:

Draft