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

Incomplete short description

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-21-2005, 04:20 PM
 
MoCoSo MoCoSo is offline
 

Newbie
  
Join Date: Jan 2005
Posts: 2
 

Default Incomplete short description

I have a little problem finding out how to see the short description complete.
Unfortunately, my client provided me his short descriptions a little bit longer than needed, but he didnt like the three dots appearing at the short description area at all.

Ej. Steel furniture with bla...

I tried at the product.tpl but i cant find anything regarding the maximum characters or lenght specified for that area.

Any Ideas?
__________________
x-cart version 4.0.8
Reply With Quote
  #2  
Old 02-21-2005, 04:34 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Are you sure it is cut off on the product detail page (controlled by product.tpl)? Or do you mean on the products list page (controlled by products.tpl)

Look in skin1/customer/main/products.tpl and find the line that looks like this:
Code:
{$products[product].descr|truncate:300:"...":true}

Change the numeric value of truncate:300 to something larger to suit your needs, for example truncate:1000
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 02-21-2005, 04:42 PM
 
MoCoSo MoCoSo is offline
 

Newbie
  
Join Date: Jan 2005
Posts: 2
 

Default That did it

Thanks a bunch hooter,that did it.
You were right, i was looking in the wrong place.
__________________
x-cart version 4.0.8
Reply With Quote
  #4  
Old 04-06-2005, 08:14 AM
 
Sonia Sonia is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 72
 

Default Longer Detailed Description

Hey, I have a product that has a hugely long detailed product description. I'm resisting breaking it up into multiple pages as I think the people reading it will want to print it all out at once.

How can I make it so I can add more code/content? Is that even possible?

I found this - /main/product_details.tpl

Code:
<TEXTAREA name="fulldescr" cols="45" rows="10" class="InputWidth">{$product.fulldescr|escape:"html"}</TEXTAREA>

but it doesn't have any limits, so I don't know where I need to change it to expand the amount of characters allowed. Am I missing something? Tell me I don't have to go into the MySQL tables - I don't know how to do that!!

ideas?
__________________
Sonia

www.vidaville.com
Xcart Gold 4.0.16
platform - Windows
Reply With Quote
  #5  
Old 05-04-2005, 07:40 PM
 
F5Performance F5Performance is offline
 

Senior Member
  
Join Date: Feb 2005
Location: Dallas TX
Posts: 111
 

Default

Quote:
Originally Posted by hooter
Are you sure it is cut off on the product detail page (controlled by product.tpl)? Or do you mean on the products list page (controlled by products.tpl)

Look in skin1/customer/main/products.tpl and find the line that looks like this:
Code:
{$products[product].descr|truncate:300:"...":true}

Change the numeric value of truncate:300 to something larger to suit your needs, for example truncate:1000

I looked for this in my version and I cannot locate it. I have thsi same problem. Any idea on where I change this?
__________________
Xcart Gold 4.0.17
mysql Ver 12.22 Distrib 4.0.16
perl versionperl, v5.8.3
php version PHP 4.3.11
Reply With Quote
  #6  
Old 07-09-2012, 07:53 PM
 
jl1 jl1 is offline
 

Member
  
Join Date: Jun 2012
Posts: 10
 

Default Re: Incomplete short description

Quote:
Originally Posted by hooter
Are you sure it is cut off on the product detail page (controlled by product.tpl)? Or do you mean on the products list page (controlled by products.tpl)

Look in skin1/customer/main/products.tpl and find the line that looks like this:
Code:
{$products[product].descr|truncate:300:"...":true}

Change the numeric value of truncate:300 to something larger to suit your needs, for example truncate:1000

Nice, hooters!

Do you have a fix like this for v 4.5 ?

Can't seem to find any truncate in products.tpl, or product.tpl?

__________________
X-Cart Gold v4.5.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 09:19 AM.

   

 
X-Cart forums © 2001-2020