View Single Post
  #2  
Old 02-03-2015, 05:52 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: how to add "brief description" to product box on front page

Hi!

The template that renders that area is:
skins/default/en/items_list/product/center/grid/body-css-layout.tpl

You are particularly interested in the part:
Code:
<div class="{getProductCellClass(product)}"> <list name="info" type="inherited" product="{product}" /> </div>

that actually displays product image, ratings, etc.

The <list name="info" type="inherited" product="{product}" /> code displays the content of the "itemsList.product.grid.customer.info" view list (more info about view lists http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-UnderstandingX-Cartlayoutsystem)

You can apply your change as follows:
0) Create an empty module (http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module)
1) In order to remove ratings, remove the modules/XC/Reviews/product.items_list.rating.tpl template from the "itemsList.product.grid.customer.info" view list (http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-Hidingtemplatesandwidgets)
2) create your template that will display brief description and insert it into the "itemsList.product.grid.customer.info" view list with 15 weight (http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes#Step2-applyingdesignchanges-Addingnewtemplatesandwidgets)

Please, let me know if it all makes sense to you. Surely, if there are any questions, feel free to ask.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote