Jump to content

Сортировка товаров в каталоге по цене по умолчанию Simpla 2.1.0

Recommended Posts

в шаблоне products.tpl найдите строчки

<a {if $sort=='position'} class="selected"{/if} href="{url sort=position page=null}">умолчанию</a>	<a {if $sort=='price'}    class="selected"{/if} href="{url sort=price page=null}">цене</a>

и поменяйте местами
Link to post
Share on other sites

Конечно не помогло, нужно менять в файле view/ProductsView.php в примерно 66 строке вместо

		$filter['sort'] = 'position';			
	$this->design->assign('sort', $filter['sort']);


else			$filter['sort'] = 'price';					$this->design->assign('sort', $filter['sort']);
Link to post
Share on other sites
  • 6 years later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...