Jump to content

Theme Panda Modulo "Stickers Block" - Mostrar etiquetas según grupo de clientes


manakke

Recommended Posts

Hola,

alguien sabe como se puede hacer para que una etiqueta se muestre a un grupo de clientes concreto en el modulo Stickers de Panda?

Asignar etiquetas y pegatinas a determinados clientes.

Quote

Hello, Does anyone know how to get a label to be shown to a specific group of customers in the Stickers module of Panda "Stickers Block"?

stickers-grupo-clientes.png

 

Faltaría hacer la función para lanzar la consulta y validar para hacer solo visible el sticker a un grupo de clientes:

<select name="sticker_group" class=" fixed-width-xl" id="sticker_group">
<option value="0" selected="selected">Todos los Clientes</option>
<option value="1">Visitantes</option>
<option value="2">Invitado</option>
<option value="3">Cliente</option>
</select>

Como se debe hacer la consulta?

        self::$group = array(

            0 => array(
                'id' => 0,
                'value' => 0,
                'name' => $this->getTranslator()->trans('Todos los Clientes', array(), 'Modules.Ststickers.Admin'),
            ),
            1 => array(
                'id' => 1,
                'value' => 1,
                'name' => $this->getTranslator()->trans('Visitantes', array(), 'Modules.Ststickers.Admin'),
            ),
            2 => array(
                'id' => 2,
                'value' => 1,
                'name' => $this->getTranslator()->trans('Invitado', array(), 'Modules.Ststickers.Admin'),
            ),
            3 => array(
                'id' => 3,
                'value' => 1,
                'name' => $this->getTranslator()->trans('Cliente', array(), 'Modules.Ststickers.Admin'),
            ),
);

 

Edited by manakke (see edit history)
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...