How to create shipping address-based conditional payments rule
This rule allows you to conditionally enable or disable payment methods based on specific shipping address details provided by the customer during checkout.
Steps to Configure a Shipping Address-Based Rule:
- Set Conditions:
- Available Shipping Address Conditions:
- First Name: Apply rules based on the customer's first name (e.g., "John").
- Last Name: Apply rules based on the customer's last name (e.g., "Deo").
- Company: Offer corporate or company-specific payment methods (e.g., "Dotstore").
- Address/Address 2: Apply rules for specific shipping address patterns.
- Country: Restrict or allow payments based on the customerโs shipping country (e.g., "USA").
- City: Adjust payment methods for customers from specific cities (e.g., "California").
Postcode: Tailor payment options based on postal codes (e.g., "00040").
- Create a new rule and choose one or more shipping address fields (e.g., country, city, or email) as conditions.
- Specify the values or patterns to match for the selected fields.
- Available Shipping Address Conditions:
- Configure Actions:
Select whether to enable or disable specific payment methods based on the conditions.
- Save and Test:
Save the rule and test it to confirm the settings are applied correctly at checkout.
Note: When the "Ship to a different address?" option is unchecked, billing address fields are treated as shipping fields. Ensure conditions reflect this behavior for accurate configurations.
๐ Example Use Case #1: Restrict COD for International Customers
Hide the "Cash on Delivery" option for customers whose shipping country is not "USA."
๐ Example Use Case #2: Offer Net Banking for Specific Companies
Enable "Net Banking" only for customers shipping to a particular company.
๐ Example Use Case #3: Apply Special Payment Options for Specific Postal Codes
Enable "Bank Transfer" for customers shipping from postcodes with "12345".