How to show all Free shipping , ... products on one page?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 лет назад
Hi

I want show this products on one page?

1. special price
2. free shipping
3. free Installing
(Nop doesn't have this field for each product - How can set product for free installing an show these products on one page)

I dont have source code. I want solve these problems with use view models.
7 лет назад
i don't think that only on view model you can view all this products.

also for Free Installing - you can create one specification attribute just for identify that product is free installation or not with two option of specification attribute and show appropriately.
7 лет назад
vipul.dumaniya wrote:
i don't think that only on view model you can view all this products.

also for Free Installing - you can create one specification attribute just for identify that product is free installation or not with two option of specification attribute and show appropriately.


Ok. I have a question:

Is the plugin gets the job done
The plugin admin page which threads to create the desired address.
After all products per page display site with a special filter.
7 лет назад
EbiPenMan wrote:
i don't think that only on view model you can view all this products.

also for Free Installing - you can create one specification attribute just for identify that product is free installation or not with two option of specification attribute and show appropriately.

Ok. I have a question:

Is the plugin gets the job done
The plugin admin page which threads to create the desired address.
After all products per page display site with a special filter.


yes it is possible to create it at plugins level
7 лет назад
" use view models" requires source code, because the Controllers set the properties of the model.  You can modify .cshtml files, but to get the properties that are not part of the view model wold require Resolving services and call those service methods.
7 лет назад
New York wrote:
" use view models" requires source code, because the Controllers set the properties of the model.  You can modify .cshtml files, but to get the properties that are not part of the view model wold require Resolving services and call those service methods.


thanks

I used this code on view:

@{
var productService = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Catalog.IProductService>();
var products = productService.SearchProducts(0, 10, new List<int>() { });
var catalogController = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Web.Controllers.CatalogController>();
var model = catalogController.PrepareProductOverviewModels(products, true, true, Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Core.Domain.Media.MediaSettings>().ProductThumbPictureSize).ToList();


But get this error:

Compiler Error Message: CS1501: No overload for method 'PrepareProductOverviewModels' takes 4 arguments



please tell me how use PrepareProductOverviewModels for products and use in _ProductBox?
7 лет назад
Does not anyone answer?
7 лет назад
EbiPenMan wrote:
Does not anyone answer?


you are missing some parameter on PrepareProductOverviewModels method of CatalogControllers

so it crashing and saying there is not any such type of method
7 лет назад
Hope there may be other problem ideally it should work other 2 parameters are optional. rebuild the solution once.
7 лет назад
manjunatha.govindappa wrote:
Hope there may be other problem ideally it should work other 2 parameters are optional. rebuild the solution once.


this code is on view page
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.