1. Home
  2. Dokan Extensions
  3. Dokan Subscription

Dokan Subscription

This add-on allows you to have sellers on your marketplace buy a subscription pack before they can start selling their products. You can define how many products they can sell with each subscription packs, how much it will cost, how long it will be valid, and how many times the billing will recycle. You can also create as many subscription packs as you want.

Buy a Subscription pack

How it works

This document describes how a seller can activate a desired pack and the admin role behind it.

  1. Admin goes through the settings
  2. Admin creates packages
  3. Vendor buys the package or Admin assigns the package
  4. Vendor is notified before package ends
  5. After subscription end, the products go into draft mode
  6. Why you should brush up products for non recurring packs

Admin – Subscription Settings

dokan-subscription-settings

Buy Subscription – Seller

To see the available subscription packs and buy one, seller must go to: Seller Dashboard → Subscription.

Please note that the seller may not buy a subscription pack along with any other product from the marketplace. Due to restrictions in payment gateway, the seller must only purchase the subscription pack at a time, and do other shopping in a separate cart at a later time. See the FAQ section for more information. Also, you cannot buy a subscription by bank, cheque or cash on delivery methods.

Activate Package – Admin

When a subscription pack is purchased, the admin has to activate it for the seller. For activating admin have to go to wp-admin → WooCommerce → Orders and approve the purchase order of the seller.

approve subscription

Assign Package – Admin

An admin can even manually assign a package to a seller. To do this admin must go to wp-admin → users and pick the user. Then at the bottom of that page you will find something like this.

assign subscription seller

Select the desired subscription pack from the drop down menu and hit Update User. The user will get the pack activated instantly.
NB. Only non-recurring packs can be added this way.

Confirmation – Seller

To check validity, limit of a package seller can simply go to Dashboard > Subscription, something like this will appear.

dokan subscription purchase success

Before they can purchase a subscription pack, you need to create one (or more). So let’s checkout how to create a subscription pack.

Subscription packs are extremely customizable. You can choose how many products a seller can publish under a subscription, how long until the subscription expires, whether or not the subscription will be recurring, and if yes, for how many billing cycles the subscription will recur.

Create a Subscription Product

Subscription packs are stored as regular products although they will not show up on your website to your customers. To create a subscription, simply go to WordPress dashboard → Products → Add Product.

create subscription pack

Important: you will have to do this from the WordPress dashboard (wp-admin, backend) of your site.

In the Product Title and Body, give your subscription pack a name and a brief description.

When done, scroll down to the Product Data and select “Dokan Subscription” from the drop-down menu, as shown in the screenshot below.

create-pack-2-valid

In the Regular Price field, enter the price of the subscription pack you’re about to create. Then in Number of Products field, type in the number of products the seller will be able to publish using this subscription.

Next you can select the validity of the subscription pack. By default, subscriptions will have a validity of 30 days. You can increase or decrease it by typing in a custom number of days you want this subscription pack to be valid for.

Recurring Payment – Billing Cycle

Alternatively, you can also choose this to be a recurring subscription. To do so, simply click the checkbox titled “Recurring Payment.”

Clicking on the Recurring Payment checkbox will reveal three new fields.

create-pack-2-cycle

First two will let you set the billing cycle for this subscription. In simpler words, this is “How long the subscription will be valid for before it is automatically renewed.” For example, if you set 3 months, it will mean the subscription will be valid for three months and then it will be automatically renewed.

Billing Cycle Stop

Billing Cycle Stop is whether you want the subscription to be continuously running or end after a certain number of cycles. By default it is set to Never, meaning the billing cycle will be recurring until the seller stops. However, since the subscription packs are highly customizable, you can choose to stop the recurring billing after a while.

create-pack-3-12months

In the example above, you can see we have set billing cycle for 1 month, which means the customer will be charged for 1 month, and the cycle will keep recurring 12 times. So this subscription pack will charge per month and will run for 12 months.

However, you can also set it like the following:

create-pack-3-1yr

There you see billing cycle has been set to 1 year, and billing cycle is set to stop after 1 time. That means the subscription pack will be valid for 1 year.

You can customize the subscription pack to your liking. As you can see the subscriptions are highly customizable.

Translation Text Domain

You have to rename the .mo file according to this format for translating: pluginname-languagecode_countrycode.mo
for this extension, just rename the .mo and .po file to the following –
dps-languagecode_countrycode.po/mo
For example, in case of French Language, the code will be- dps-languagecode-fr_FR.mo

FAQ

Here are some answers to the most frequently asked questions about Dokan Subscription add-on.

Q. Subscription pack disappears from the cart when purchasing.
A. Subscription pack needs to be purchased alone. The seller may not purchase a subscription pack and another product from your shop at the same time. In short, if you’re a seller, you need to buy a subscription pack, proceed to checkout with the cart, finish the transaction and then buy any other product you want to purchase.

Q. Unable to add new products.
A. Sellers need to purchase a subscription before they can add any new product to the marketplace. If your site is in development, you will need to disable Dokan Subscription settings from the settings. See an overview of Dokan Subscription settings here.

Q. Sellers can add products without purchasing a subscription pack.
A. Make sure to enable Dokan Subscription pack from wp-admin → Dokan → Settings → Product Subscription → Enable Product Subscription.

Q. Will deleting a published product count against my quota?
A. No. If your subscription pack allows you to publish 10 products, you can only publish 10 products. If you delete one or more products after publishing them, your quota will not be back. Even if you have 1 remaining product, and you delete an existing product, you will still have 1 remaining product. Deleting your published products will not increase your number of available quota.

Q. Where can I see the remaining number of products I can add?
A. The remaining number of products you can add will show up on your seller dashboard.

Q. What will happen to a seller’s published products when their subscription expires?
A. You can choose what happens to the published products after the seller’s subscription expires from the settings. Go to WordPress dashboad -> Dokan -> Settings -> Product Subscription -> Product Status and choose the status from the drop-down menu.

Q. When does the seller get to start adding products after buying a subscription pack?
A. As soon as the checkout is completed via PayPal, the seller will be automatically enabled to add products according to the pack to which they subscribed. If they choose bank transfer or other method, you can manually go to your WooCommerce Orders and complete their subscription purchase. However, this will not work for recurring subscription pack purchases.

Articles

Was this article helpful to you? Yes 8 No 3

How can we help?