leaflet Posted February 4, 2017 Share Posted February 4, 2017 (edited) Buenas tardes, ALguien me podria comentar como quitar la herramienta de "ORDENAR POR...." Edited February 4, 2017 by leaflet (see edit history) Link to comment Share on other sites More sharing options...
leaflet Posted February 4, 2017 Author Share Posted February 4, 2017 Mi versión es la prestashop 1.6.1.10 He seguido el tutorial siguiente pero no me surge efecto, no se si se debe a que el tutorial es para el 1.5. Gracias de antemano Link to comment Share on other sites More sharing options...
leaflet Posted February 4, 2017 Author Share Posted February 4, 2017 En el global.css es decir /themes/tuplantilla/css/global.cssBusca esta linea:#productsSortForm label, #productsSortForm select {float: right;}Y dejala asi:#productsSortForm label, #productsSortForm select {float: right;display: none;} Link to comment Share on other sites More sharing options...
nadie Posted February 4, 2017 Share Posted February 4, 2017 Buenas tardes, ALguien me podria comentar como quitar la herramienta de "ORDENAR POR...." Puedes "ocultarlo" por css, o comentarlo en el tpl. Ocultarlo por CSS: Fichero: /themes/default-bootstrap/css/global.css Cambiar: .content_sortPagiBar .sortPagiBar #productsSortForm { float: left; margin-right: 20px; margin-bottom: 10px; } por .content_sortPagiBar .sortPagiBar #productsSortForm { float: left; margin-right: 20px; margin-bottom: 10px; display:none; } Eliminar desde tpl /themes/default-bootstrap/product-sort.tpl Cambiar esto: <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="{if $page_name != 'best-sales'}{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}{/if}"{if !in_array($orderby, array('price', 'name', 'quantity', 'reference')) && $orderby eq $orderbydefault} selected="selected"{/if}>--</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> Añadiendo esto: {* *} Para comentar la parte del codigo: {* <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="{if $page_name != 'best-sales'}{$orderbydefault|escape:'html':'UTF-8'}:{$orderwaydefault|escape:'html':'UTF-8'}{/if}"{if !in_array($orderby, array('price', 'name', 'quantity', 'reference')) && $orderby eq $orderbydefault} selected="selected"{/if}>--</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> *} Te lo digo en PS 1.6 con plantilla por defecto Si modificas el tpl, recuerda luego limpiar cache en Parámetros Avanzados -> Rendimiento Link to comment Share on other sites More sharing options...
Recommended Posts