Bienvenido, Invitado
Recordarme

TEMA:

Product Layout - template 7 meses 2 semanas antes #247118

  • Autor del tema
  • marcusadamski
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 36
  • Gracias recibidas: 0
Hello,

I'd like to understand the best approach for changing how a product item is displayed (I.e. a product item on menu item-> category). I can use CSS overrides for most things, but if I'd like to change the order of the fields (for instance), what is the best approach? Do you have a template system which can be overridden , without loosing changes from extension updates ?

For example: product display changed from:

crbc-product-title
crbc-product-price-container
crbc-stock-message
crbc-product-image-container

to:

crbc-product-title
crbc-stock-message
crbc-product-image-container
crbc-product-price-container


Many thanks
Marcus

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Product Layout - template 7 meses 2 semanas antes #247171

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
Hi,

if you want to change markup / css classes ordering, I would use the joomla template override system. Especially with things like shops it makes a lot of sense to go that route.

You can basically override anything in /components/com_breezingcommerce/views/VIEWNAME/tpl/

For regular HTML views, the templates are called "default.php" and would go as copy into /templates/ACTIVETEMPLATE/html/com_breezingcommerce/VIEWNAME/

Please see:

docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

Regards,
Markus

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Product Layout - template 7 meses 2 semanas antes #247181

  • Autor del tema
  • marcusadamski
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 36
  • Gracias recibidas: 0
Thanks Markus - just to get my bearings, could you please identify which file I'd need to change to reorder the display of product item fields, on the product category listing (grid view).

i.e.
crbc-category-page.crbc-simple .crbc-category-product-entry

Once I familiarise myself with your extension, I won't need to ask so many questions :-)

Many thanks
Marcus

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Product Layout - template 7 meses 2 semanas antes #247252

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
Hi,

please see /components/com_breezingcommerce/views/category/tmpl/default.php as well as /components/com_breezingcommerce/views/categories/tmpl/default.php

In general, the files you can override are stored in the /tmpl/ folders, usually it is the default.php for each of those.

Regards,
Markus
El siguiente usuario dijo gracias: marcusadamski

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Tiempo de carga de la página: 0.051 segundos