Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

how to add "brief description" to product box on front page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-31-2015, 11:08 PM
 
fortalk fortalk is offline
 

Newbie
  
Join Date: Jan 2015
Posts: 1
 

Default 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
__________________
X-Cart 5 Business
Reply With Quote
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:53 PM.

   

 
X-Cart forums © 2001-2020