2.10 - Product Templates

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I see that Product Templates have been added (Product.ProductTemplateId).
I'm not sure, though, if it has any value at this point, or just added to support future dev.??

If a product has multiple variants (e.g. Canon rebel in the demo store), and you (admin) select Template  'Single Product Variant' on the product, customer will get this error:
The model item passed into the dictionary is of type 'Nop.Web.Models.Catalog.ProductModel', but this dictionary requires a model item of type 'Nop.Web.Models.Catalog.ProductModel+ProductVariantModel'.
(bug?)

If a product has single variant, then choosing either template 'Single Product Variant'  or 'Variants in Grid' shows the same layout to customer.

(several of the demo products have Product.ProductTemplateId = 1 =  'Variants in Grid' , yet only the Rebel actually has variants)

Would you please provide some clarity on how/when Product Templates will be used?
12 years ago
New York wrote:
The model item passed into the dictionary is of type 'Nop.Web.Models.Catalog.ProductModel', but this dictionary requires a model item of type 'Nop.Web.Models.Catalog.ProductModel+ProductVariantModel'.
(bug?)

Thanks. It's really a bug that will be fixed in the near time


New York wrote:
Would you please provide some clarity on how/when Product Templates will be used?

They have some minor differences. Use 'Single Product Variant' when your product has only one product variant. Otherwise, use another one. Add this features allows use to implement some new custom product templates without modifying the core files.
12 years ago
Fixed. Have a look at the following topic https://www.nopcommerce.com/boards/t/11611/nopcommerce-210-critical-issue-fix-for-single-product-variant-template.aspx
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.