daninapoli Posted January 11, 2022 Share Posted January 11, 2022 (edited) Salve a tutti è possibile impostare il valore su disponibile automaticamente ? devo filtrare a primo colpo solo i prodotti disponibili.. Grazie Edited January 13, 2022 by daninapoli (see edit history) Link to comment Share on other sites More sharing options...
daninapoli Posted January 12, 2022 Author Share Posted January 12, 2022 qualcuno mi sa indicare cosa modificare per rendere il filtro attivo Link to comment Share on other sites More sharing options...
daninapoli Posted January 17, 2022 Author Share Posted January 17, 2022 ho trovato questo pezzo di codice nel modulo "ps_facetedsearch" case 'quantity': $quantity_array = array( 0 => array('name' => $this->trans('Not available', array(), 'Modules.Facetedsearch.Shop'), 'nbr' => 0), 1 => array('name' => $this->trans('In stock', array(), 'Modules.Facetedsearch.Shop'), 'nbr' => 0), ); foreach ($quantity_array as $key => $quantity) { if (isset($selected_filters['quantity']) && in_array($key, $selected_filters['quantity'])) { $quantity_array[$key]['checked'] = true; } } if (isset($products) && $products) { foreach ($products as $product) { //If oosp move all not available quantity to available quantity if ((int)$product['quantity'] > 0 || Product::isAvailableWhenOutOfStock($product['out_of_stock'])) { ++$quantity_array[1]['nbr']; } else { ++$quantity_array[0]['nbr']; } } } non credo sia qui dove effettuare la modifica... se ha qualcuno è capitato può aiutarmi... ? impostare il check "in magazzino" automaticamente. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now