Add support for optional ecommerce require

Super simple change to make it easy to require ecommerce module