New Product Template and CSS

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,

I am trying to apply a second style sheet to the product page depending on the product type. The only solution I can think of is to create new product template with the style sheet and apply that template to the relavent products. Is their any alternative solution to do this, or is this the correct way to approach this?

I have started down this method by creating a copy of ProductTemplate.Simple and renaming it directly in the live website but it return a error:

The view 'ProductTemplate.ImageFullWidth' or its master was not found or no view engine supports the searched locations. The following locations were searched:

As I understood, Razor cshtml files can be edited with out rebuilding the project, but is this the case for new cshtml files or it this error due to something else?

Thanks in advance
7 years ago
[email protected] wrote:
I am trying to apply a second style sheet to the product page depending on the product type. The only solution I can think of is to create new product template with the style sheet and apply that template to the relavent products. Is their any alternative solution to do this, or is this the correct way to approach this?

Sounds good to me, that's how I'd do it.

[email protected] wrote:
I have started down this method by creating a copy of ProductTemplate.Simple and renaming it directly in the live website but it return a error:

The view 'ProductTemplate.ImageFullWidth' or its master was not found or no view engine supports the searched locations. The following locations were searched:

As I understood, Razor cshtml files can be edited with out rebuilding the project, but is this the case for new cshtml files or it this error due to something else?

You'll need to add your new template the to list of available Product Templates in the admin area (System > Templates > Product Templates). I can't find any mention of this in the nop documentation at the moment so it's not that obvious.
6 years ago
I need to make the same thing
I do all steps that you say and add administration but not work
can you tell me how you solve this problem ??
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.