Forum

Thread tagged as: Suggestions, Shop

Deselect all shipping zones button

I have recently been going back over a shop I built and while re-doing shipping zones, I found the lack of abaility to de-select all shipping zones was quiite problematic - unless I am missing this - you have to manually go through and untick them one by one. The reason I needed to do this was to setup a UK only method and then a rest of the world option.

Mathew Doidge

Mathew Doidge 2 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean in the control panel?

Drew McLellan said:

Do you mean in the control panel?

Yes, in the control panel

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

While this is not ideal (and definitely not something to let editors handle), you can use Javascript in the browser console on the zones page to uncheck all the countries checkboxes:

var inputs = document.getElementsByTagName('input'); 
for(i=0; i<inputs.length; i++) {
    if(inputs[i].id.startsWith('perch_countries')) {
        inputs[i].checked = false;
    }
}