Create two type of templates


#1

Hello,

I want to run two templates in Reaction Commerce . One for normal type of product and another for subscription type of product.

Please tell me, is it possible or not?

If yes then how can i achieve it.

Thanks


#2
  1. Create a component in react. eg: customproduct.js
  2. Create two type of templates like products.html and subscription_product.html
  3. In customproduct.js load product template accordingly based on your condition
    eg: <Blaze template=“products”/>
    <Blaze template=“subscription_product”/>