[Demo] Limit 1 per customer, with Shopify Flow adding the tag 購入済み

Sale price¥0

What this demo shows

With RuffRuff Order Limits, a logged-in customer can buy 1 of this product per order. Customers with the tag 購入済み cannot buy it.

When an order is created, Shopify Flow adds the tag 購入済み. The same tag is added when the order contains this product, [Demo] 50% off the first pre-order, or [Demo] One pre-order per customer.

[Demo] Limit 1 per customer, including past orders counts past orders with a cumulative quantity rule and does not use Shopify Flow. This product stops another purchase with the tag 購入済み that Flow adds.

How to try it

This order is ¥0 ($0). Nothing is shipped.

  1. If the tag 購入済み is already on the customer, open /pages/customer-tags, press リセット, and wait a few minutes.
  2. Log in at /account/login.
  3. Add 2 of this product to the cart and go to checkout.
  4. Change the quantity to 1 and complete checkout.
  5. Wait a moment, add this product to the cart again, and go to checkout.
  6. Go to checkout while logged out as well.

The tag 購入済み is also used by the two pre-order demos above. To try again, press リセット on the customer tag page and wait a few minutes.

What you should see

  • Logged in, without the tag 購入済み, quantity 1 → You can buy it.
  • Logged in, quantity 2 or more → You cannot buy it.
  • After the order, once the tag 購入済み is added → You cannot buy it. The tag can take a moment to appear.
  • Logged out → You cannot buy it.

How to set it up

In RuffRuff Order Limits, set the product quantity limit to a maximum of 1 per order. In Product-specific customer limits, require login, and block customers who have the tag 購入済み.

In Shopify Flow, when an order is created and it contains this product or either of the two pre-order demos above, add the tag 購入済み.

See the setup guide in the Help Center