We have a shop running prestashop (let's call it 'app1') and in the same server we have another php+mysql app that plays as invoicing+stock-control system ->let's call this one 'app2'.
What we need is to develop a module for prestashop to keep stock updated in the databases of both apps (the prestashop/'app1' DB and the 'app2' DB). We don't want to modify prestashop's core files so that's why we want it to be a PS module.
So the module's job is to: whenever a product's stock-level gets modified in prestashop (for example, after an order confirmation or after an administrator manually edits the product's stock-level) we want the stock-level of app2 to get updated (so [url removed, login to view] = [url removed, login to view] +- app1.products.stock_diff).
And also would need the module to have a way in which the opposite update gets done (from app2 to app1), so that whenever a product's stock-level gets modified in app2, the stock-level of the same product is modified in app1 (prestashop). There should be a parameter in the module's settings that will let the user select the field by which the product is going to be matched against-to in app2. So in the module's settings there should be an option called 'App2 Product Reference Field' (a drop-down menu) that will let the user select one of prestashop's product references (like 'Reference', 'Supplier Reference', 'EAN13' or 'UPC').
Just to clarify: App2's source is very simple and straightforward and there are only two short php scripts in which product's stock-level is modified, so we wouldn't mind to modify this 2 scripts in app2 for it to work (because I can't imagine any other way to do it other than modifying those scripts). It would be a request although not to add mysql-queries directly into those scripts. Instead, cross-site event triggers should be added to those 2 scripts and the prestashop module should have an event listener listening for stock-level updates from app2 (or any other app in the future). So an event-call to update stock-levels that is requested from app2 to app1 should be done by doing something like this: <?php
file_get_contents('[url removed, login to view]+5');
and the response should be verified to make sure that the update was actually made and else write a little log with missed updates.
Plase make sure to say 'say no more' in any PM's to make sure you read everything
Décerné à :
'say no more' Hi, I am interested for the task of creating modules to sync stock in two apps .Please check my profile reviews for prestashop exp. Thanks
5 freelance ont fait une offre moyenne de 284 $ pour ce travail
HI i'm interest on you offer. I'm an expert on ecommerce/prestashop and php programming and I have experience with kind of your need.I can start as soon as possible. regards,