Knowledgebase:
States/Province dropdown Levels Readytheme
Posted by , Last modified by on 01 August 2017 10:16 AM

Disclaimer

This will work for stores on Miva Version 9.0005 - 9.0006. Note that this will require making changes to files on the server. Make sure you make a backup of any files you will be altering.These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer. 

 

Issue

When one country is selected in the Countries tab under store settings. The State/Province drop down reverts to a text field.

 

Instructions

domainname.com / httpdocs / mm5 / themes / levels / js / scripts.js

 

Under jsOCST in scripts.js, add the following:

$(window).on('load', function () {
if ($('#ShipCountry:disabled')) {
$('#ShipCountry').parent().removeClass('no-data');
}
if ($('#BillCountry:disabled')) {
$('#BillCountry').parent().removeClass('no-data');
}
});

 

Add the code above below...

// ---- Google Address Autocomplete ---- //

// cornerstoneUX.sharedFunctions.mvGAAC.init();

 

 


Also, update this portion:
if( $select.val() === default_country){

To:
if( $select.val() === default_country || $select.is(':disabled') || !$select.val() ){

 

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?