Jump to content

jdre

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • First Name
    jdre
  • Last Name
    jdre

jdre's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Good morning everyone. I am starting with prestashop and I have a doubt. I would like to create a module, whose functionalities would be to display the categories (right panel), if you click on a category would show the products of that category (central panel) and your pulse the product would be added to my cart-fixed (Panel on the left) . This would simulate a kind of ticket. My idea is that if a user registered with a role "Role A" logs on, he would be shown the normal Home view of the Prestashop e-comerce page. But if you register a user with "Rol B" login. I would just show you the view of the module I created. 1. I would like to know if this logic is possible 2. If someone could guide me how to do it, since in the documentation and on the internet I find no references to this At the moment I have already created my module, whose view shows some of what I described above. I only show all the products and all categories by making a query directly to the database of prestashop and then show it in the view (.tpl). Another question I have, is how I can occupy the entire width of the screen. Since the elements created in my view are placed in the center and leave the margin of the right column (A) and the left column ( of the home view (View attached photo) Thanks!
  2. Buenas a todos. Estoy empezando con prestashop y me ha surgido una duda. Me gustaria crear un modulo, cuyas funcionalidades serian mostrar las categorias (Panel derecho), si se pulsa una categoria mostraria los productos de esa categoria (Panel central) y su pulso el producto se añadiria a mi carrito-fijo (Panel de la izquierda). Esto simularia una especie de ticket. MI idea es que si un usario registrado con un rol "Rol A" inicia sesion, se le mostraria la vista Home normal de la pagina e-comerce de Prestashop. Pero si se registra un usuario con "Rol B" inicia sesion. solo le mostraria la vista (Template) del modulo que he creado. 1. Me gustaria saber si esta logica es posible 2. Si alguien me podria orientar a como hacerlo, ya que en la documentacion y en internet no encuentro referencias a esto De momento ya tengo creado mi modulo, cuya vista (Template) muestra parte de lo que he descrito anteriormente. Solo muestro todos los productos y todos las categorias haciendo una consulta directamente a la base de datos de prestashop y luego lo muestro en la vista (.tpl). Otra duda que tengo, es como puedo ocupar todo el ancho de la pantalla. Ya que los elementos creados en mi vista se situan en el centro y dejan el margen de la columna derecha(A) y de la columna izquierda( de la vista de home (Visualizar foto adjunta) Gracias saludos.
×
×
  • Create New...