an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 3/25/2009 3:02:53 PM By macker999. 5 replies.
3/19/2009 3:39:23 PM
macker999
Posts: 30
Joined: 10/11/2008
Order Total
Hi Lukezy
 
 
I need to add a new value to the order totals on the Onepagecheckout .ascx. Our shopping cart has to charge for waste management fees so we need to add this to our totals at check out. Can you give me pointers on how to do this?
 
Thanks 
3/23/2009 1:00:37 AM
micahsdad1402
Posts: 31
Joined: 11/2/2008
Location:Melboune Australia
Re: Order Total
Macker,
 
I'm still working DSC out, but basically you will need to create a new Provider for you Total, as in ShippingOrderTotalProvider, etc.
 
Then in DSC.Config, add the details to the orderTotalServiceConfiguration.
 
From what I've worked out this should work. I'm sure Lukesy will correct me if I'm wrong, or have missed anything.
 
JJ.
3/23/2009 9:06:19 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Order Total
Thanks JJ.
 
Yes, you will need to create a new OrderTotalProvider for the waste management fee. Please check TaxOrderTotalProvider or SubtotalOrderTotalProvider.cs. And then add it to orderTotalServiceConfiguration in DSC.config.
DotShoppingCart Staff
3/24/2009 10:16:02 AM
macker999
Posts: 30
Joined: 10/11/2008
Re: Order Total
Thanks micahsdad1402/lukezy
 
I am using v3.1 of the suite version. I cant find the SubtotalOrderTotalProvider.cs file or any of the other order tola files. I noticed in the free version that there is a folder with these files called OrderTotal.
 
I have no problems adding a new entry in dsc.config file but i have no i dont know how to create a provider as I am not sure where the files you mentioned exist in the suite version. Any help would be appreciated 
 
 
  <orderTotalServiceConfiguration defaultProvider="">
        <providers>
            <clear />
            <add enabled="True" sortOrder="0" name="SubtotalOrderTotalProvider" type="DotShoppingCart.Commercial.OrderTotal.SubtotalOrderTotalProvider" />
            <add enabled="True" sortOrder="10" name="ShippingOrderTotalProvider" type="DotShoppingCart.Commercial.OrderTotal.ShippingOrderTotalProvider" />
            <add enabled="True" sortOrder="100" name="TaxOrderTotalProvider" type="DotShoppingCart.Commercial.OrderTotal.TaxOrderTotalProvider" />
            <add enabled="True" sortOrder="2147483647" name="GrandTotalOrderTotalProvider" type="DotShoppingCart.Commercial.OrderTotal.GrandTotalOrderTotalProvider" />
            <add enabled="True" sortOrder="200" name="WeeTotalOrderTotalProvider" type="DotShoppingCart.Commercial.OrderTotal.GrandTotalOrderTotalProvider????" />
        </providers>
    </orderTotalServiceConfiguration>
 
3/24/2009 10:20:28 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Order Total
Send me an email and I will send the code over.
DotShoppingCart Staff
3/25/2009 3:02:53 PM
macker999
Posts: 30
Joined: 10/11/2008
Re: Order Total
Thanks Lukezy
 
I got my waste and a new custom delivery charge order total providers implemented.