Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When you checkout, if you go from Customer Information to Shipping & Payment, and then back to customer information, region selected state is not preserved.
Think its may be a javascript issue.
function changeRegions(countrySelect) { var countryRegionSelect = jQuery('select[data-countryselectid=' + countrySelect.attr('id') + ']'), countryId = countrySelect.val(), countryRegions = TC.getCountryRegions({ countryId: countryId }); // Select the Billing region, or Shipping region var currentCountryRegion = countryRegionSelect.attr('name') == "shippingCountryRegion" ? TC.getCurrentShippingCountryRegion() != null ? TC.getCurrentShippingCountryRegion().id : 0 : TC.getCurrentPaymentCountryRegion() != null ? TC.getCurrentPaymentCountryRegion().id : 0; countryRegionSelect.find('option[value!=0]').remove(); for (var i = 0; i < countryRegions.length; i++) { var countryRegion = countryRegions[i]; var selected = (currentCountryRegion == countryRegion.id) ? "selected" : ""; countryRegionSelect.append('selected + '>' + countryRegion.name + ''); }}
Hi Paul
Is that the solution you have posted?
Kind regardsAnders
Yep - seems to work for me.
My new bits in BOLD.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
StarterKit Bug - Region selected state not preserved
When you checkout, if you go from Customer Information to Shipping & Payment, and then back to customer information, region selected state is not preserved.
Think its may be a javascript issue.
Hi Paul
Is that the solution you have posted?
Kind regards
Anders
Yep - seems to work for me.
My new bits in BOLD.
is working on a reply...