The first step, first modify the relevant JS file
Open/js/shopping_flow.js File
Remove the following JS code
if (frm.elements[' province ') && frm.elements[' province '].value = = 0 && frm.elements[' province ']. Length > 1) { Err = true; Msg.push (Province_not_null); } if (frm.elements[' city ') && frm.elements[' city '].value = = 0 && frm.elements[' City '].length > 1) { err = true; Msg.push (city_not_null); } if (frm.elements[' district ') && frm.elements[' district '].length > 1) { if (frm.elements[' district '].value = = 0) { Err = true; Msg.push (District_not_null); } } |
Step two, modify the relevant program files
Modify the/inlcudes/lib_order.php file
Remove the following PHP code
if ($res)
{
if (Empty ($consignee [' Province ']))
{
/* Not set the province, check the current country below there are no provinces * *
$pro = get_regions (1, $consignee [' Country ']);
$res = Empty ($pro);
}
ElseIf (Empty ($consignee [' City '])
{
/* No city set up, check the current province there is no city * *
$city = Get_regions (2, $consignee [' Province ']);
$res = Empty ($city);
}
ElseIf (Empty ($consignee [' District ']))
{
$dist = Get_regions (3, $consignee [' City ']);
$res = Empty ($dist);
}
}
Cshop Consignee receiving address information of provinces and cities to change to non-mandatory options