In code, where or how can I set cart.Total?
I have custom code that changes the order total for the cart but I haven't found where to set the cart.Total.
Any direction would help.
Thanks,
Zach
In code, where or how can I set cart.Total?
I have custom code that changes the order total for the cart but I haven't found where to set the cart.Total.
Any direction would help.
Thanks,
Zach
SQL 2008, Visual Studio 2010
Source: C#
Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
Framework: .Net 4.0 (Running)
This is a confusing question. To change the total, you do stuff to the shopping cart. The total is calculated, not set. You can do this programatically several ways. In code-behind reference the customer, reference the cart class and add to it.
If you just need to add some arbitrary fee, do it with a built-in feature. This product does not lack for them... I'm glad to give you any guidance, I'm certain I can help, but I need more specifics on the problem you're trying to solve.
Last edited by tpmorgsls; 10-27-2010 at 03:59 PM.
Thanks for responding but the fee that is added is different each time or in different scenarios.
I just keep seeing that cart.Total is setting some variables. I'm trying to figure out where cart.Total sets itself.
SQL 2008, Visual Studio 2010
Source: C#
Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
Framework: .Net 4.0 (Running)
Apart from in the core app cs file shoppingcart.cs there is also the stored procedure aspdnsf_GetCartSubTotalAndTax
http://www.esedirect.co.uk
--------------------------------------------------------------------------
Using MS 9.2.0.0 with the following customisations:
Lightbox/Fancybox enlarged images;
Auto-suggest searchbox;
Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
Failed transactions emailed via trigger;
Custom app to show basket contents when customer online;
Orders pushed through to accounting systems.
All the above without source!
Ty, that's what I was looking for. I was in ShoppingCart.cs but was unaware of the SP and just seeing if anything else was "setting" cart.Total.
Thanks,
Zach
SQL 2008, Visual Studio 2010
Source: C#
Version: AspDotNetStorefront ML 8.0.1.1/8.0.1.1
Framework: .Net 4.0 (Running)