TOPIC:

Product Layout - template 4 months 4 weeks ago #247118

  • Topic Author
  • marcusadamski
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Product Layout - template 4 months 4 weeks ago #247171

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
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

Please Log in or Create an account to join the conversation.

Product Layout - template 4 months 4 weeks ago #247181

  • Topic Author
  • marcusadamski
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 36
  • Thanks: 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

Please Log in or Create an account to join the conversation.

Product Layout - template 4 months 3 weeks ago #247252

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 807
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
The following user(s) said Thank You: marcusadamski

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.037 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!