![]() |
how to add "brief description" to product box on front page
I want to add "brief description" between name and price on product box and remove the rating star icon from the product box. I really appreciate if anybody can give me a instruction? like below picture:
http://www.fortalk.com/images/product.jpg |
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)}"> 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. |
All times are GMT -8. The time now is 12:32 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.