I discovered a minor issue in the starterkit, when using other document types under the master product node.
In this case the variant dropdown also displays other document types in Tea Commerce Starter Kit 3.2.0.
I my case I have created a "TabPage" documenttype to let the shop owner create additional content in seperate tabs on product pages, e.g. a tab "Benefits". Other tabs like "Specifications", "Images" and "Downloads" I just create from properties on the master product node.
With these code lines in product/view.cshtml a get both nodes in variant dropdown:
so instead a modified variants a bit and get only the nodes of type Product in the dropdown.. not sure if it's the best way to write the code, but this works..
Not only Product doctypes in variants dropdown
I discovered a minor issue in the starterkit, when using other document types under the master product node.
In this case the variant dropdown also displays other document types in Tea Commerce Starter Kit 3.2.0.
I my case I have created a "TabPage" documenttype to let the shop owner create additional content in seperate tabs on product pages, e.g. a tab "Benefits". Other tabs like "Specifications", "Images" and "Downloads" I just create from properties on the master product node.
With these code lines in product/view.cshtml a get both nodes in variant dropdown:
so instead a modified variants a bit and get only the nodes of type Product in the dropdown.. not sure if it's the best way to write the code, but this works..
/Bjarne
Hi Bjarne
Thanks!
is working on a reply...