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

Short description above full

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-11-2005, 11:59 PM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default Short description above full

I am trying to get the short description to display right above the full description when a visitor looks at a product. I am sure I found it in the forum a long time ago but can't find it now. The forum only seems to let you look at the first page of results anyway

Has anyone managed to do this?

Thanks
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #2  
Old 02-12-2005, 05:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

I assume you are talking about product.tpl (the detailed products template). You will need to remove the if statement. Try replacing this:

Code:
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}

with this

Code:
{$product.descr} {$product.fulldescr}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-12-2005, 09:38 PM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default

Thank you very much, that did the trick in a second.
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #4  
Old 06-20-2005, 03:35 PM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

What if I needed both short and long description on the list of products in a category page, what do i edit?
Reply With Quote
  #5  
Old 06-20-2005, 03:37 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

products.tpl for single column display, products_t.tpl for multi-column.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-20-2005, 03:53 PM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

i tried to edit it like this but did not work


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


{$products[product].fulldescr|truncate:300:"...":true}
Reply With Quote
  #7  
Old 06-20-2005, 03:55 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Did not work meaning it didn't display or it caused an error?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 06-20-2005, 07:58 PM
 
Dorette Dorette is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 71
 

Default

did not display anything
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 08:14 AM.

   

 
X-Cart forums © 2001-2020