Sell Content Add-on
The Sell Content add-on allows you to sell access to the content field of posts / pages or custom post types. The add-on works by filtering out and replacing the content the users sees using appropriate templates. Post authors, administrators and those who have paid for the content will on the other hand see the content in it’s original and unaltered form.
Just the Content
The add-on only sells the content field. This means that the posts title, excerpt, featured image, comments or any other custom field / feature added to the post is not touched by the add-on.
This also means that if the “content” is stored or managed outside the content field, the add-on will not be able to sell it.
Supported Post Types
The add-on supports sales of any publicly visible post types. When you setup the add-on you get to select which post type you want to sell. You can sell posts, pages or custom post types. You can sell access to media files if they are presented on your website like all other content. Media files that are embedded in contents however can not be sold individually. Instead you would need to sell the content they are embedded in!
The first part of the add-on settings are related to the post types you want to sell along with the point types you want to accept as payment. In previous versions you needed to choose one particular point type you wanted to use while as of 1.7, you can select to accept multiple point types as payment.
First, we will need to select which post type(s) we want to sell access to. The add-on will list all publicly available post types that exists in your WordPress installation, and you need to tick each checkbox that you want to sell.
For each post type you select, you are then presented with a dropdown menu where you can further filter which items of each post type you want to sell. You have the following options:
Available options for each post type you select to sell:
|All "post type"||All items of this post type will be set for sale.|
|"post type" I manually select||Only items you manually select to set for sale are sold. When editing the post type you will see the "Sell This" metabox where you can enable sales of each particular item.|
|All "post type" except||All items of this post type is set for sale with the exception of a list of post IDs that you provide.|
|Only "post type"||Only items listed by ID are set for sale.|
|Only "post type" in Category||Only items in one or multiple categories are set for sale.|
|Only "post type" not in Category||Only items that are not in a particular category are set for sale.|
|Only "post type" with Tags||Only items with a particular set of tags are set for sale.|
|Only "post type" without Tags||Only items that do not have one of the tags you provide are set for sale.|
|Only "post type" with Format||Only items with a particular format are set for sale.|
|Only "post type" without Format||Only items that do not have a particular format is set for sale.|
You can nominate multiple taxonomies / formats by separating them with commas. Depending on which post type you select, you can select taxonomies that are connected with that post type. “Categories” and “Tags” are by default available for “Posts” only.
Once we have selected which posts we want to sell, we need to select what point type(s) we want to accept as payment. If you only have one point type, you will of course only be able to sell using that particular point type. If you have multiple point types however you can select which ones you want to use and setup the price, expiration and profit share for each point type individually.
Each point type also comes with a dedicated template for button labels and payment log entries. For designers, there is also the option to customize the button CSS classes for each point type if needed.
You must select “Enabled” as status for all point types you want to use. The status field was added to allow you to quickly disable a particular point type without disrupting sales of other point types you might be using. Otherwise if you only have one point type installed and select “Disabled” as status for your point type, you will disable all sales. This means, that users will see the “Insufficient Funds” template and will not be able to purchase any content while the content will still be hidden from them (unless they have paid of course).
The second part of your settings concerns your templates. These templates are what the add-on will show users instead of your actual content. All templates support HTML and you can embed links and images just like regular content. The add-on has 3 templates:
This template is shown to users that have not yet purchased the content but can afford to do so.
This template is shown to visitors of your website who are not logged in.
This template is shown to users that can not afford to pay for the content.
The Sell Content add-on supports purchase expirations, which means that once a certain number of hours have passed, the sale is voided and the user must pay again to access the content. Expirations do not mean the user receives their money back for the sale!
By default the Sell Content add-on will just charge the user for the content and the points charged are simply deleted from their account. You can however enable profit sharing, where a percentage of the sale is transferred to the content author. You can use any percentage value, positive or negative and even payout over 100% if you prefer.
Partial Content Sales
Besides selling access to the entire content, the Sell Content add-on also allows you to the option to sell parts of the content if you have selected “Manual Sales” in your settings.
This means that only content that are wrapped inside the mycred_sell_this shortcode is set for sale. The rest of the content is shown as is.
Besides the mycred_sell_this shortcode, the add-on, as of version 1.7, also comes with a few additional shortcodes:
mycred_sales_history – This shortcode will show a list of content that the user who views the shortcode has paid for.
mycred_content_sale_count – This new shortcode will returns the number of times a particular content has been purchased.
mycred_content_buyer_count – This new shortcode will return the number of unique users that have purchased a particular content.
mycred_content_buyer_avatars – This new shortcode will render the avatars of users who have purchased a particular content.