How to add product filter parametr (products?selected_categories[0]=3&selected_categories[1]=1&selected_brands[0]=7) to pagination &page=2
@DCodeMania8 ай бұрын
I think it will work with pagination also because in livewire 3 by default query string applies for pagination in the URL.
@BlakeTheJack3 ай бұрын
Awesome.. Could you share the cart management file ?
@iam.masoudsamimi3 ай бұрын
Hi, The helper CartManagement class in method: -> static public function addItemToCart($product_id) Has this error: -> Trying to access array offset on value of type int On this line of code: -> if($item['product_id'] == $product_id) Any idea how to fix it?
@vugarkhalil3 ай бұрын
Respect
@mrbenboyy81716 ай бұрын
in addItemToCartWithQty method you should put 'total_amount' => $product->price * $qty