kliffde Posted June 19, 2012 Share Posted June 19, 2012 (edited) Bonjour, Tout est dans le titre. http://www.montre-led-couleur.fr/ Merci à celui qui me sauvera. [Résolu] Edited June 19, 2012 by kliffde (see edit history) Link to comment Share on other sites More sharing options...
Patric Posted June 19, 2012 Share Posted June 19, 2012 Salut kliffde, Je déplace ton sujet dans "Intégration", tu auras plus de chances d'avoir une réponse. Et je t'invite à jeter un oeil au template par défaut de PrestaShop qui contient ces boutons. Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 Je ne suis pas un expert, c'est bien dans le homefeatured.tpl que çà se passe ? Link to comment Share on other sites More sharing options...
Atch Posted June 19, 2012 Share Posted June 19, 2012 Oui. Pour vous faire gagner du temps... {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} V++ Atch Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 Oui. Pour vous faire gagner du temps... {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} V++ Atch Je suis un peu chiant, mais en remplaçant mon code par le votre, çà n'affiche toujours pas le bouton. Voici le mien : {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} Link to comment Share on other sites More sharing options...
Atch Posted June 19, 2012 Share Posted June 19, 2012 Avez vous vidé le cache compile de votre boutique? (mettre, dans performances, forcer la compilation smarty à oui ) V++ Atch Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 (edited) Oui je l'ai fait... En fait, le code que vous m'avez donné est le même qui était déjà sur mon.tpl... Edited June 19, 2012 by kliffde (see edit history) Link to comment Share on other sites More sharing options...
Atch Posted June 19, 2012 Share Posted June 19, 2012 Dans quel répertoire avez vous mis le code? Ce module est certainement sur couché dans le theme. Regardez si dans le thème, il n'y a pas un répertoire modules avec le module homefeatured à l'intérieur. V++ Atch Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 Le code est déjà dans les 2 tpl suivants : modules/homefeatured themes/prestashop_new/modules/homefeatured J'en perd mon latin... Merci de votre gentillesse Link to comment Share on other sites More sharing options...
Atch Posted June 19, 2012 Share Posted June 19, 2012 Les boutons y sont !!! il y a un display none dans le css du theme ( global.css certainement) #featured-products_block_center li .ajax_add_to_cart_button { display: none; } Virez cette ligne. V++ Atch 2 Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 Merci mon ami. Merci vous êtes très gentil, çà fait plaisir de rencontrer quelqu'un d'aussi généreux que vous, çà devient rare dans ce monde... En bref, vous êtes un véritable expert de prestashop et mon héros du jour. Merci encore infiniment. Bonne journée. 1 Link to comment Share on other sites More sharing options...
Patric Posted June 19, 2012 Share Posted June 19, 2012 kliffde, si ton problème est résolu, merci de prendre l'habitude de mettre tes topics en [Résolu] ! ;-) Voir ici comment faire. Link to comment Share on other sites More sharing options...
kliffde Posted June 19, 2012 Author Share Posted June 19, 2012 Je cherchais comment faire... Link to comment Share on other sites More sharing options...
doodu94 Posted August 2, 2012 Share Posted August 2, 2012 Le bouton panier est ajouté sur les produit phare mais je n'arrive pas le mettre où je souhaite. Une piste ? je ne sais pas class à créer Link to comment Share on other sites More sharing options...
doodu94 Posted August 2, 2012 Share Posted August 2, 2012 Quand on déplace le bouton, la colonne de droite se déplace également :-( une piste ? Link to comment Share on other sites More sharing options...
NaiveWebdesign Posted November 15, 2013 Share Posted November 15, 2013 Pour infos la fameuse ligne de code à supprimer se trouve ligne 63 dans le dossier ../modules/homefeatured/homefeatured.css Quand on déplace le bouton, la colonne de droite se déplace également :-(une piste ? Utilise un padding left 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