Add support for optional ecommerce require