sologuada Posted February 1, 2016 Share Posted February 1, 2016 buenas quiero poner descripcion antes de ficha tecnica en productos me podeis ayudar gracias Link to comment Share on other sites More sharing options...
shacker Posted February 2, 2016 Share Posted February 2, 2016 edita el product.tpl de tu template y mueve esta seccion {if isset($features) && $features} <!-- Data sheet --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='Data sheet'}</h3> <table class="table-data-sheet"> {foreach from=$features item=feature} <tr class="{cycle values="odd,even"}"> {if isset($feature.value)} <td>{$feature.name|escape:'html':'UTF-8'}</td> <td>{$feature.value|escape:'html':'UTF-8'}</td> {/if} </tr> {/foreach} </table> </section> <!--end Data sheet --> {/if} debajo de esta {if isset($product) && $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3> <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} recuerda vaciar cache Link to comment Share on other sites More sharing options...
sologuada Posted February 2, 2016 Author Share Posted February 2, 2016 Gracias por contestar he hecho lo que me dices y queda asi {if $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3>{/if} {if isset($product) && $product->description} <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} {if isset($features) && $features} <!-- Data sheet --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='Data sheet'}</h3> <table class="table-data-sheet"> {foreach from=$features item=feature} <tr class="{cycle values="odd,even"}"> {if isset($feature.value)} <td>{$feature.name|escape:'html':'UTF-8'}</td> <td>{$feature.value|escape:'html':'UTF-8'}</td> {/if} pero cuando voy a la pagina me da error del servidor 500 que me pasa puedes ayudarme gracias Link to comment Share on other sites More sharing options...
shacker Posted February 11, 2016 Share Posted February 11, 2016 te esta faltando un if al cerrar cada bloque {if $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3>{/if} {if isset($product) && $product->description} <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} {/if} Link to comment Share on other sites More sharing options...
Eric V. Posted May 30, 2017 Share Posted May 30, 2017 edita el product.tpl de tu template y mueve esta seccion {if isset($features) && $features} <!-- Data sheet --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='Data sheet'}</h3> <table class="table-data-sheet"> {foreach from=$features item=feature} <tr class="{cycle values="odd,even"}"> {if isset($feature.value)} <td>{$feature.name|escape:'html':'UTF-8'}</td> <td>{$feature.value|escape:'html':'UTF-8'}</td> {/if} </tr> {/foreach} </table> </section> <!--end Data sheet --> {/if} debajo de esta {if isset($product) && $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3> <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} recuerda vaciar cache Genial aporte, buscaba justamente cambiar el orden y funcionó a la primera. Para los profanos en programación este foro nos salva la vida, mil gracias! Link to comment Share on other sites More sharing options...
shacker Posted May 31, 2017 Share Posted May 31, 2017 de nada. saludos 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