bobdonkey Posted June 1, 2015 Share Posted June 1, 2015 Hi allI have written a routine using MySql and PHP to download and import product lists from my suppliers. It all works fine, and is basically putting items directly into the inventory via transform/staging tables, and populating image_index and category_index tables. It is pretty fast, takes a minute or so to import about 20000 products, I dont want it to take much longer.My question is, should I have done it this way, or was there a better way using hooks or builtin Cubecart features and functions? I have basically done it all from scratch.Finally, how can I turn the code that I have written into a plugin? At the moment I just put the php files on my server and run using cron.Thanks Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 4, 2015 Share Posted June 4, 2015 My question is, should I have done it this way, or was there a better way using hooks or builtin Cubecart features and functions? I have basically done it all from scratch.Finally, how can I turn the code that I have written into a plugin? At the moment I just put the php files on my server and run using cron.We have written quite a few similar systems and always write them the same way - what is the benefit of trying to turn it into a plugin unless you are looking to make it into a generalised solution that could be used by different people - that will be a whole different and more complicated system entirelyIan Quote Link to comment Share on other sites More sharing options...
bobdonkey Posted June 12, 2015 Author Share Posted June 12, 2015 Hi Havenswift, sorry didn't see this reply until now.No I don't need to turn it into a plugin, but it may be useful for others to do so one day.I might start with a small plugin with some basic functionality and see how it goes.Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.