franky Posted May 17, 2022 Share Posted May 17, 2022 Bonjour à tous J'essaie de supprimer un bouton le view product comme sur la photos mais je ne trouve pas le chemin pour y accéder, hier j'ai cherché et réussi à supprimer le "voir le produit" mais là impossible j'ai fais ligne par ligne dans tout les fichiers mais j'ai du passé à coté si quelqu'un aurait le chemin merci d'avance Link to comment Share on other sites More sharing options...
JulienPct Posted May 17, 2022 Share Posted May 17, 2022 Bonjour, Pourriez vous préciser si vous utilisez un thème et quelle version de PS vous avez ? 1 Link to comment Share on other sites More sharing options...
Prestachamps Posted May 17, 2022 Share Posted May 17, 2022 Bonjour, Si vous utilisez le thème, il peut provenir du thème ou d'un module. En fonction de la page sur laquelle ils apparaissent, de la façon dont je le vois sur la page de liste, il est fort probable qu'il se trouve dans /themes/theme/templates/catalog/_partials/miniatures/product.tpl Sincères amitiés, Leo 1 Link to comment Share on other sites More sharing options...
franky Posted May 17, 2022 Author Share Posted May 17, 2022 (edited) 31 minutes ago, Prestachamps said: Bonjour, Si vous utilisez le thème, il peut provenir du thème ou d'un module. En fonction de la page sur laquelle ils apparaissent, de la façon dont je le vois sur la page de liste, il est fort probable qu'il se trouve dans /themes/theme/templates/catalog/_partials/miniatures/product.tpl Sincères amitiés, Leo Bonjour Prestachamps voici le code du chemin que vous m'avez donné {* * 2007-2021 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2021 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name='product_miniature_item'} <article data-animation="fadeInUp" class="{if $page.page_name == 'category'}gridAnimate{/if} revealOnScroll animated fadeInUp product-miniature js-product-miniature {if $page.page_name == 'index'}col-xs-12 col-sm-6 col-lg-3{elseif $page.page_name == 'category'}col-xs-12 col-sm-6 col-md-6 col-lg-4{else}col-xs-12 col-md-4 col-lg-3{/if} {if isset($layout)}{if $layout == 'layouts/layout-full-width.tpl'}col-xs-12 col-sm-6 col-md-3{/if}{/if}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product"> <div class="thumbnail-container"> <div class="thumbnail-container-inner"> <div class="thumbnail-container-images"> {block name='product_thumbnail'} {if $product.cover} <a href="{$product.url}" class="thumbnail product-thumbnail"> <img src="{$product.cover.bySize.home_default.url}" alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}" data-full-size-image-url="{$product.cover.large.url}" itemprop="image"> {block name='quick_view'} <button class="quick-view" href="#" data-link-action="quickview"> {l s='Quick view' d='Shop.Theme.Actions'} </button> {/block} <div class="bonwishlist-hook-wrapper" data-id-product="{$product.id}"> {hook h="displayBonWishlist"} </div> <div class="boncompare-hook-wrapper" data-id-compare="{$product.id}"> {hook h="displaybonCompare"} </div> </a> {hook h="displayThumbnailsImage" product=$product type="hover"} {else} <a href="{$product.url}" class="thumbnail product-thumbnail"> <img src="{$urls.no_picture_image.bySize.home_default.url}"> </a> {/if} {/block} {hook h='displayProductPriceBlock' product=$product type="before_price"} {block name='product_flags'} <ul class="product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label} {if $flag.type === 'on-sale'} {if $product.discount_type === 'percentage'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if} {/if} </li> {/foreach} </ul> {/block} </div> <div class="thumbnail-container-bottom"> <div class="product-description"> {hook h='displayProductPriceBlock' product=$product type='weight'} {block name='product_reviews'} {hook h='displayProductListReviews' product=$product} {/block} <div style="display: none" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">4.9</span> <span itemprop="reviewCount">42</span> </div> <div style="display: none" class="comment clearfix" itemprop="review" itemscope itemtype="https://schema.org/Review"> <div class="comment_author"> <div class="star_content clearfix" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating"> <meta itemprop="worstRating" content="0" /> <meta itemprop="ratingValue" content="3" /> <meta itemprop="bestRating" content="5" /> </div> <div class="comment_author_infos"> <strong itemprop="author">asd</strong> <meta itemprop="datePublished" content="fdg" /> </div> </div> <div class="comment_details"> <h4 class="title_block" itemprop="name">rty</h4> <p itemprop="reviewBody">ewr</p> </div> </div> {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a> </h3> {else} <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a> </h3> {/if} {/block} <meta itemprop="description" content="{$product.description_short|strip_tags:'UTF-8'|truncate:130:'...'}" /> <meta itemprop="sku" content="{l s='1234' d='Shop.Theme.Catalog'}" /> <meta itemprop="mpn" content="{l s='1234' d='Shop.Theme.Catalog'}" /> {if $page.page_name == 'category'} {block name='product_description_short'} <div class="sort-description" id="product-description-short-{$product.id}" itemprop="description"> <p> {$product.description_short|strip_tags:'UTF-8'|truncate:130:'...'} </p> </div> {* <div class="product-description-min">{$product.description nofilter}</div> *} {/block}{/if} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span class="price {if $product.has_discount}price-has-discount{/if}">{$product.price}</span> <meta itemprop="price" content="95" /> <meta itemprop="priceCurrency" content="{$currency.iso_code}" /> <link itemprop="availability" href="https://schema.org/InStock" /> <meta itemprop="priceValidUntil" content="2020-11-05" /> <a style="display: none" itemprop="url" href="{$product.url}">{$product.url}">{$product.name|truncate:30:'...'}</a> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span> <span class="regular-price">{$product.regular_price}</span> {*{if $product.discount_type === 'percentage'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if}*} {/if} <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span> {hook h='displayProductPriceBlock' product=$product type='unit_price'} </div> {/if} {/block} </div> {* {block name='product_variants'} {if $product.main_variants} <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down"> {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} </div> {/if} {/block} *} <form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" class="product_page_product_id"> <input type="hidden" name="qty" value="1"> {hook h='displayBonAttribute' product=$product} {hook h='displayAttributeButton' product=$product} <div class="btn-row"> <button class="ajax_add_to_cart_button btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit" {if !$product.add_to_cart_url}disabled{/if}> <i class="fl-outicons-shopping-cart13"></i> {l s='Add to cart' d='Shop.Theme.Actions'} </button> {if $page.page_name == 'category'} <a href="{$product.url}" class="btn-view btn btn-primary"> {l s='view product' d='Shop.Theme.Actions'} </a>{/if} </div> </form> </div> </div> </div> </article> {/block} Avant de faire une connerie je supprime ces ligne ? merci : </button> {if $page.page_name == 'category'} <a href="{$product.url}" class="btn-view btn btn-primary"> {l s='view product' d='Shop.Theme.Actions'} Edited May 17, 2022 by franky (see edit history) Link to comment Share on other sites More sharing options...
franky Posted May 17, 2022 Author Share Posted May 17, 2022 2 hours ago, JulienPct said: Bonjour, Pourriez vous préciser si vous utilisez un thème et quelle version de PS vous avez ? Bonjour JulienPct j'utilise prestashop 1.7.8.5 et le thème c'est handmade de bonpresta Link to comment Share on other sites More sharing options...
JulienPct Posted May 17, 2022 Share Posted May 17, 2022 Bonjour, Comme expliqué ci-dessus, l'information devrait être dans le fichier "/themes/theme/templates/catalog/_partials/miniatures/product.tpl", cependant, si votre thème le surcharge, il est possible qu'il ai appelé une autre tpl depuis ce dernier. Il faut juste suivre où les chemins nous mènent 😃 1 Link to comment Share on other sites More sharing options...
franky Posted May 17, 2022 Author Share Posted May 17, 2022 C'est bon j'ai réussi merci a vous 2 Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 17, 2022 Share Posted May 17, 2022 il y a une heure, franky a dit : C'est bon j'ai réussi merci a vous 2 Pourriez-vous préciser votre démarche complète pour aider les prochains visiteur de votre topic ? 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