Pere-e Posted January 22, 2019 Share Posted January 22, 2019 Buenas, Estoy intentando obtener si un cliente pertenece a un grupo en concreto, id 132. {assign var="defaultGroupID" value=Customer::getDefaultGroupId((int)$cookie->id_customer)} Con esto obtengo el grupo predeterminado, pero no sé como obtener totdos los grupos y comprovar si pertenece al grupo id 132. hay alguna variable que contenga todos los grupos? Link to comment Share on other sites More sharing options...
Pedro Posted January 22, 2019 Share Posted January 22, 2019 me interesa a mi tambien Link to comment Share on other sites More sharing options...
digitalDot Posted November 10, 2019 Share Posted November 10, 2019 Hola , sobre Prestashop 1.7 lo puedes hacer con la función getGroupsStatic ejemplo {assign var="groupid" value=Customer::getGroupsStatic((int)$customer.id)} {if '1'|in_array:$groupid} Pertenece al grupo {else} No pertenece {/if} 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