Manu-41 Posted March 24, 2021 Share Posted March 24, 2021 Bonjour, je cherche pour pretsashop 1.6 à ne pas afficher un élément sur version mobile. Je ne veux pas utiliser le css car c'est toujours appelé. Il doit avoir une variable qui détecter qu'un client est sur mobile, tablette ou pc. Comment trouver ces variables? ou informations Merci pour vos informations Link to comment Share on other sites More sharing options...
Alexandre Carette Posted March 25, 2021 Share Posted March 25, 2021 Salut, dans un tpl: {if $mobile_device} vous êtes sur mobile {else} vous n'êtes pas sur mobile {/if} {if $mobile_device} vous êtes sur mobile {else} vous n'êtes pas sur mobile {/if} Link to comment Share on other sites More sharing options...
Manu-41 Posted March 25, 2021 Author Share Posted March 25, 2021 33 minutes ago, Alexandre Carette said: Salut, dans un tpl: {if $mobile_device} vous êtes sur mobile {else} vous n'êtes pas sur mobile {/if} {if $mobile_device} vous êtes sur mobile {else} vous n'êtes pas sur mobile {/if} ha, super! Ca fonctionne 😉 merci 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