Triskel Posted November 18, 2012 Share Posted November 18, 2012 (edited) Hola, he estado buscando pero no encuentro cómo ocultar estos campos del carrito para hacer el resumen del carrito lo más sencillo posible. A ver si alguien me puede echar una mano. Muchas gracias. Edited November 22, 2012 by Triskel (see edit history) Link to comment Share on other sites More sharing options...
Victor Castro Contreras Posted November 18, 2012 Share Posted November 18, 2012 (edited) Modifica el archivo "shopping-cart.tpl" de tu template la linea 142 Cambia esta linea: <!-- Borrar apartir de aqui --> {if $use_taxes} <tr class="cart_total_price"> <td colspan="5">{l s='Total (tax excl.):'}</td> <td class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td> </tr> <tr class="cart_total_tax"> <td colspan="5">{l s='Total tax:'}</td> <td class="price" id="total_tax">{displayPrice price=$total_tax}</td> </tr> {/if} <tr class="cart_total_price"> {if $use_taxes} <td colspan="5">{l s='Total:'}</td> <td class="price" id="total_price"><span class="price"> {displayPrice price=$total_price}</span></td> {else} <td colspan="5">{l s='Total:'}</td> <td class="price" id="total_price"><span class="price"> {displayPrice price=$total_price_without_tax}</span></td> {/if} </tr> <!-- Borrar hasta aqui --> Por esta linea: <!-- Borrar apartir de aqui --> <!-- Borrar hasta aqui --> Edited November 18, 2012 by Victor Castro Contreras (see edit history) Link to comment Share on other sites More sharing options...
GFornieles Posted November 18, 2012 Share Posted November 18, 2012 mejor que borrar añadir al principio {* y al final *} Lo dejas como comentario, es un método menos destructivo Link to comment Share on other sites More sharing options...
Triskel Posted November 19, 2012 Author Share Posted November 19, 2012 (edited) Muchas gracias, pero he tenido que pelearme un poco, os explico: si eliminaba todo el código que me indicó Victor también eliminaba el importe total del carrito, a base de prueba y error he podido solucionar el asunto comentando el código que copio a continuación en el archivo shopping-cart.tpl de mi template (tal y como me dijo Victor Castro) : {*borrar desde aquí <tr class="cart_total_price"> <td colspan="6"> {if $display_tax_label} {l s='Total (tax excl.):'} {else} {l s='Subtotal:'} {/if} </td> <td class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td> </tr> <tr class="cart_total_tax"> <td colspan="6"> {if $display_tax_label} {l s='Total tax:'} {else} {l s='Estimated Sales Tax:'} {/if} </td> <td class="price" id="total_tax">{displayPrice price=$total_tax}</td> </tr> hasta aquí*} Muchas gracias a todos por vuestra ayuda. Edited November 19, 2012 by Triskel (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts