Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

xmaks

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

xmaks's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. В контроллере category.php почему-то неправильно генерируются или возможно обрабатываются ссылки. $data['sorts'] = array(); $data['sorts'][] = array( 'text' => $this->language->get('text_default'), 'value' => 'p.sort_order-ASC', 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.sort_order&order=ASC' . $url) ); // var_dump($data['sorts']) => array(1) { [0]=> array(3) { ["text"]=> string(23) "По умолчанию" ["value"]=> string(16) "p.sort_order-ASC" ["href"]=> string(64) "http://site/index.php?sort=p.sort_order&order=ASC" } } $data['myarr'] = array(); $data['myarr'][] = array( 'text' => $this->language->get('text_default'), 'value' => 'p.sort_order-ASC', 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.sort_order&order=ASC' . $url) ); // var_dump($data['myarr']) => array(1) { [0]=> array(3) { ["text"]=> string(23) "По умолчанию" ["value"]=> string(16) "p.sort_order-ASC" ["href"]=> string(64) "http://site/index.php?sort=p.sort_order&order=ASC" } } $data['mylink'] = array($this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.sort_order&order=ASC' . $url)); // var_dump($data['mylink']) => string(111) "http://site/index.php?route=product/category&path=66_262&sort=p.sort_order&order=ASC Есть, например, массив sorts в котором есть ссылки для сотрировок, и в них почему-то удаляются параметры path и route. С пагинацией такая же беда. Если создать массив с совершенно другим именем то ссылка так же изменяется. Что это может быть?
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.