Delivery & Payment Rules shows each customer only the shipping and payment methods that suit the order: its products, weight, total, address, customer and time.

Courier delivery for a heavy order, cash on delivery for a first-time buyer, pickup in a city where you have no shop: such orders end in a phone call or a cancellation, because the customer was offered a method you cannot provide.

With this plugin you write down your conditions as rules, and Shop-Script follows them in the checkout. It is made for stores with several delivery and payment methods, where not every method fits every order.

What you get

  • Hide or show only. A rule hides the selected methods or leaves only the selected ones.
  • 22 conditions. Cart, products, customer, address, time, storefront, currency, coupon and more.
  • Single rates. A shipping rule can concern only some rates of a method, by rate ID or name.
  • Payment by delivery. A payment rule can depend on the shipping method the customer has chosen.
  • Rule order and dates. Rules go from top to bottom, can have start and end dates and can stop the rules below.
  • Test rules. A test cart and address show what stays visible and which rule hid the rest.
  • Nothing left to choose. Show all methods or your own message, separately for shipping and payment.
  • Final check. The rules are checked once more when the order is created.

List of rules

After installation the Shop-Script main menu has a Delivery & payment rules section. The list shows for each rule what it does, when it works and its dates. You can switch a rule on or off right here, move it with the ↑ and ↓ buttons, edit or delete it. Rules whose end date has passed are marked “ended”.

A method hidden by any matching rule is not shown. In the screenshot a freight company is hidden for carts up to 15 kg, cash on delivery is not offered for orders over $300, and furniture goes by pickup or freight only.

Rules list: what each rule does, when it works and its dates

Rules list: what each rule does, when it works and its dates

Rule editor

Press Add rule. Enter a name that only you see, choose Shipping methods or Payment methods and an action: Hide the selected methods or Show only the selected methods. Then tick the methods; disabled ones are marked “turned off”.

In the example the rule “Courier on weekdays until 18:00” leaves only the city courier, Monday to Friday from 09:00 to 18:00. Conditions can be combined in two ways: All conditions must be met or At least one condition must be met.

  • Only some rates of this method: one rate ID or name per line, an asterisk stands for any text. Show rates loads the rates for the cart and address of the test form, and a click adds a rate.
  • Dates: the first and last day of the rule, both included.
  • If the rule has worked, skip all rules below it (of the same kind): for exceptions placed above general rules.

Editing a rule: methods, conditions and the time window

Editing a rule: methods, conditions and the time window

Without conditions the rule always works. This is handy for a promotion limited only by dates.

Conditions

Choose conditions in the Add a condition… list. Product conditions have three modes: Any item matches, All items match and No item matches. Lists such as countries or customer categories have the options “Is one of” and “Is not one of”.

  • Cart: total of products before or after discounts, number of items, weight, currency, coupon.
  • Products: categories with subcategories, sets, types, tags, features, single products, stock availability.
  • Customer: customer category, guest or logged-in customer, first order.
  • Address: country, region, city and ZIP code. A ZIP code can be exact (101000), a prefix (10*) or a range (101000-109999).
  • Place and time: storefront, weekday and time. A time window can pass midnight.
  • Chosen shipping method: for payment rules.

Testing before customers see it

The Test rules form is under the list. Find products by name, SKU code or ID, set quantities, storefront, customer, address, coupon, and date and time, then press Check. Leave the date empty to test the current moment.

The result lists shipping and payment methods with prices and the mark “Shown” or “Hidden by the rule …”. The Rules table says whether each rule worked and, if not, why: a condition was not met, the date is outside the period, the rule is off or another rule stopped it. Nothing is saved by a test.

Test result: the city courier is shown, other shipping methods are hidden by named rules

Test result: the city courier is shown, other shipping methods are hidden by named rules

If the rules hide everything

In the plugin settings, If rules hide every shipping method and If rules hide every payment method have two options: “Show all methods, as if there were no rules” (default) or “Show a message and do not accept the order”. The message is your own plain text; an empty field gives the standard one.

The same page has the switch Apply rules in checkout, the Time zone of rules, and two optional checks that are off by default: Payment after the order for the payment link page and Check orders created in the backend.

How to start

  1. Install the plugin and open Delivery & payment rules in the Shop-Script main menu.
  2. Press Add rule, choose Shipping methods or Payment methods, an action and the methods.
  3. Add conditions and, if needed, dates, then press Save.
  4. Put the rules in the right order with ↑ and ↓.
  5. Fill in Test rules, press Check and compare the result with what you expect.
  6. In the plugin settings choose what happens if the rules hide every method.

Good to know

  • Address conditions, “Is not one of” included, do not match until the customer fills in that field.
  • The last check at order creation needs the standard “Create” workflow action. If your store has its own class for it, rules still work in the checkout.
  • Cart weight is taken from the “weight” feature; products without it count as zero. Cart total does not include shipping.
  • In a time window the end minute is not included: “until 18:00” stops at 18:00.
  • For guests a first order is recognised by email.
  • A rule can have up to 50 conditions. The test uses the main SKU of a product.
  • The plugin does not change delivery prices and does not add methods of its own.

Questions and answers

Do I have to edit the theme?
No. Rules are applied on the server, in the one-page checkout and in the multi-step checkout.

Can a customer order a hidden method with a hand-made request?
No, the rules are checked again when the order is created, and an unavailable method is refused with a message.

Who can manage the rules?
Shop administrators, users with the right to change settings, and users with the right “Can manage delivery and payment rules”.

Is an order made by a manager limited too?
Only if you turn on Check orders created in the backend. It concerns new orders.

How do I find out why a method is missing?
Repeat the order in Test rules. The result names the rule that hid the method, and also notes when a method does not deliver to the address or the payment is turned off for that shipping in the store settings.

Requirements and support

The plugin is made for Shop-Script. Products with fractional quantities and stock units are supported. It works without cron. The interface is in English and Russian. Uninstalling the plugin deletes its rules table.

What you get

  • Hide shipping and payment methods, or show only selected ones
  • 22 conditions: cart, products, customer, address, time, coupon
  • Rules for single rates of a shipping method
  • Payment rules by the chosen shipping method
  • Rule order, dates and “skip the rules below”
  • ZIP codes: exact, prefix or range
  • Test rules: what is shown and which rule hid the rest
  • Your own message when nothing is left to choose
  • Rules checked again when the order is created

Specifications

PlatformWebasyst + Shop-Script 10 or newer (tested on 12)
PHP7.4 – 8.5
Interface languagesEnglish, Russian
PackageShop-Script plugin, .tar.gz
Licenceone store

Good to know

How do I get Delivery & Payment Rules for Webasyst Shop-Script after paying?

The download and your licence key unlock in your account as soon as the payment is confirmed. There is nothing to wait for.

Is this a subscription?

No. The price is paid once. Fixes and compatibility updates for the version you bought are included.

What does it work with?

Delivery & Payment Rules for Webasyst Shop-Script works with Webasyst, Shop-Script 10+, PHP 7.4–8.5. The current version is 1.0.0. If your setup is unusual, ask before you buy and we will tell you plainly whether it fits.

How can I pay?

Checkout is through PayPal, which also takes debit and credit cards. Buying from India? Switch the currency to INR at the foot of the page to pay by UPI.

What if I get stuck installing it?

Installation support is included. Open a ticket from your account and the engineer who wrote it will help you get it running.

Questions before you buy?

Ask about compatibility or licensing. Need it to do something it doesn't? We build custom versions for a fixed quote.

  • Instant downloadFiles and licence key unlock when payment lands
  • One-time priceNo subscription unless the page says so
  • Free updatesFixes and compatibility updates for your version
  • Support from the authorTickets go to the engineer who wrote it
Coming soon UPI QR + Auto-Confirm for Shop-Script
SoftwareWebasystShop-Script 8+

UPI QR + Auto-Confirm for Shop-Script

Dynamic UPI QR at checkout, order number in the payment note, and automatic confirmation with UPI Payment Watch.

Get notified at launch View
ЮKassa для Webasyst Shop-Script
SoftwareWebasystShop-Script 8+

ЮKassa для Webasyst Shop-Script

Карты, СБП, SberPay, T-Pay и ЮMoney через ЮKassa: покупатель выбирает способ прямо на сайте, чеки 54-ФЗ и возвраты из заказа.

$15.00
View
$39.99
Delivery & Payment Rules fo…