/modules/ps_facetedsearch/views/templates/front/catalog/facets.tpl
{block name='facets_clearall_button'} {if $activeFilters|count} <div id="_desktop_search_filters_clear_all" class="hidden-sm-down clear-all-wrapper"> <button data-search-url="{$clear_all_link}" class="btn btn-tertiary"> <i class="material-icons"></i> {l s='Clear all' d='Shop.Theme.Actions'} </button> </div> {/if} {/block} ... <input id="facet_input_{$_expand_id}_{$filter_key}" data-search-url="{$filter.nextEncodedFacetsURL}" type="checkbox" {if $filter.active }checked{/if} {if !isset($filter.properties.color) and !isset($filter.properties.texture)} disabled="disabled"{/if} > ... <a href="{$filter.nextEncodedFacetsURL}" class="_gray-darker search-link" rel="nofollow" > ... <a rel="nofollow" href="{$filter.nextEncodedFacetsURL}" class="select-list" >
/themes/B2B/templates/_partials/pagination.tpl
<a rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}" href="{$page.url}" class="{if $page.type === 'previous'}previous {elseif $page.type === 'next'}next {/if}{['disabled' => !$page.clickable]|classnames}" >
/themes/B2B/templates/catalog/_partials/sort-orders.tpl
<div class="dropdown-menu"> <!-- custom code natural - /themes/B2B/templates/catalog/_partials/sort-orders.tpl - Quitar js-search para que no rompa el mostrar/ocultar precios - Pepe --> {foreach from=$listing.sort_orders item=sort_order} <a rel="nofollow" href="{$sort_order.url}" class="select-list {['current' => $sort_order.current]|classnames}" > {$sort_order.label} </a> {/foreach} </div>
/themes/B2B/assets/js/custom.js
function ocultarprecios() { $( ".price" ).css("display","none"); $( "#ocultarprecios" ).html("Mostrar precios"); $( ".current-price" ).css("display","none"); $("#cart-subtotal-products .value").css("display","none"); $(".cart-total .value").css("display","none"); $(".products .label").css("display","none"); $(".products .value").css("display","none"); $(".leo-dropdown-cart-total").css("display","none"); $(".product-price").css("display","none"); } function mostrarprecios(){ $( ".price" ).css("display","inherit"); $( "#ocultarprecios" ).html("Ocultar precios"); $( ".current-price" ).css("display","inherit"); $("#cart-subtotal-products .value").css("display","inherit"); $(".cart-total .value").css("display","inherit"); $(".products .label").css("display","inherit"); $(".products .value").css("display","inherit"); $(".leo-dropdown-cart-total").css("display","inherit"); $(".product-price").css("display","inherit"); } var cookie = localStorage.getItem('Pulsado'); if (cookie==0) ocultarprecios(); else mostrarprecios(); $.ajax({ url : window.location.href, success : function(data) { if (cookie==0) ocultarprecios(); else mostrarprecios(); } }); $( "body" ).change(function() { var targetbody = document.querySelector("body"); observerbody = new MutationObserver(function(mutations) { if (cookie==0) ocultarprecios(); else mostrarprecios(); }); var configbody = { attributes: true, childList: true, characterData: true }; observerbody.observe(targetbody, configbody); }); /* botón ocultar/mostrar precios */ $(document).ready(function(){ $("#ocultarprecios").click(function(){ if (cookie==1) { ocultarprecios(); localStorage.setItem('Pulsado',0); cookie=0; } else { mostrarprecios(); localStorage.setItem('Pulsado',1); cookie=1; } }); prestashop.on('updateProductList', function() { if (cookie==0) ocultarprecios(); else mostrarprecios(); }); });