Is there any way to use a Model from a Plugin within the View of a Theme?
This post:
https://www.nopcommerce.com/en/boards/topic/94523/how-to-use-plugin-services-in-theme-views-in-nopcommerce-version-450
was a massive help when trying to use a Plugin Service within my view.
Is there anything similar for using Models?
var cartItemModel = new My.Plugin.Misc.Core.Models.ShoppingCart.MyShoppingCartModel.MyShoppingCartItemModel
{
Id = 1,
Sku = variant.Sku,
Brand = variant.ProductManufacturers.FirstOrDefault,
StockAvailability = "",
VendorName = vendor.Name,
VendorId = vendor.Id,
VendorLocation = vendorLocation,
VendorCountryId = vendorCountryId,
ProductId = prodId,
ProductName = variant.Name,
ProductSeName = variant.SeName,
Quantity = 1,
AttributeInfo = "",
};
I get the standard 'are you missing a using directive' error but no using directive I try works.