'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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source