Need Submitting Array in Form in the index.php - getting error because of rawurlencode()
Posted: Tue Mar 01, 2022 9:45 am
Hi All
I'm building a attribute Product Filter in the index.php and it works, but i'm getting at the bottom of the page the error because of the rawurlencode()
I know the Reason, it's because of the Filter the checkboxes for manufacturer have for example name "manufacturers_filter_id_arr" and if i chose multiple manufacturer to filter the form which is submitet is:
index.php?cPath=191_663_656_963¤t_category_id=963&manufacturers_filter_id_arr[]=1494&manufacturers_filter_id_arr[]=1492
My filter works as it should, but i don't know how i can get the listing->split to work with the url which has array in it...
in split_page_results.php is the link created "$link->set_parameter($this->page_name, $jump_to_page)"
but maybe there is a smarter solution as change the link creater on the split_page_results.php
any ideas?
thank you all!
Philipp
I'm building a attribute Product Filter in the index.php and it works, but i'm getting at the bottom of the page the error because of the rawurlencode()
Code: Select all
Warning: rawurlencode() expects parameter 1 to be string, array given in /mnt/lamp-www-data/beta_shop/includes/system/versioned/1.0.8.5/href.php on line 106index.php?cPath=191_663_656_963¤t_category_id=963&manufacturers_filter_id_arr[]=1494&manufacturers_filter_id_arr[]=1492
My filter works as it should, but i don't know how i can get the listing->split to work with the url which has array in it...
in split_page_results.php is the link created "$link->set_parameter($this->page_name, $jump_to_page)"
but maybe there is a smarter solution as change the link creater on the split_page_results.php
any ideas?
thank you all!
Philipp