Consistency between commerce product and page
Hi folks,
i have a question regarding best practice for e-commerce product handling in AEM.
As an example we can take default implementation --> geometrix-outdoors. There we have data products stored in /etc/commerce/products directory and for each product an author should create a page and configure that page to show a specific product.
We have debates for the following questions:
#QUESTION1
(proposed by our manager) : product contains link to template and when user reaches the product in http://localhost:4502/etc/commerce/products/men/edmonton-parka - he will see the page based on template even the author has not created specific page in content folder.
Is it a correct architectural decision?
What impact has such solution on other parts of the system (caching, adobe analytics, page management (activate/deactivate) , ACL)?
#QUESTION2
If we follow the geometrix approach (1 product should have 1 page in content) . Imagine we have productA and a page for that product. If user will delete the product from /etc/commerce/products the page remains without data.
How should we handle such case? Is there some common approach for such situation?
Looking forward for your reply, thanks in advance
Yura.