- 89
Hi Staff!
Is there a way to you customize your plugin with this code? We need to show the "Sold out" products always on the lastests positions of filter or category list.
(product.ManageInventoryMethod == ManageInventoryMethod.ManageStock && product.BackorderMode == BackorderMode.NoBackorders && product.AllowBackInStockSubscriptions && product.StockQuantity <= 0) || (product.ManageInventoryMethod == ManageInventoryMethod.ManageStockByAttributes && product.ProductAttributeCombinations.Sum(p => p.StockQuantity) <= 0 && product.ProductAttributeCombinations.Where(p => p.AllowOutOfStockOrders).Count() == 0)
This is what our nop customization does, check these criterias to display or not the "SOLD OUT" product image icon.
So, when we filter some category using your plugin, some sold out products appears in list. These criteria should always be applied after any filter or order.. for example, low to highest prices, then the sold out products without any order in list´s end.
Apparently the easiest way is put it in your ProductLoadAllPagedNopAjaxFilters stored procedure, but it is encrypted.
Is that possible? This is a requirement to allow us use your plugin. We are trying the 3.7 version.
If it has any cost, let me know how to pay.
Thanks!
Is there a way to you customize your plugin with this code? We need to show the "Sold out" products always on the lastests positions of filter or category list.
(product.ManageInventoryMethod == ManageInventoryMethod.ManageStock && product.BackorderMode == BackorderMode.NoBackorders && product.AllowBackInStockSubscriptions && product.StockQuantity <= 0) || (product.ManageInventoryMethod == ManageInventoryMethod.ManageStockByAttributes && product.ProductAttributeCombinations.Sum(p => p.StockQuantity) <= 0 && product.ProductAttributeCombinations.Where(p => p.AllowOutOfStockOrders).Count() == 0)
This is what our nop customization does, check these criterias to display or not the "SOLD OUT" product image icon.
So, when we filter some category using your plugin, some sold out products appears in list. These criteria should always be applied after any filter or order.. for example, low to highest prices, then the sold out products without any order in list´s end.
Apparently the easiest way is put it in your ProductLoadAllPagedNopAjaxFilters stored procedure, but it is encrypted.
Is that possible? This is a requirement to allow us use your plugin. We are trying the 3.7 version.
If it has any cost, let me know how to pay.
Thanks!