Manu-41 Posted January 17, 2022 Share Posted January 17, 2022 (edited) Bonjour, j'ai un souci d'affichage d'un carousel. Celui-ci s'affiche bien sur les catégories, mais pas sur les pages marque et recherche. C'est le carousel des promotions. Voici le code <div class="specials-products widget widget-categories mb-4 pb-4 border-bottom"> {if $page.page_name == 'category'} <p class="h3 pb-3 widget-title">Bons plans{*l s='On sale' d='Shop.Theme.Catalog'*}</p> {include file='catalog/_partials/products-list-left.tpl' rounded_img=true products=$products carousel=true} {else} <p class="h3 pb-3 widget-title">Bons plans{*l s='On sale' d='Shop.Theme.Catalog'*}</p> {include file='catalog/_partials/products-list.tpl' products=$products carousel=true} {/if} <div class="text-center pt-3"> <a class="btn btn-outline-accent" href="{$allSpecialProductsLink}">{l s='More products' d='Shop.Theme.Actions'}<i class="czi-arrow-right mr-n1 ml-2"></i></a> </div> </div> Par contre, si j'ajoute {if $page.page_name == 'manufacturer'} ça fonctionne (ajouter un nouveau block), mais le block catégorie reste. Edited January 17, 2022 by Manu-shop resolu (see edit history) Link to comment Share on other sites More sharing options...
Manu-41 Posted January 17, 2022 Author Share Posted January 17, 2022 Si ça peut aider d'autres personnes : {if $page.page_name == 'category' || $page.page_name == 'manufacturer'} Link to comment Share on other sites More sharing options...
Eolia Posted January 17, 2022 Share Posted January 17, 2022 {if in_array($page.page_name, array('category', 'manufacturer', 'supplier', 'search')} ... Link to comment Share on other sites More sharing options...
Manu-41 Posted January 17, 2022 Author Share Posted January 17, 2022 4 minutes ago, Eolia said: {if in_array($page.page_name, array('category', 'manufacturer', 'supplier', 'search')} ... Merci Eolia, pourquoi in_array ? Link to comment Share on other sites More sharing options...
Eolia Posted January 17, 2022 Share Posted January 17, 2022 si le nom de la page est dans le tableau... 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