Skip to content

Instantly share code, notes, and snippets.

@welenofsky
Created August 28, 2023 16:02
Show Gist options
  • Save welenofsky/020061aceb76a2522c2027e033b14900 to your computer and use it in GitHub Desktop.
Save welenofsky/020061aceb76a2522c2027e033b14900 to your computer and use it in GitHub Desktop.
Shipping Restrictions
<?php
$shipping_restrictions = array(
'canada' => array(
'allowed_countries' => array('CA'),
),
'domestic-only' => array(
'allowed_countries' => array('US'),
),
'usa-canada' => array(
'allowed_countries' => array('US', 'CA'),
),
'international' => array(
'allowed_countries' => array('US', 'CA', 'GB', 'AU', 'NZ', 'AT', 'BE', 'FR', 'DE', 'IE', 'LU', 'NL', 'RO', 'ES', 'CL'),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment