Russian  English  All projects

Fix and finalize the synchronization of products with the VK group



Description of Online Store. Now the server is configured to upload products to the VK group using their API and our CronJob. By default, all active products are unloaded and synchronized. Also, goods are unloaded into groups (collections), if the corresponding checkbox is installed in the store admin panel.


When synchronizing at the server level (1 time per day), an error appears and it (synchronization) falls.


API VK
https://dev.vk.com/api/market/getting-started


https://dev.vk.com/method


https://dev.vk.com/method/market.addAlbum


Tasks


Now, when deleting an automatically created album (from the admin panel*) by hand (through the VK group itself), the synchronization falls with an error



Not all products are unloaded into the created VK group. Perform assignment updates as a separate method (only changed items with a status of "On Sale" are added/removed).



All unloaded goods are set by default to the "Real Estate" category. Fix to "Wardrobe".



Improve synchronization with VK in such a way that when deleting an album through a group, with a checkbox installed in the admin panel: the group, the composition of the goods and its images are uploaded to VK again.



Add our tag to the links of the goods that are uploaded to the goods in VK
Result
As a result, the synchronization of goods should work correctly (without errors), taking into account the described logic improvements. When making changes to the synchronization setting, for example, a checkbox is installed on the collection or any changes are made to it, the changes made must be synchronized with VK. Conditions Refinement will need to be done in a new branch from the master code, in the Gitea service, for subsequent code review.
I will send all the additional information to those who are ready to take on this small revision.
In case of successful solution of this problem, I am ready to offer other improvements.
23.11.2022 13:58



 Answers freelancers