# Woocommerce integration with Discourse

**URL:** https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248
**Category:** WordPress
**Created:** [4월 2, 2019, 5:15오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248 "2019-04-02T17:15:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SarahL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahl/32/137114_2.png) [@SarahL](https://meta.discourse.org/u/SarahL)
#### Post date: [4월 2, 2019, 5:15오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/1 "2019-04-02T17:15:17Z")

</div>

Hello! Newbie Discourse user here. Really loving it so far.

I currently run a subscription service using WooCommerce Subscriptions, linked to a learning management platform via Zapier.

I would love for my members to automatically get access to a restricted forum. I’ve looked at the SSO plugin but it doesn’t seem immediately obvious it will do that.

Can anyone please suggest a way of achieving this, either via Zapier (I know there’s no direct integration but I saw some things can work via web hooks) or a plugin? Or will it need custom hackery?

Thank you!

---

<div class="post-metadata">

### Author: ![Corsterix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/corsterix/32/135849_2.png) [@Corsterix](https://meta.discourse.org/u/Corsterix)
#### Post date: [4월 2, 2019, 5:18오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/2 "2019-04-02T17:18:53Z")

</div>

This should do it.

[https://github.com/discourse/wp-discourse](https://github.com/discourse/wp-discourse)

### Single Sign On

The plugin comes with optional SSO functionality which lets you use your WordPress site as the Single Sign On provider for your Discourse forum.

---

<div class="post-metadata">

### Author: ![SarahL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahl/32/137114_2.png) [@SarahL](https://meta.discourse.org/u/SarahL)
#### Post date: [4월 2, 2019, 5:19오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/3 "2019-04-02T17:19:52Z")

</div>

Thank you! Will have a look 🙂

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 2, 2019, 5:33오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/4 "2019-04-02T17:33:37Z")

</div>

You’ll likely need to add some hooks to connect your WooCommerce subscriptions to Discourse groups. There are some topics with examples. If sticking code in a `functions.php` file isn’t in your wheelhouse you can post in #Marketplace with a budget.

---

<div class="post-metadata">

### Author: ![SarahL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahl/32/137114_2.png) [@SarahL](https://meta.discourse.org/u/SarahL)
#### Post date: [4월 2, 2019, 5:36오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/5 "2019-04-02T17:36:31Z")

</div>

Thanks. I can do sticking code in functions.php, and a bit of tinkering but I can’t necessarily do the writing fresh code. Have searched for woocommerce subscriptions but nothing’s coming up 😬

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 2, 2019, 5:39오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/6 "2019-04-02T17:39:25Z")

</div>

I’ve not seen anyone do WooCommerce subscriptions. Look in [WordPress - Discourse Meta](https://meta.discourse.org/c/support/wordpress) and you’ll find examples for things like MemberMouse and Paid memberships pro. It sounds like you should be able to find examples that will give you enough to go on.

Oh. check this [Manage group membership in Discourse with WP Discourse SSO](https://meta.discourse.org/t/managing-discourse-group-membership-with-wp-discourse/74724)

[Search results for 'wp-discourse #howto ' - Discourse Meta](https://meta.discourse.org/search?q=wp-discourse%20%23howto%20%20) is how to find that.

---

<div class="post-metadata">

### Author: ![SarahL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahl/32/137114_2.png) [@SarahL](https://meta.discourse.org/u/SarahL)
#### Post date: [4월 2, 2019, 5:40오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/7 "2019-04-02T17:40:54Z")

</div>

Hero! Thank you very much 🙂

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [4월 2, 2019, 5:44오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/8 "2019-04-02T17:44:11Z")

</div>

> [@SarahL](#):
>
> searched for woocommerce subscriptions

Search for _WordPress membership_ instead.

Here’s an example with WooMembership:

> [@WordPress Membership Integration (Private Forum) with Discourse](https://meta.discourse.org/t/wordpress-membership-integration-private-forum-with-discourse/91438):
>
> We’re in the midst of changing forums from BBPress to Discourse. We have a Membership based website on WordPress using WooMembership with 2 levels of member access (they all get the forums), except if they cancel their subscription/membership. I want to know if its possible with the current [WP Discourse](https://github.com/discourse/wp-discourse) plugin to ensure that ONLY paying members are allowed to enter the forum? If so, is everything done through the plugin? Thanks,

---

<div class="post-metadata">

### Author: ![SarahL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahl/32/137114_2.png) [@SarahL](https://meta.discourse.org/u/SarahL)
#### Post date: [4월 2, 2019, 5:45오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/9 "2019-04-02T17:45:10Z")

</div>

Perfect! Thank you 🙂

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [4월 2, 2019, 5:57오후 UTC](https://meta.discourse.org/t/woocommerce-integration-with-discourse/113248/10 "2019-04-02T17:57:33Z")

</div>

For using SSO with [WP Discourse](https://github.com/discourse/wp-discourse) and Woocommerce, you may need to add this plugin to your site: [GitHub - scossar/wp-discourse-woocommerce-support: Integrates the wp-discourse plugin with WooCommerce · GitHub](https://github.com/scossar/wp-discourse-woocommerce-support).

The plugin’s README explains what it’s doing. Instead of installing the wp-discourse-woocommerce-support plugin, you can copy the code from the README’s ‘Alternatives to installing the plugin’ section into your theme’s `functions.php` file.
