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.
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.
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.
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.
" 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.
" 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?