Website communication with Arduino

Hello
I am making this small webshop in Wordpress and i had the idea that I wanted the webshop to communicate with an Arduino, so that everytime someone buys lets say 3 of item A and 2 of Item B, 3 green lights will turn on and 2 red lights will turn on, indicating that someone has just bought these things. Everytime someone buys something from my store i will get an email with details on. I was wondering if i could gather the information somehow in the mail, to use with the arduino, or should i make the communication directly with the website?
Any help is deeply appreciated!
EDIT:

  • I have a ethernetshield, which i quess is the right thing to use here.
  • My arduino "skill level": 3/5.

I was wondering if i could gather the information somehow in the mail

I wonder that, too. I also wonder what that has to do with the Arduino.

to use with the arduino

How are you going to get the data to the Arduino? If it, as you later suggest, wearing an Ethernet shield and is running server code, than you could, in the store app, make a GET request of the Arduino, to have it turn some LEDs on.

or should i make the communication directly with the website?

That question makes no sense. It's like talking in the forest. If no one is listening, communication is not happening.

You can't communicate with a web site. You can communicate with a server. That server may return data that a browser renders that gives the browser user the illusion that they are looking at a "web site". But that is just an illusion. They are looking at data. You can't communicate with data. You communicate with something that has data or that needs data.

If you can write an Arduino program that make a request to your webshop and gather the neccessary data you can have any coloured light that you fancy.

It would be very much easier to that with a PC or a RaspberryPi, or even a Yun.

...R

This is the exact sort of thing for which the ESP8266 is designed - it does not even need an Arduino!