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). By default, Miguel doesn’t change the status of orders or send emails (like in other connections); that is done by WooCommerce. You can turn both on in the plugin settings.
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 product code from Miguel, set on the format in the Code field, is inserted into
id(it must be the same as in Miguel — letter case does not matter, see Usage > Books > Letter case) - into
format, enter the resulting format (the options areepub,mobi,pdforaudio)
For example when you have a format with the code 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 book in Miguel’s administration, upload a format to it and give the format the same code.
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: