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

short description for three columns

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-28-2008, 06:01 AM
 
sam22 sam22 is offline
 

Member
  
Join Date: Feb 2008
Posts: 24
 

Default short description for three columns

can someone please tell me how to have the short descriptions show up when i use a three column format?
thanks,
bhb
__________________
4.1.8
Reply With Quote
  #2  
Old 08-28-2008, 06:15 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: short description for three columns

When you move to a column display the template changes from
skin1/customer/main/products.tpl
to
skin1/customer/main/products_t.tpl

So you need to edit this template accordingly. If you look at the first template, you will find the bits of code you need - in this case you want:

{$products[product].descr|truncate:300:"...":true}

So put that in where you need it.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 08-28-2008, 06:22 AM
 
sam22 sam22 is offline
 

Member
  
Join Date: Feb 2008
Posts: 24
 

Default Re: short description for three columns

sorry to be a bother, but smarty is new to me, can you tell me where i put this code so it shows up centered and in lieu of see details?
__________________
4.1.8
Reply With Quote
  #4  
Old 08-28-2008, 04:04 PM
  boomobile's Avatar 
boomobile boomobile is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 306
 

Default Re: short description for three columns

If you are familiar with HTML, then you can cut and paste the entire tpl code into dreamweaver (or other wysiwyg editor) and you can see the general layout of where everything is placed. Open a new html file, switch to "code view" locate the <body> </body> tags and paste between them. Now you can switch to "design view" to see the general layout.
You won't view the actual page or any of the CSS edits, but you will see where you need to place the code. Be careful not to break any other code when you place the smarty tag, and use the "code view" to place the tag.
Remember to only copy your tpl code when pasting back into your tpl file. Also Dreamweaver has a nasty habit of adding extra spaces and hard returns. You'll want get rid of any "tabbing" dreamweaver does.
__________________
X Cart Ver: 4.0.14
MySQL4 4.1.22
phpMyAdmin 2.6.0
Pearl 5.6.0
PHP 5.2.1
Python 2.2.2
Server: Apache/2.0.52 (Red Hat)
OS: Linux
www.cleanlinesurf.com
1. Customer Rewards Points
2. One Page Checkout (altercart)
3. Free shipping orders over $50 as Real Time Shipping
4. Gift Certificates
-----------------------------------------------
Graphic Design | Boomobile Design, LLC
www.boomobile.com
Reply With Quote
  #5  
Old 01-20-2009, 12:34 PM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default Re: short description for three columns

Wanted to do this aswell in 4.2 and after some failures found this works:

<p class="descr">{$product.descr}</p>

I got it to display under the SKU code at the top of the item by adding it below:

{if $config.Appearance.display_productcode_in_list eq "Y" && $product.productcode}
<div class="sku">{$lng.lbl_sku}: {$product.productcode|escape}</div>
{/if}

Hope that helps others on 4.2
Reply With Quote
  #6  
Old 05-01-2009, 08:18 AM
 
kevingibson kevingibson is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Sunderland, UK
Posts: 51
 

Default Re: short description for three columns

Thank you Nivag this worked well in 4.2 - why they didnt just leave it in amazes me, it should have been an option in the admin.
__________________
xcart version 4.0.14
windows server

http://www.3k-design.co.uk
Reply With Quote
  #7  
Old 05-10-2009, 12:05 AM
  AusNetIT's Avatar 
AusNetIT AusNetIT is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 152
 

Default Re: short description for three columns

Quote:
Originally Posted by pauldodman
When you move to a column display the template changes from
skin1/customer/main/products.tpl
to
skin1/customer/main/products_t.tpl

So you need to edit this template accordingly. If you look at the first template, you will find the bits of code you need - in this case you want:

{$products[product].descr|truncate:300:"...":true}

So put that in where you need it.


Under my Prodtucts_t.tpl

i have change to this but nothing happen?


<div class="ProdTitle"><a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}" class="ProductTitle">{$products[product].product|truncate:100:"...":true}</a><br />
{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
<font class="SmallText">{$lng.lbl_sku}: {$products[product].productcode}</font><br />
{/if}</div>
__________________
Melbourne website design | SEO in Melbourne

Installed Ver 4.6.0
Reply With Quote
  #8  
Old 05-12-2009, 03:15 AM
  AusNetIT's Avatar 
AusNetIT AusNetIT is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 152
 

Default Re: short description for three columns

Thanks,

found in products.tpl and all sorted.
__________________
Melbourne website design | SEO in Melbourne

Installed Ver 4.6.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 10:23 PM.

   

 
X-Cart forums © 2001-2020