Skip to main content

Usage

In order for Miguel to work, you need to create products in the e-shop, create titles in Miguel, and upload files to them (files are uploaded in Miguel's administration and stored in Miguel's repository, files are not uploaded to the e-shop). Miguel doesn't do anything extra in this case, it doesn’t change the status of orders or sends emails (like in other connections). That is done by WooCommerce.

Products

After creating a product in WooCommerce for an e-book or audiobook, you need to check Download and it is also advisable to check Virtual.

Pairing products in WooCommerce and in Miguel is done using a shortcode in the URL file (see the following image).

The shortcode is in the format [miguel id="" format=""].

  • the book identifier from Miguel is inserted into id (it can be any text but it must be the same as in Miguel)
  • into format, enter the resulting format (the options are epub, mobi, pdf or audio)

For example when you have book with ID: 102/EBOOK and want to provide PDF format shortcode would look like this:

[miguel id="102/EBOOK" format="pdf"]

To ensure it works properly, you need to create a title in Miguel’s administration with the same identifier and upload a file to it.

The customer will then be able to download the books from the paid order detail on the e-shop, which will look something like this: