Our X3M WooToken plugin for WordPress/WooCommerce offers the option to set digital products, with users receiving a unique generated token/license key when purchased. The plugin was mainly developed to integrate with out X3M Website Report plugin to allow premium reports generation and inclusion of dofollow backlinks in the reports. The plugin can of course be easily repurposed for other integrations.
X3M WooToken
The plugin version of X3M WooToken is a simple plugin that integrates with WooCommerce to set new digital product types which generate and deliver an activation token or license key. These keys can be used to redeem services. Built to be used with X3M Website Report or X3M Web Directory, and allow purchasing premium service reports/premium listings using the WooCommerce ecosystem of payment integrations and customer management, the plugin can be used for other implementations as well with a little bit of coding.
The idea behind this integration started from the fact that backlinks are still a valuable resource for SEO. The X3M Website Report plugin can generate custom reports based on a set template. Similarly the X3M Web Directory allows users to submit listings in the web directory, article directory or business directory. A backlink to the domain is also included, but as per general settings is set to be “nofollow”. This limits the value of SEO for those users generating reports, but even with the attribute “nofollow” it will still work as an incentive to webmasters to generate reports (hence generate traffic and content on the website using the X3M Website Report or X3M Web Directory).
With the X3M WooToken there a simple integration that automates the flow of getting “dofollow” backlinks included in the report for those webmasters willing to pay. Follow below steps to get this system up and functional.
Prerequisites:
- your WordPress website
- X3M Website Report or the X3M Web Directory plugin installed and setup
- WooCommerce plugin installed and setup – you can get it in your WordPress admin > Plugins > Add Plugin > search for WooCommerce
- X3M WooToken plugin installed
We imagine you already have the WordPress website already and the X3M Website Report or X3M Web Directory plugin installed if you already got to this page. Next we move on with WooCommerce and WooToken setups.
WooCommerce Setup
Once you have installed WooCommerce in your WordPress website, follow their instructions into setting up the store. You will be required to fill different details about your store, set location, regions where you want to sell, currency and this sort of things. In their Settings page > Payments tab, make sure to set up a payment option as well (WooPayments, PayPal, Stripe etc…).
WooToken Setup
After WooCommerce was set up, we can move on installing and setting the X3M WooToken plugin. Download the plugin and install it using the WordPresss Plugins section and activate it. In WP Admin dashboard go to WooToken > Settings and make any changes if necessary, or leave the default data as is and hit Save.
WooCommerce Product Setup
Once WooCommerce store and WooToken were set up, go to Products section and Add new product. Add necessary info like product title, description, and in the Product Data Form select “Simple product” and select the “Virtual” checkbox. In the General tab set the price of the product (1 token) and also select the checkbox “Generate Token”. All these are presented in below screenshot:

Once the product was set up, hit Save.
WooCommerce Email Integration
There are 3 options to integrate the tokens in the WooCommerce email notifications. This way, customers will get their tokens by email when the order is completed (paid). Using WooCommerce system this way will automate the entire flow without any input from your end. The email integration should be done for the “Completed Order” email template, for the customer to receive the tokens only once payment is confirmed.
Method 1: Through WooCommerce Email Templates
- Go to WooCommerce > Settings > Emails
- Click on “Customer completed order” (or the email you want to customize)
- In the email content/template, add the shortcode:
<h3>Your Digital Tokens</h3>
<p>Thank you for your purchase! Here are your access tokens:</p>
[x3m_token_list show_product="yes"]
<p><strong>Important:</strong> Please save these tokens as they can only be used once.</p>
- Copy the WooCommerce email template to your theme: /wp-content/themes/your-theme/woocommerce/emails/customer-completed-order.php
- Add the shortcode in the template:
<?php
/**
* Customer completed order email
*/
// ... existing template code ...
// Add tokens section
echo '<div class="order-tokens">';
echo '<h3>' . __('Your Access Tokens', 'woocommerce') . '</h3>';
echo do_shortcode('[x3m_token_list show_product="yes" show_status="no"]');
echo '</div>';
// ... rest of template ...
?>
The plugin automatically adds tokens to order completion emails! You can configure this behavior:
- Go to WooCommerce > Settings > Emails
- Look for X3M WooToken settings (if available in admin)
- The tokens are automatically appended to order completion emails
Website Report Setup
Last step is to activate it in X3M Website Report plugin. For this in the WP Admin dashboard visit X3M Web Report > Settings > Select the “Enable Multiple Deep Links Publishing” checkbox & set the “Maximum Deep Links” and hit Save Settings.
This is all needed to start making money from your website SEO analyzer / value calculator. Visit the page where you have the Generate Report shortcode included and check the new WooToken functionality.
The same would need to be done for the X3M Web Directory plugin. For this in the WP Admin dashboard visit X3M Directory > Settings > Select “Enable Premium Listings” checkbox and hit Save Settings.
Once this service is activated, you can visit the Custom Fields page of the plugin and check the position of the Premium Token field in the submission form. You may change its position by dragging it up or down. Visit the page where you have the Submit Listing shortcode included and check the new WooToken premium functionality.