Integration with LitRes service

Flexible integration with the book marketplace. Create your own bookstore..
Please enter a valid addres(es) of the shop where you are going to use the add-on.


Integrate with the LitRes service add-on

The add-on allows you to set up integration with the LitRes bookstore. Information is requested from the service about genres, authors, and books. And the add-on sends information about payments to the library, and after receiving an answer to which, it can change the status of the order.

The process of obtaining information can be automated by adding queries to the cgop schedule.

Integration is carried out by the second scheme from the provided by LitRes when the online store receives only information about the books and the files themselves are stored and given for downloading from the platform of the library itself.


No posts found

Write a review



After the add-on is installed, in the add-on settings on the Settings → Connection tab you should specify the data for work received from the Litres service or check the Test mode to check the work of the add-on

Next, you need to create a category for books and characteristics for products in this category. They have certain requirements (described in more detail in the settings)

After that, for the initial synchronization you need to run the script once at [domain_site]/admin.php?dispatch=ms_litres_integration.get_genres_list to get the list of genres

After executing it, let's run the script
[domain_site]/admin.php?dispatch=ms_litres_integration.get_fresh_book&from=2013-01-01&days=1  to get books

For automatic synchronization in the future, we add to cron running the script [domain_site]/admin.php?dispatch=ms_litres_integration.get_genres_list once every 14 days. And the [domain_site]/admin.php?dispatch=ms_litres_integration.get_fresh_book&minutes=15 script every 15 minutes.

After that, we will choose the order status, at the occurrence of which we will notify about the completion of the purchase to the Litres side. Go to Administration → Statuses → Order Statuses and select the desired status

And in his settings check the box Send request to LitRes for sale

And in the settings of the add-on itself, let's select the status to which the order will go if it is rejected by Litres


v1.0.1 from 18.07.2022
[*] Standardization of add-on code

v1.0.0 from 10.11.2021
[+] First edition


  • English
  • Русский