• I have multiple shipping methods in one zone that a user can choose if they match the cities in Advanced Shipping Zone textboxes.

    Some of the cities can choose between all three shipping methods, but only the last one in the list shows up, even though all three match the city.

    How can I fix this? If the same city matches all three shipping methods, all the methods that match should show up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter childg

    (@childg)

    I’ve also noticed that this doesn’t happen with all zones with multiple shipping methods, but rather with sections that have multiple flat-rate shipping methods.

    So in our case, we have three different shipping providers, so we create three flat-rate shipping methods in the zone, this is where the plugin just doesn’t return all flat rate options, but only the last one in the list.

    Thread Starter childg

    (@childg)

    Just for anyone having the same issue, I’m posting how I fixed it.

    Now, I’m by no means a PHP developer, my background is c#.net, but by looking at code in the plugin, I noticed that the line 244 in cmetric_sbcfw_setting_functions.php under includes re-sets the $new_match_zone_arr array everytime it iterates through shipping methods in the zone, therefore clearing the array everytime a shipping method is found under the zone.

    I changed the line to use array_push instead of setting a new array every time the loops comes through, therefore returning all instances of the shipping method, instead of resetting the array everytime it hits the loop.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Shipping Methods in one Zone’ is closed to new replies.