How To Include External Template

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 Jahre weitere
Hello,
I have a nop-commerce template., version-  3.90.  I want to include an external statics template in this dynamic nop-commerce template.
Is it possible to include external template?
If it is possible, please share how to include it ?

Thank you.
4 Jahre weitere
shafiq18757 wrote:
I want to include an external statics template in this dynamic nop-commerce template.


Do you want use a static file as layout which is outside the project? If yes, then it's not possible.
4 Jahre weitere
shafiq18757 wrote:
Hello,
I have a nop-commerce template., version-  3.90.  I want to include an external statics template in this dynamic nop-commerce template.


For what you need to add template?
Product template, category template or anything else?
4 Jahre weitere
i want to add category template .
4 Jahre weitere
Create view file with your template name - CategoryTemplate.MyCustomTemplate.cshtml in Themes> YourTheme > Viewes > Catalog. Also create same file at Viewes > Catalog folder.

Here CategoryTemplate.MyCustomTemplate.cshtml is your custom template.

Now you need to add category template in admin area.
So go to admin > System > Templates > Category templates and add here new template with viewpath- CategoryTemplate.MyCustomTemplate



Now go to Category edit page of which you need to change template
You can see new added template in Category template dropdown.
Select your template and save category.
That's it.


Same for Product, Manufacturer and topic will work
4 Jahre weitere
Thank You so much.
4 Jahre weitere
Welcome :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.