mbiefeni wrote:Thanks for the reply...
I am using the latest nopCommerce 3.5.
When I set to use the default template, no issues, but as soon as I set to nopRoot it seems to cause this issue.
You can check it out at fishingmilitia.com. Add something to cart and check it out. If you Inspect using Chrome you can also see that some java seems to have issues, perhaps there is a conflict with some module? Not sure...
The estimate shipping view has an incorrect parameter (addEmptyStateIfRequired)
Views\ShoppingCart\EstimateShipping.cshtml
- data: { "countryId": selectedItem, "addEmptyStateIfRequired": "true" },
+ data: { "countryId": selectedItem, "addSelectStateItem": "false" },
This change was made in
http://nopcommerce.codeplex.com/SourceControl/changeset/40a4c17e5ce7ca854e4a03e1b72c2923e89c0bb0, so other views may also need to be changed.
---
You can run the following in the Firebug console on the /cart page to temporarily (change doesn't persist on page reload) see the change work:
$("#CountryId").off('change');
$("#CountryId").change(function () {
var selectedItem = $(this).val();
var ddlStates = $("#StateProvinceId");
var estimateProgress = $("#estimate-shipping-loading-progress");
estimateProgress.show();
$.ajax({
cache: false,
type: "GET",
url: "/country/getstatesbycountryid",
data: { "countryId": selectedItem, "addSelectStateItem": "false" },
success: function (data) {
ddlStates.html('');
$.each(data, function (id, option) {
ddlStates.append($('<option></option>').val(option.id).html(option.name));
});
estimateProgress.hide();
},
error: function (xhr, ajaxOptions, thrownError) {
alert('Failed to retrieve states.');
estimateProgress.hide();
}
});
});