Malin / gist:a0ec7c24c45f4ee5bf966e25109abac0
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
| 1 | // for easycut.es |
| 2 | |
| 3 | add_action('woocommerce_after_checkout_validation', 'restrict_shipping_counties_in_spain', 10, 2); |
| 4 | |
| 5 | function restrict_shipping_counties_in_spain($data, $errors) { |
| 6 | // List of restricted counties |
| 7 | $restricted_counties = array('CE', 'ML', 'GC', 'TF'); |
| 8 | |
| 9 | // Get the shipping country and state from the checkout data |
| 10 | $shipping_country = isset($data['shipping_country']) ? $data['shipping_country'] : ''; |
Malin / gist:7126af35be67495bb234d4b20e5219e4
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
| 1 | #!/bin/bash |
| 2 | # Removes the "You do not have a valid subscription for this server" popup message while logging in |
| 3 | # https://johnscs.com/remove-proxmox51-subscription-notice/ |
| 4 | # https://github.com/jmclaren7/proxmox/blob/main/disable-subscription-notice.sh |
| 5 | # https://www.reddit.com/r/Proxmox/comments/1cdmoq9/i_wont_pay_for_proxmox/ |
| 6 | # Manual steps: |
| 7 | # cd /usr/share/javascript/proxmox-widget-toolkit |
| 8 | # cp proxmoxlib.js proxmoxlib.js.bak |
| 9 | # nano proxmoxlib.js |
| 10 | # search for "function(orig_cmd) {" and add "orig_cmd();" and "return;" just after it |