View Single Post
  #11  
Old 11-10-2014, 04:55 AM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Shop By Brand module for X-Cart 5

The link to the template file is defined here:
\XLite\Module\QSL\ShopByBrand\View\Product\Details \Brand::getDefaultTemplate()

The logic is as follows:

1. The "@ListChild" tag in the product/details/parts/brand.tpl template makes this template appear on the product page (and in the quick look).

2. This template renders the XLite\Module\QSL\ShopByBrand\View\Product\Details\ Brand widget. "Renders" means that it calls the "display()" method of the specified widget class. However, in most cases this method does the only thing: it renders the template that is specified in the getDefaultTemplate() method of the widget class. So, "rendering a widget class" will likely show the template file the method defines.
Reply With Quote