templates in 2.0 for products, categories & manufacturers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
In new 2.0 where are the templates for products, categories & manufacturers ?

If I want to select different templates for different product, how to do that ?

If this was removed in 2.0 then what about those websites running on 1.9 with different templates ? everything will be lost by the upgrade ?

plz add this in 2.1 if it was removed in 2.0.
12 years ago
Why removed?
12 years ago
1. Categories. Functionality of all old templates ('products in grid' and 'product in lines') are still supported. Look at the top right corner. You'll see "View as" dropdownlist. Demo is here
2. Manufactures. There were only one template, but now it also has "View as" dropdownlist
3. Products. Previously we had two templates. Both of them are also supported. The first one will be rendered when you have one single variant. The second one when you have variants.
12 years ago
a.m. wrote:
1. Categories. Functionality of all old templates ('products in grid' and 'product in lines') are still supported. Look at the top right corner. You'll see "View as" dropdownlist. Demo is here
2. Manufactures. There were only one template, but now it also has "View as" dropdownlist
3. Products. Previously we had two templates. Both of them are also supported. The first one will be rendered when you have one single variant. The second one when you have variants.


how to set particular products to be in 'product in lines' not in grid ?

how to set particular products to have template for multiple variant (even though there is only 1 variant) ?
12 years ago
pepper wrote:
how to set particular products to be in 'product in lines' not in grid ?

Open category details page and set "View as" to "List" (user have to do it)

pepper wrote:
how to set particular products to have template for multiple variant (even though there is only 1 variant) ?

It's not possible. Why do you need it?
12 years ago
a.m. wrote:

Open category details page and set "View as" to "List" (user have to do it)


But my question is, how to set product to be in 'product in lines' for a particular category from administration. I guess it is not possible in 2.0version. In 1.9version I added few stuff in short description which was visible and only meant for 'product in lines' box. I can't ask online customers to change the view every time to be able to see those stuff in short description. In Gridbox, it is not possible. It was good to have that option in administration to set category products templates. Don't know why it was removed in 2.0.

a.m. wrote:

how to set particular products to have template for multiple variant (even though there is only 1 variant) ?
It's not possible. Why do you need it?


Bcoz I have many products in 1.9 for which I was displaying extra stuff that I added in Template / Product / VariantsInGrid.ascx and OneVariant.ascx. So I had the option to create extra templates also that I could assign in administration to different products accordingly.

If I add anything in the template now, it will be available for all products which I don't want. Don't know why these things were removed in 2.0. It was so great to have it in 1.9. I am sure many other users will be affected by this change.

You can see people asking for it https://www.nopcommerce.com/boards/t/10994/nopcommerce-210-roadmap-lets-discuss.aspx?p=3

All I can do is request you to bring back these functions in 2.1 so that store admin can set up products accordingly.
12 years ago
Same problem, we also liked the templates for products.  Not every product has the same info or layout.  Selecting the product theme in the admin for each product was great.

Also, why do you put the dropdown/radio buttons...all the way at the bottom, it should right by the Add to Cart button.

I was able to modify the 1 template to move them by the Add to Cart.  Can we get the ability to select a product template in the next upgrade, thanks.
12 years ago
pepper wrote:
...

I this case you need to make some customization.
P.S. If you made some customization to 1.90 to display some new info, then you can also do the same in 2.00
12 years ago
By adding extra stuff I didn't mean customization in database or anything like that. In 1.9version I had option to create a new template (in templates/products/newonevariant.ascx or newgridvariant.ascx).

Hence, I could assign that new product template to any particular product in administration. (even in excel import)

-> Ok if you say it is possible in 2.0 then plz tell me.

- >I want to create a new template for a particular product. How I can create that in 2.0 and where I can assign that new template to that particular product in administration ?

- > Same question with the category product display " product in line1". How to set products to be in " product in line1" ONLY.
12 years ago
pepper wrote:
-> Ok if you say it is possible in 2.0 then plz tell me.

- >I want to create a new template for a particular product. How I can create that in 2.0 and where I can assign that new template to that particular product in administration ?

I didn't say that it's possible in 2.00. It's NOT possible without some customization. Here is a simplified list of steps:
1. Add 'TemplateId' property to 'Product' entity
2. Add new 'ProductTemplate' entity
3. Update 'Add/Edit product' details page in admin area in order to allow store owner to choose 'Product template'
4. Render a view (template) depending on the selected template - CatalogController.Product method.


pepper wrote:
Same question with the category product display " product in line1". How to set products to be in " product in line1" ONLY.

1. Go to admin area > configuration > settings > all settings
2. Find 'CatalogSettings.AllowProductViewModeChanging' setting ans set its value to 'false'
3. Open \src\Presentation\Nop.Web\Controllers\CatalogController.cs file
4. Find Category(int categoryId, CatalogPagingFilteringModel command) method
5. Replace
model.PagingFilteringContext.ViewMode = command.ViewMode;

the following code
model.PagingFilteringContext.ViewMode = "list";
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.