oc-shopaholic / oc-orders-shopaholic-plugin

🛒 Orders (cart) extension for Shopaholic plugin
https://octobercms.com/plugin/lovata-ordersshopaholic
GNU General Public License v3.0
27 stars 18 forks source link

How use Filter for ProductList #93

Closed batmar96 closed 4 years ago

batmar96 commented 4 years ago

how to filter a list of products using the filter for Shopogolick plugin? {% set obProductList = obProductList.filterByProperty(input('property'), obCategory.product_filter_property) %} not working

kharanenka commented 4 years ago

Hi! What do you have in input('property')?

batmar96 commented 4 years ago

Hi! What do you have in input('property')?

get запрос /prodazha?property%5B2%5D%5B%5D=buksir&property%5B15%5D%5B%5D=rxvolga&set_filter=Y

kharanenka commented 4 years ago

Please send array you receive from input('property')

batmar96 commented 4 years ago

Please send array you receive from input('property')

2: buksir 15: rxvolga

kharanenka commented 4 years ago

You should debug plugins/lovata/filtershopaholic/classes/event/ProductModelHandler.php file, line 206

batmar96 commented 4 years ago

You should debug with such parameters /prodazha?property%5B2%5D=barzha&set_filter=Y

in ProductModelHandler.php print_r($arFilterList);= Array ( [2] => barzha )

batmar96 commented 4 years ago

You should debug plugins/lovata/filtershopaholic/classes/event/ProductModelHandler.php file, line 206

the question is closed