Mattbylett's avatar

Multi-vendor Ecommerce - Guidance Needed

Hi, I'm just new here - learning Laravel having come from a wordpress background.

I'm creating an api for managing a multi-vendor platform and want to do things like keep stock levels up to date, send orders to specific suppliers etc

I've installed voyager for the back-end and I'm currently reading products from one of the suppliers from a woocomerce rest API connection.

My questions now are:

What is the best way for me to react to this data being read in?

Should I save it to the database so I have a check in place (or is that unnecessary step)?

Would I use events and listeners to respond to changes in stock levels or orders being placed?

Or am I better using a console style symphony set up for the whole process?

As I say - Im just new to this so would have to learn whichever approach is best - my hope is that you can point me in the right direction to maximise learning an minimise wasted time.

Thanks in advance for any suggestions

Matt

0 likes
5 replies
jlrdw's avatar

When I wrote accounting and bookkeeping for a non profit, my first step was consulting a CPA.

So, step 1, find out what record keeping is necessary. Not from an answer here, but only a CPA.

Should I save it to the database so I have a check in place (or is that unnecessary step)?

Of course you will have to store sales, income, expenses, any data a business has to have.

As far as interaction, is it json.

Mattbylett's avatar

This is more stock management than accounting... The store I am working with already has the accounting package and all that stuff taken care of.

What I'm looking to do here is help them to sell products online and then pass that information back to the Accounting package.

My store has Many suppliers & those suppliers have many products which they will provide me with information we can use to sell those products without needing to stock them - Like a drop ship model..

Now this information comes in different forms - some have a csv file that must be read from a url, others connect to an FTP and some have APIs...

The first thing I want to do, is connect to the service - read in the stock level and write that stock level to my web store so I am always up to date with how many I can sell.

When I read in this information (in whatever form) I'm thinking the first thing I should do is save that to my Database and then perform updates on my website from that database...

Is that correct or is there a better way to do it?

Mattbylett's avatar

Sorry forgot to reference The response is an array of json objects - states StdClass

jlrdw's avatar
jlrdw
Best Answer
Level 75

Well, you should probably automate the updating stock levels.

If new to laravel,

  • Lookup jobs, events, etc in the docs
  • View any videos on these subjects.
Mattbylett's avatar

Perfect thanks Jldrw - that's what I wanted to know ... I suspected it would be events but wanted to check instead of going down the wrong rabbit hole :)

Appreciate your guidance thanks

Please or to participate in this conversation.