โฌ†๏ธ Top ๐Ÿ“ฆ Product ร— Method ๐Ÿ’ฐ Country ร— Price ๐Ÿ’ณ Country ร— Payment ๐ŸŒ Country Meta ๐Ÿ“ Files

๐Ÿ—‚๏ธ Configuration Matrix Viewer

4 dimensions, fully extensible via JSON config files. No code changes needed to add products, countries, methods, or payment options.

๐Ÿ“ 4 Configurable Dimensions:
  1. Product Category (5 types: standard/hazmat/oversized/fragile/temperature) โ†’ determines which shipping methods are available
  2. Country (12 countries + 2 sanctioned) โ†’ determines currency, duties, payment methods, holidays
  3. Shipping Method (9 methods: USPS/DHL/Air/Sea/Hazmat/LTL/Pickup) โ†’ determines price tiers
  4. Payment Method (7 types: T/T/PayPal/Stripe/WesternUnion/Alipay/WeChat/Wise) โ†’ determines fees & settlement

Matrix resolution flow:

  1. SKU โ†’ Category (auto-detect or SKU list)
  2. Category โ†’ Available methods (e.g. hazmat excludes USPS)
  3. Country + Method โ†’ Price (default or country override)
  4. Country โ†’ Available payment methods
  5. Country โ†’ Currency, duties, holidays, notes
  

๐Ÿ“ฆ Matrix 1: Product Category ร— Shipping Method

Which shipping methods are available for which product type.

Available
Not available (e.g. hazmat cannot use USPS, oversized cannot use DHL Express)
Product Category ๐Ÿ“ฎ USPS First Class๐Ÿ“ฎ USPS Priorityโœˆ๏ธ DHL Expressโœˆ๏ธ DHL / FedEx๐Ÿ›ซ Air Freight๐Ÿšข Sea Freightโš ๏ธ Hazmat Specialized Courier๐Ÿš› LTL Freight๐Ÿช Local Pickup (Yiwu)
๐Ÿ“ฆ Standard Products
Regular industrial parts, no special handling
โœ“โœ“โœ“โœ“โœ“โœ“โœ—โœ—โœ—
โš ๏ธ Hazardous Materials
Batteries, chemicals, magnets - requires special declaration
โœ—โœ—โœ“โœ“โœ“โœ—โœ“โœ—โœ—
๐Ÿ“ Oversized Items
Large dimensions or weight, requires freight
โœ—โœ—โœ—โœ—โœ“โœ“โœ—โœ“โœ—
๐Ÿ” Fragile Items
Glass, ceramic, precision instruments
โœ—โœ—โœ“โœ“โœ“โœ“โœ—โœ—โœ—
๐ŸŒก๏ธ Temperature Sensitive
Adhesives, sealants, lubricants
โœ—โœ—โœ“โœ“โœ—โœ—โœ—โœ—โœ—

๐Ÿ’ฐ Matrix 2: Country ร— Shipping Method (Price)

How much shipping costs for each country ร— method combination. default = no country-specific override.

Has country-specific rate
Uses default rate
Limited (note only)
Not available / sanctioned
Country๐Ÿ“ฎ
USPS First Class
๐Ÿ“ฎ
USPS Priority
โœˆ๏ธ
DHL Express
โœˆ๏ธ
DHL / FedEx
๐Ÿ›ซ
Air Freight
๐Ÿšข
Sea Freight
โš ๏ธ
Hazmat Specialized Courier
๐Ÿš›
LTL Freight
๐Ÿช
Local Pickup (Yiwu)
AUdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
BRdefault
$$5.0
default
$$10.0
$25.0 / $45.0 / $75.0default
$$40.0
$150.0default
$$?
N/AN/Adefault
$$0.0
CAdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
CNdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
DEdefault
$$5.0
default
$$10.0
$14.0 / $24.0 / $38.0default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
GBdefault
$$5.0
default
$$10.0
$12.0 / $22.0default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
INdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
JPdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
MXdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0
RUdefault
$$5.0
default
$$10.0
Limited service - prefer air freightdefault
$$40.0
$80.0 / $150.0default
$$?
N/AN/Adefault
$$0.0
USdefault
$$5.0
default
$$10.0
default
$$15.0 / $25.0
default
$$40.0
default
$$60.0 / $100.0
default
$$?
N/AN/Adefault
$$0.0

๐Ÿ’ณ Matrix 3: Country ร— Payment Method

Which payment methods are accepted in which country. ORANGE = default for that country.

Available
Not available (e.g. PayPal not in Russia, Stripe not in Brazil)
Country๐Ÿฆ
T/T (Wire Transfer)
๐Ÿ…ฟ๏ธ
PayPal
๐Ÿ’ณ
Credit Card (Stripe)
๐Ÿ’ธ
Western Union
๐Ÿœ
ๆ”ฏไป˜ๅฎ
๐Ÿ’ฌ
ๅพฎไฟกๆ”ฏไป˜
๐ŸŒ
Wise
AU
stripe
โœ“โœ“โœ“โœ—โœ—โœ—โœ—
BR
tt
Stripe not available for BR. T/T or WU preferred.
โœ“โœ“โœ—โœ“โœ—โœ—โœ—
CA
stripe
โœ“โœ“โœ“โœ—โœ—โœ—โœ—
CN
alipay
ๅ›ฝๅ†…็”จๆ”ฏไป˜ๅฎ/ๅพฎไฟกใ€‚่ทจๅขƒ็”จ T/Tใ€‚
โœ“โœ—โœ—โœ—โœ“โœ“โœ—
DE
stripe
SEPA via Wise cost-effective for large orders.
โœ“โœ“โœ“โœ—โœ—โœ—โœ“
GB
stripe
โœ“โœ“โœ“โœ—โœ—โœ—โœ“
IN
tt
For >$5000, T/T preferred due to Stripe limits.
โœ“โœ“โœ“โœ—โœ—โœ—โœ“
IR
Cannot accept payment - sanctions.
โœ—โœ—โœ—โœ—โœ—โœ—โœ—
JP
stripe
โœ“โœ“โœ“โœ—โœ—โœ—โœ—
KP
Cannot accept payment - sanctions.
โœ—โœ—โœ—โœ—โœ—โœ—โœ—
MX
tt
Western Union for cash payment if needed.
โœ“โœ“โœ“โœ“โœ—โœ—โœ—
RU
tt
PayPal/Stripe NOT available. Western Union popular.
โœ“โœ—โœ—โœ“โœ—โœ—โœ—
US
stripe
Credit card via Stripe is most popular.
โœ“โœ“โœ“โœ—โœ—โœ—โœ“

๐ŸŒ Matrix 4: Country Meta (Currency / Duties / Holidays)

CountryCurrencyDutiesHolidays
AU AUD GST 10% included (DDP) Dec 25-26, Jan 1
BR BRL ICMS 18% included (DDP) Dec 25, Jan 1, Feb 25
CA CAD GST/HST 5-15% included (DDP) Dec 25, Jan 1
CN CNY ๅ›ฝๅ†… - ๆ— ๅ…ณ็จŽ ๆ˜ฅ่Š‚, ๅไธ€
DE EUR VAT 19% included (DDP) Dec 25-26, Jan 1
GB GBP VAT 20% included (DDP) Dec 25-26, Jan 1
IN INR GST 18% included (DDP) Oct 2, Dec 25
JP JPY ๆถˆ่ฒป็จŽ 10% included (DDP) Dec 29 - Jan 3
MX MXN IVA 16% included (DDP) Dec 25, Jan 1
RU RUB VAT 20% included (DDP) Jan 1-8
US USD DDP โ€” no extra at delivery Nov 28, Dec 25, Jan 1

๐Ÿ“ Config Files

config/
โ”œโ”€โ”€ shipping/
โ”‚ โ”œโ”€โ”€ product_categories.yaml / .json   # 5 product categories
โ”‚ โ”œโ”€โ”€ methods.yaml / .json              # 9 shipping methods
โ”‚ โ”œโ”€โ”€ rates.yaml / .json                   # country ร— method โ†’ price
โ”‚ โ””โ”€โ”€ notes.yaml / .json                    # country ร— method โ†’ description
โ””โ”€โ”€ payment/
โ”œโ”€โ”€ methods.yaml / .json              # 7 payment methods
โ””โ”€โ”€ by_country.yaml / .json          # country โ†’ available methods

YAML = human-editable source of truth. JSON = machine-readable runtime. Keep them in sync (or use only JSON).

โœ… How to Extend (no code changes):