Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Ian Mackenzie
Ian Mackenzie
11,062 Points

E-Commerce Best Practices

  1. Should the blog be separate to the commerce site? (/blogname)
  2. Should the shopping cart be on a subdomain?
  3. What other best practices should be implemented?

4 Answers

Ricky Catron
Ricky Catron
13,023 Points

This feels like it would be very client specific.

I would put the blog on the same site as the commerce if the commerce was smaller, Local Store or such, and on a separate site of it was large, Walmart.

I would keep the shopping cart on the same domain if possible. Some users tend to freak out if they notice they are on a "different site".

Get a SSL certificate(HTTPS). This is mandatory for customer safety and happiness.

Process as little of the e-commerce as possible unless you are 100% sure you know what your doing. Let a pre-built solution handle the heavy lifting.

Protect your customers above all else. They will tolerate a "ehh" design but if you get their credit card stolen.....

Above all be careful, avoid risk, and have fun with it!

I have built one eCommerce website before and I learned a lot!

Goodluck! --Ricky

Ian Mackenzie
Ian Mackenzie
11,062 Points

Thanks Ricky, good points.

  1. No, for SEO reasons the blog should be a subdirectory of the domain (e.g. https://mydomain.com/blog)

  2. No, for SEO reasons the cart should stay on the domain.

  3. There are quite a few best practices to be followed, but they fall into one of three areas and there is a little voodoo/science to each of them: a. Technical Performance (e.g. increasing page load times) b. Sales Performance (e.g. improving sales conversion) c. SEO (e.g. improving page rank).

Ian Mackenzie
Ian Mackenzie
11,062 Points

Thanks Chris,

Categorising these into major topics is very helpful.

A blog on a subdomain is a more neutral approach for a larger business. It adds some extra authority to the domain, but not as much as on the root of the domain. Here's a decent article on that.

Ian Mackenzie
Ian Mackenzie
11,062 Points

Thanks Dustin, I'll read that article.