ismaelpilas Posted January 29, 2015 Share Posted January 29, 2015 Hola, necesito un módulo o algo que haga lo siguiente: Que todos los productos de un fabricante en concreto, no muestre los precios. Sino que en lugar de los precios salga un recuadro que ponga "Consultar precio" y lo redirija al formulario de contacto de prestashop. Existe alguno? Gracias. Link to comment Share on other sites More sharing options...
ventura Posted January 29, 2015 Share Posted January 29, 2015 Lo puedes hacer mediante un condicional. Que version de prestashop tienes instalada y que plantilla usas ¿? Link to comment Share on other sites More sharing options...
ismaelpilas Posted January 29, 2015 Author Share Posted January 29, 2015 Lo puedes hacer mediante un condicional. Que version de prestashop tienes instalada y que plantilla usas ¿? Tengo la 1.6 con la plantilla que trae de inicio. Hasta que no genere ingresos no podré cambiarla. Un saludo. Link to comment Share on other sites More sharing options...
ventura Posted January 29, 2015 Share Posted January 29, 2015 (edited) Es una buena opcion, no te procupes. Busca este archivo themes/plantilla_utilizada/product.tpl En esta parte <div class="box-info-product"> <div class="content_prices clearfix"> {if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} <!-- prices --> <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> <hr class="taxinprice-element"> <span id="with-taxes" itemprop="price"> {convertPrice price=$productPrice*1.21}</span><span class="taxinprice_incl">{l s='tax incl.'}</span> </p> {hook h="displayProductPriceBlock" product=$product type="price"} {/if} </p> <p id="reduction_percent" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}> <span id="reduction_percent_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} </span> </p> <p id="reduction_amount" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}> <span id="reduction_amount_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> </p> <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}> {if $priceDisplay >= 0 && $priceDisplay <= 2} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span> <!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} --> {/if} </p> {if $priceDisplay == 2} <br /> <span id="pretaxe_price"> <span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'} </span> </div> <!-- end prices --> Dejala asi, pon el id del fabricante <div class="box-info-product"> {if $product->id_manufacturer == 20} <a href="{$link->getPageLink('contact-form.php')}" title="{l s='Contact Us'}">{l s='Contact Us'}</a> {else} <div class="content_prices clearfix"> {if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} <!-- prices --> <div class="price"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> <hr class="taxinprice-element"> <span id="with-taxes" itemprop="price"> {convertPrice price=$productPrice*1.21}</span><span class="taxinprice_incl">{l s='tax incl.'}</span> </p> {hook h="displayProductPriceBlock" product=$product type="price"} {/if} </p> <p id="reduction_percent" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}> <span id="reduction_percent_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} </span> </p> <p id="reduction_amount" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}> <span id="reduction_amount_display"> {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> </p> <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}> {if $priceDisplay >= 0 && $priceDisplay <= 2} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span> <!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} --> {/if} </p> {if $priceDisplay == 2} <br /> <span id="pretaxe_price"> <span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'} </span> {/if} </div> <!-- end prices --> Edited January 29, 2015 by ventura (see edit history) Link to comment Share on other sites More sharing options...
ismaelpilas Posted January 29, 2015 Author Share Posted January 29, 2015 Y modificando eso te da la opción de poner lo de consultar precio en un fabricante específico o lo hace con todo el catálogo? Muchas gracias!!. Link to comment Share on other sites More sharing options...
ventura Posted January 29, 2015 Share Posted January 29, 2015 Seria para un fabricante especifico, tienes que poner su id aqui {if $product->id_manufacturer == 20} El id del fabricante lo puedes ver aqui en la columna id Link to comment Share on other sites More sharing options...
ismaelpilas Posted January 29, 2015 Author Share Posted January 29, 2015 Perfecto. Lo pruebo y comento qué tal. Muchas gracias por la ayuda! Link to comment Share on other sites More sharing options...
exclusivas21 Posted September 4, 2015 Share Posted September 4, 2015 (edited) Funciona prefecto. Cómo se haría en product-list.tpl? Muchas gracias de antemano. Edited September 4, 2015 by exclusivas21 (see edit history) 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