Close

Customization Needed!!! Staff, please.

IvanSlater
8 years ago
#12201 Quote
Avatar
  • 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!
Deni
8 years ago
#12205 Quote
Avatar
  • Moderator
  • 389
Hi, 

Yes, our stored procedure is locked, but we have created an extendibility point exactly for modifying the products sorting.

You can look at your database for the function "seven_spikes_ajax_filters_product_sorting".

You are free to modify it per your needs.


I hope this helped!
Best Regards,
Mladen Staykov
Nop-Templates.com