Hi! I work for a non-profit that gives away free STI testing kits to users every month. We use Webflow ecommerce to allow logged-in users to order our free products. We want to limit every user account to 1 test kit order per month to manage resources. Does anyone have any tips for limiting an account’s order frequency of a product?
Since that is not something that Webflow commerce supports, you need to look into ecommerce section of integrations in the Webflow University to find something that may meet your requirements.
Webflow’s ecom doesn’t have a concept of users or logins in the context of an order.
In fact I can’t think of a system that has the characteristics you need-
User accounts connected to e-commerce
The requirement to login before an order is placed
The ability to restrict the ordering by timeperiod per client ( by product? overall? )
I can think of a few paths to build this, and it could probably be done 100% Webflow and custom code but its a bit unorthodox.
Webflow E-Com
Webflow User Accounts + SA5, or Memberstack
In a purchase store the logged in userid or email in a hidden field
Use a back-end process to update a “date last purchased” on the user account in a custom field
In your website, only show the purchase button IF the date < 30 days in the past, otherwise “sorry, you can reorder in X days…”
I don’t know how Webflow E-Com handles free products, but the same overall process could be applied to most any e-com system that has an API or other purchase confirmation event that you can hook into.
Obviously this won’t prevent someone from just creating multiple account, so you may want a secondary process to screen for abuse… duplicate addresses or phone number on the orders, perhaps IP tracking…
Thank you so much Michael, this is really helpful! Might have to tell my client that a different platform is needed. Do you think there is a solution using cookies that works around the need for connecting user accounts to ecommerce at all?
Not reliably. Order one set from your PC, one from your phone, one from your tablet, one from your TV… 100 more if you use incognito mode or delete your cookies. Plus 2 partners living together might be deterred from both ordering from the same PC.
But if you’re looking for a very simplistic approach, it would save about 60% of the dev work some work and provide a modicum of hinderance.