This is in reference to the post below; which did not get any replys; Am I in the wrong forum?
[url=https://www.nopcommerce.com/boards/t/17450/nop-ver-190-i-implemented-a-minimum-shipping-fee-but-have-2-side-effects-i-need-help-to-fix.aspx]https://www.nopcommerce.com/boards/t/17450/nop-ver-190-i-implemented-a-minimum-shipping-fee-but-have-2-side-effects-i-need-help-to-fix.aspx[/url]
Maybe there are not that many programmers for NopCommerce; the fact is that while I code -- I did not plan to make changes to the base code! I got traped by the fact that I picked NopCommerce because it was .NET 4 Web Form based, SQL 2008 R2 based, open sourced,& was setup for Visual Studio 2010 Pro. That was a year ago, and I missed going live by last Turkey Friday AND then in late December Nop Ver 2.00 came out as a WebMatrix based??? -- Everybody else may have known BUT I missed it!
Well so much for the crying - The good news it that found the file the set the initial Total Shipping Field on the Checkout Page and inserted the Min Ship Fee code as shown below: I tested all possible states and it is rock solid - except my implementation so far defeates the Free Shipping Option set in the Product Varant record!
_______________________________________________________________________________
// OrderTotals.ascx.cs
decimal? shoppingCartShippingBase = this.ShippingService.GetShoppingCartShippingTotal(cart, NopContext.Current.User);
// SET MIN SHIPPING FEE AT THIS POINT JTD
decimal orderShippingMinFee = 7.95m;
if (shoppingCartShippingBase < orderShippingMinFee)
shoppingCartShippingBase = (decimal)orderShippingMinFee;
if (shoppingCartShippingBase.HasValue)
{
decimal shoppingCartShipping = this.CurrencyService.ConvertCurrency(shoppingCartShippingBase.Value, this.CurrencyService.PrimaryStoreCurrency, NopContext.Current.WorkingCurrency);
lblShippingAmount.Text = PriceHelper.FormatShippingPrice(shoppingCartShipping, true);
lblShippingAmount.CssClass = "productPrice";
_______________________________________________________________________________
I have found at path (SEE BELOW) to explore to get the Free Shipping BooL Flag to use in a compound IF to defeate the Min Ship Fee Code if the Frag is true; BUT without even a System Diagram it is realy shotting ing the dark; I noticed that in response to AM post a programmer pointed him to a page the has System Details for Ver 2.00 an up! -- Anybody know if the is such a great page for Ver 1.90 users???
_______________________________________________________________________________
// OrderSummary.ascx.cs
// public string GetProductVariantName(ShoppingCartItem shoppingCartItem)
// {
// var productVariant = shoppingCartItem.ProductVariant;
// if (productVariant != null)
// return productVariant.LocalizedFullProductName;
// return "Not available";
// }
_______________________________________________________________________________
WARNING: BEFORE ANYBODY TRYS TO INPLEMENT THE MIN SHIPPING FEE; I HAVE THE STOREMAX WEB SITE SET TO USA LOCATIONS ONLY AND ONLY USD CURRENCY -- OTHER SETTINGS MAY AFFECT THE IMPLEMEMTATION IN CODE!
I dont know if it if OK to post a small reward to induce a user with knowledge to help me out on a tough one like this?