E-commerce foundations