• Resolved tuomvii

    (@tuomvii)


    Hi!

    My client needs an e-commerce store where customers give a coupon code in the home/landing page to an input field and the site redirects the customer to the right product category that this certain coupon code gives the access to.

    So first the input field should recognize if this coupon code actually exists and then check the corresponding product category that the coupon code is assigned to and then redirect the user to that one.

    The customer shouldn’t have any other way to access the product categories. The coupon code should also be unique.

    There are only three categories: products that cost 20 euros, 40 euros and 50 euros. The user can now select one product and buy it for free from that category.

    I used the word coupon here but I guess it can be anything else if any other implementation would solve this.

    You have any suggestions how to do this with WooCommerce? I guess Woo can’t do this natively and the site would need a plugin for this? Any ideas on that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello!

    Thanks for contacting us for suggestions on how to restrict users to specific categories with a coupon code. This functionality is not possible without some heavy customization. Normally, restricting access to site pages/posts/products requires a plugin like WooCommerce Memberships to accomplish. That (and every other similar product) manages this by setting the restrictions at the User Role. This means the user role would need to be known prior to any coupon code that is added to the store.

    You can learn more about how our plugin does this in the documentation:

    https://docs.woocommerce.com/document/woocommerce-memberships-restrict-content/

    As for coupons, those are only utilized in the Checkout page, to reduce costs during the purchase process. There are specialized coupon extensions that can be purchased, but I recommend learning how the core options work first. Here is our documentation on that as well:

    https://docs.woocommerce.com/document/coupon-management/

    I hope this helps! Please let me know if you have any questions about this. Take care!

    Hi,

    We haven’t heard from you on this. I am going to mark this issue as <b>Resolved</b> at this time. If you have more on this or anything else, feel free to open a new forum post.

    Take care!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to: customers can only access product categories with a unique coupon.’ is closed to new replies.