Online shop shopping cart security

I’m programming an online shop with HTML + JavaScript.

I have noticed that I can manipulate the price and amount of items in the shopping cart in the Chrome web browser.

My concern is, that a hacker can manipulate the shopping cart and order the stuff.

How can I make it safe?
Is it safe just to run it on the clint site?

64 thoughts on “Online shop shopping cart security”