Jump to content

Variable sur version mobile?


Recommended Posts

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

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

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...