Thanks for your feedback on the use case!
You can practically add any information and logic to the shopping cart and this has an easy solution. A quick solution is this:
Add a label to the shopping cart's widget template from Design>Widget Templates. This can be anywhere, but it makes sense to add it where the totals are displayed:
Text='<%$Resources:OrdersResources, SubtotalWithDiscounts %>' CssClass="sfTxtLbl" />:
Estimated Total Shipping: <
Now we are going to inherit the shopping cart and only display the expected price based on a flat calculation. You can actually get any control from a template if you override elements of ecommerce by using Container.GetControl. Here we are inheriting the shopping cart and modifying the IntiializeControls method as following.
CustomShoppingCart : ShoppingCart
//get the control that is responsible for displaying the total
var ShippingControl =
var totalShipping =
ShippingControl.Text = "$" + totalShipping;
var totalQuantity = CartOrder.Details.Sum(s => s.Quantity);
(totalQuantity > 6)
//just applying a flat rate of 0.5 dollars per pound
CartOrder.Weight * 0.5;
Now all that's left to do is to register the overridden shopping card in the toolbox and use it instead of the regular widget. Since it's inheirted it will behave exactly the same with the only difference that it will display shipping.
Optionally you may want to update the actual total price to reflect the addition of the shipping, but I would add a different label below it stating: total with shipping or something like that .
Hope this helps!
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items