I have some code in the category.php of opencart to interact with my module, i need to pass an array as string to the URL but i'm missing something, it appears that opencart has a function that keeps converting the string to array again...
here is my code
//MOD EOT - Adicionar os campos dos Filtros
if (isset($this->request->get['eot_filter'])) {
$eot_filters_url = $this->request->get['eot_filter'];
//$final_url = '';
foreach ($eot_filters_url as $key=>$filter) {
$final_url = '&eot_filter['.$key.'][Attr_id]='. $filter['Attr_id'];
$final_url.= '&eot_filter['.$key.'][text]='. $filter['text'];
$url .= $final_url;
}
}
//MOD EOT END - Adicionar os campos dos Filtros
$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = $limit;
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
the $pagination->url
puts &eot_filter=array
instead of &eot_filter[0][Attr_id]=...