<div class=»SortMe»>
<div class=»SortMeBlock»>
<div class=»SortPrice»>Сортировать по: <a href=»javascript:void(0);» id=»sorting» onclick=»sort()»>Цене<span id=»arrow» class=»sortup»></span></a>
</div>
</div>
</div>
<?if ($_GET[«SORT»] == «ASC») {$sorting = «ASC»;}?>
<?if ($_GET[«SORT»] == «DESC») {$sorting = «DESC»;}?>
<? if($sorting == «ASC»){?>
<script type=»text/javascript»>
$(«#arrow»).removeClass(«sortdown»);
$(«#arrow»).addClass(«sortup»);
function sort(){
javascript:window.location=’?SORT=DESC’;
}
</script>
<? } elseif ($sorting == «DESC» || $sorting == «») {?>
<script type=»text/javascript»>
$(«#arrow»).removeClass(«sortup»);
$(«#arrow»).addClass(«sortdown»);
function sort(){
javascript:window.location=’?SORT=ASC’;
}
</script>
<? } ?>
в компонентне
«ELEMENT_SORT_FIELD» => «catalog_PRICE_1»,
Fantastic article! Your perspective on this topic is truly insightful. For those looking to explore this further, I found an excellent resource that complements your points: READ MORE. I’m eager to hear what others think about this!