Module Integration with the Service LitRes
The module allows you to integrate with the LitRes bookstore. The service provides information about genres, authors, and books. In the library, the module provides information about books, including quotes, which can help you change the status of an order.
During the process of receiving information, it can automatically add requests to cron scheduling.
Integration is carried out in the same way as with the previous LitRes versions, when the internet-magazine receives only information about books, and files are stored and accessed for reading with the help of the same library platform.
- Store Builder
- Store Builder Ultimate
- Multi-Vendor
- Multi-Vendor Plus
- Multi-Vendor Ultimate
- Owners
- English
- Русский
- 4.17.X
- 4.16.X
- 4.15.X
- 4.14.X
- 4.13.X
- 4.12.X
Setting
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
attachmentПрикрепить файлы
v1.0.1 from 18.07.2022
[*] Standardization of add-on code
v1.0.0 from 10.11.2021
[+] First edition
Here you can share your opinion and evaluate our work.
Your feedback helps us become better and offer you even better service.