Jump to content

Eliminar "Detalles del producto"


neho23

Recommended Posts

Hola, me gustar铆a saber si es posible eliminar la pesta帽a "Detalles del producto" de mi tienda online. No quiero que aparezca ni la Referencia, ni el stock, ni la ficha t茅cnica...nada de nada y desactivar la pesta帽a para que solo se vea la descripci贸n del producto. Ser铆a eso posible? Gracias!


post-1333770-0-32736500-1504662680_thumb.jpg

post-1333770-0-12880900-1504662690_thumb.jpg

Link to comment
Share on other sites

Buenas!

para quitar toda esta parte tienes que usar alg煤n editor de texto y hacerlo con cuidado, tendr铆as que entrar por ftp al archivo siguiente:

dentro de la carpeta themes, buscas tu plantilla, y dentro: templates/catalog/product.tpl

en ese archivo tendr铆as que comentar o quitar las siguientes l铆neas, yo siempre recomiendo comentar por si alguna vez las necesitas.

alrededor de la l铆nea 150:

<li class="nav-item">
聽聽聽聽聽聽 <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">{l s='Product Details' d='Shop.Theme.Catalog'}</a>
聽 </li>

cambiarlo por:

{*

<li class="nav-item">
聽聽聽聽聽聽聽 <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">{l s='Product Details' d='Shop.Theme.Catalog'}</a>
聽聽聽 </li>

*}

y tambi茅n estas, sobre la l铆nea 172:

{block name='product_details'}
聽聽聽聽聽聽 {include file='catalog/_partials/product-details.tpl'}
聽{/block}

cambiarlo por:

{* {block name='product_details'}
聽聽聽聽聽聽 {include file='catalog/_partials/product-details.tpl'}
聽{/block}聽 *}

Edited by javier_direfentes (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...

No se si lo has resuelto aun o no.聽

El caso es que yo uso el tema transformer, la version 1.7. y en mi caso algunas cosillas se pueden modificar.

  • M贸dulo "theme editor" > Product pages. Desde ah铆 puedes eliminar la referencia.
  • Para eliminar el numero de articulos en stock yo lo que hice fue Parametros de la tienda > Configuraci贸n de productos > P谩gina del producto > Mostrar n煤mero de productos disponibles si.... Lo puse a 0 y me desapareci贸 el mensaje.
  • La ficha t茅cnica no tengo ni idea a mi no me aparec铆a.
  • Detalles del producto, sigo buscando donde se desactiva o donde se puede meter informaci贸n ah铆.

Siento no serte de m谩s ayuda聽 :mellow:

Link to comment
Share on other sites

Hola javier, gracias por contestar. Yo uso el theme por defecto del prestashop. Me salen todos esos product.tpl en el servidor...pero supongo que el que se debe cambiar es el pen煤ltimo de la lista. 聽Pero no me funciona. Sigue apareciendo exactamente lo mismo en la web.聽

Edito: Ahora mismo he conseguido quitar el n煤mero de productos disponibles y la referencia gracias los consejos de ICEpower, pero no consigo eliminar la pesta帽a "Detalles del producto"

驴Alguna otra idea?聽Gracias!!

post-1333770-0-63051300-1506524448_thumb.png

Edited by neho23 (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

Hola chicos,聽

reabro este tema 6 meses despu茅s, siento mucho haber tardado tanto en contestar pero deje la p谩gina un poco de lado y ahora he vuelto a retomarla.聽javier_direfentesten铆as raz贸n en el cambio de c贸digo que me indicaste. El fallo estaba en que no estaba limpiando la cache y supongo que a Sergio le estaba pasando lo mismo.

Lo encontr茅 en el foro ingl茅s:聽https://www.prestashop.com/forums/topic/615780-remove-product-details-tab-on-product-page-presta-17/

Solo hay que ir a par谩metros聽avanzado/rendimiento y limpiar cache. As铆 las modificaciones del c贸digo funcionan a la perfecci贸n.聽

Muchas gracias!

Link to comment
Share on other sites

  • 5 months later...
On 6/9/2017 at 8:31 AM, javier_direfentes said:

Buenas!

para quitar toda esta parte tienes que usar alg煤n editor de texto y hacerlo con cuidado, tendr铆as que entrar por ftp al archivo siguiente:

dentro de la carpeta themes, buscas tu plantilla, y dentro: templates/catalog/product.tpl

en ese archivo tendr铆as que comentar o quitar las siguientes l铆neas, yo siempre recomiendo comentar por si alguna vez las necesitas.

alrededor de la l铆nea 150:

<li class="nav-item">
聽聽聽聽聽聽 <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">{l s='Product Details' d='Shop.Theme.Catalog'}</a>
聽 </li>

cambiarlo por:

{*

<li class="nav-item">
聽聽聽聽聽聽聽 <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details">{l s='Product Details' d='Shop.Theme.Catalog'}</a>
聽聽聽 </li>

*}

y tambi茅n estas, sobre la l铆nea 172:

{block name='product_details'}
聽聽聽聽聽聽 {include file='catalog/_partials/product-details.tpl'}
聽{/block}

cambiarlo por:

{* {block name='product_details'}
聽聽聽聽聽聽 {include file='catalog/_partials/product-details.tpl'}
聽{/block}聽 *}

Solo comentando el primer bloque de c贸digo me ha valido para quitar la pesta帽a detalles del producto de la pagina de producto.

Muchas gracias!!

Link to comment
Share on other sites

  • 1 year later...

Hola!!! estoy intentando realizar esta operacion de quitar esa pesta帽a de "detalles de producto" el problema esque en la plantilla de classic si encuentro el codigo perfectamente pero el caso esque tengo la plantilla warehouse y me estoy volviendo loco para encontrar esas lineas y no las encuentro, he probado en las herramientas de desarrollador de mozilla y ahi si me sale el codigo para cambiarlo pero en el archivo de product.tpl de warehouse no me aparece. Por favor necesito una solucion.

Gracias por adelantado.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Hola coo puedo cambiar de sitios聽pesta帽as de la descripci贸n y聽 detalles del producto. quiero que 聽aparece primero detalles de producto . Me puede alguien ayudar ? Garc铆as

{block name='product_tabs'}
聽聽 聽<div class="product-tabs tabs">
聽聽 聽 聽聽聽 聽<ul class="nav nav-tabs" role="tablist">
聽聽 聽聽聽 聽 聽 聽{if $product.description}
聽聽 聽聽聽 聽 聽 聽聽聽 聽<li class="nav-item">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 <a
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 class="nav-link{if $product.description} active{/if}"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 data-toggle="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 href="#description"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 role="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 aria-controls="description"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽 {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Catalog'}</a>
聽聽 聽聽聽 聽聽聽 聽聽聽 聽</li>
聽聽 聽 聽 聽聽聽 聽{/if}
聽聽 聽聽聽 聽 聽 聽<li class="nav-item">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽<a
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽class="nav-link{if !$product.description} active{/if}"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽data-toggle="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽href="#product-details"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽role="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽aria-controls="product-details"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽{if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a>
聽聽 聽聽聽 聽聽聽 聽</li>
聽聽 聽聽聽 聽 聽 聽{if $product.attachments}
聽聽 聽聽聽 聽聽聽 聽聽聽 聽<li class="nav-item">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽<a
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽class="nav-link"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽data-toggle="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽href="#attachments"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽role="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}</a>
聽聽 聽聽聽 聽聽聽 聽聽聽 聽</li>
聽聽 聽聽聽 聽聽聽 聽 {/if}
聽聽 聽聽聽 聽 聽 聽{foreach from=$product.extraContent item=extra key=extraKey}
聽聽 聽聽聽 聽聽聽 聽 聽 聽<li class="nav-item">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽<a
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽class="nav-link"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽data-toggle="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽href="#extra-{$extraKey}"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽role="tab"
聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽aria-controls="extra-{$extraKey}">{$extra.title}</a>
聽聽 聽聽聽 聽聽聽 聽聽聽 聽</li>
聽聽 聽聽聽 聽 聽 聽{/foreach}
聽聽 聽聽聽 聽聽聽 聽{hook h='displayLeoProductTab' product=$product}
聽聽 聽 聽聽聽 聽</ul>

聽聽 聽 聽聽聽 聽<div class="tab-content" id="tab-content">
聽聽 聽聽聽 聽 聽 聽聽 聽<div class="tab-pane fade in{if $product.description} active{/if}" id="description" role="tabpanel">
聽聽 聽聽聽 聽 聽 聽 聽聽 聽{block name='product_description'}
聽聽 聽聽聽 聽 聽 聽 聽 聽聽 聽聽聽 聽<div class="product-description">{$product.description nofilter}</div>
聽聽 聽聽聽 聽 聽 聽 聽聽 聽{/block}
聽聽 聽聽聽 聽 聽 聽聽 聽</div>

聽聽 聽聽聽 聽 聽 聽聽 聽{block name='product_details'}
聽聽 聽聽聽 聽 聽 聽 聽聽 聽{include file='catalog/_partials/product-details.tpl'}
聽聽 聽聽聽 聽 聽 聽聽 聽{/block}

聽聽 聽聽聽 聽 聽 聽聽 聽{block name='product_attachments'}
聽聽 聽聽聽 聽 聽 聽 聽聽 聽{if $product.attachments}
聽聽 聽聽聽 聽 聽 聽 聽聽聽 聽<div class="tab-pane fade in" id="attachments" role="tabpanel">
聽聽 聽聽聽 聽 聽 聽 聽 聽 聽聽 聽<section class="product-attachments">
聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽聽 聽聽聽 聽<h3 class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</h3>
聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽聽 聽{foreach from=$product.attachments item=attachment}
聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽<div class="attachment">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽<h4><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4>
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽<p>{$attachment.description}</p>
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽<a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 {l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted})
聽聽 聽聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽</a>
聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽 聽聽 聽</div>
聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 聽 聽 聽聽 聽{/foreach}
聽聽 聽聽聽 聽 聽 聽 聽 聽 聽聽 聽</section>
聽聽 聽聽聽 聽 聽 聽 聽 聽聽 聽</div>
聽聽 聽聽聽 聽 聽 聽 聽聽 聽{/if}
聽聽 聽聽聽 聽 聽 聽聽 聽{/block}
聽聽 聽聽聽 聽 聽 聽聽 聽{hook h='displayLeoProductTabContent' product=$product}
聽聽 聽聽聽 聽 聽 聽聽 聽{foreach from=$product.extraContent item=extra key=extraKey}
聽聽 聽聽聽 聽聽聽 聽 聽 聽聽 聽<div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}>
聽聽 聽聽聽 聽聽聽 聽 聽 聽 聽 {$extra.content nofilter}
聽聽 聽聽聽 聽聽聽 聽 聽 聽聽 聽</div>
聽聽 聽聽聽 聽 聽 {/foreach}
聽聽 聽聽聽 聽</div>
聽聽 聽</div>
{/block}

Link to comment
Share on other sites

  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...