tayfun476 Posted August 14, 2014 Share Posted August 14, 2014 (edited) <option value="date_add:desc" {if $orderby eq 'date_add' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Yeni Eklenenler'}</option> Merhaba ben yeniden eskiye sıralama kodu olarak bunu düzenledim fakat seçili olarak gelmesini sağlayamadım yardımcı olursanız çok sevinirim üstatlar.... kodun tamamı aşağıdadır. product-sort.tbl <!-- Sort products --> {if isset($smarty.get.id_category) && $smarty.get.id_category} {assign var='request' value=$link->getPaginationLink('category', $category, false, true)} {elseif isset($smarty.get.id_manufacturer) && $smarty.get.id_manufacturer} {assign var='request' value=$link->getPaginationLink('manufacturer', $manufacturer, false, true)} {elseif isset($smarty.get.id_supplier) && $smarty.get.id_supplier} {assign var='request' value=$link->getPaginationLink('supplier', $supplier, false, true)} {else} {assign var='request' value=$link->getPaginationLink(false, false, false, true)} {/if} {/if} <form id="productsSortForm{if isset($paginationId)}_{$paginationId}{/if}" action="{$request|escape:'html':'UTF-8'}" class="productsSortForm"> <div class="select selector1"> <label for="selectProductSort{if isset($paginationId)}_{$paginationId}{/if}">{l s='Sort by'}</label> <select id="selectProductSort{if isset($paginationId)}_{$paginationId}{/if}" class="selectProductSort form-control"> <option value="{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}" {if $orderby eq $orderbydefault}selected="selected"{/if}>Ozellik Seciniz</option> <option value="date_add:desc" {if $orderby eq 'date_add' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Yeni Eklenenler'}</option> {if !$PS_CATALOG_MODE} <option value="price:asc" {if $orderby eq 'price' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Price: Lowest first'}</option> <option value="price:desc" {if $orderby eq 'price' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Price: Highest first'}</option> {/if} <option value="name:asc" {if $orderby eq 'name' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Product Name: A to Z'}</option> <option value="name:desc" {if $orderby eq 'name' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Product Name: Z to A'}</option> {if $PS_STOCK_MANAGEMENT && !$PS_CATALOG_MODE} <option value="quantity:desc" {if $orderby eq 'quantity' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='In stock'}</option> {/if} <option value="reference:asc" {if $orderby eq 'reference' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Reference: Lowest first'}</option> <option value="reference:desc" {if $orderby eq 'reference' AND $orderway eq 'desc'}selected="selected"{/if}>{l s='Reference: Highest first'}</option> </select> </div> </form> <!-- /Sort products --> farklı bir metodu olan varsa paylaşmasından çok memnun olurum Edited August 14, 2014 by tayfun476 (see edit history) Link to comment Share on other sites More sharing options...
Şahin YILDIZ Posted August 15, 2014 Share Posted August 15, 2014 Kod ile uğraşmanıza gerek yok...admin panelde bu özellik var.... Link to comment Share on other sites More sharing options...
tayfun476 Posted August 15, 2014 Author Share Posted August 15, 2014 Şahin bey çok teşekkür ederim zaman ayırdığınız ve ilgilendiğiniz için sorun çözüldü kulağımı tutmak için nasılda elimi kolumu dolaştırmış bir duruma düşmüşüm bir bilene sor demişler ya çok doğru üstat tekrardan teşekkürler. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now