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

Thumbnail full product description...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-30-2005, 02:20 AM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Thumbnail full product description...

Does anyone know the code to display the full description underneath the thumbnail?
Didn't find any in the forum, the closest one was display "description" but, that's not what I want...
Anyone?
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #2  
Old 05-30-2005, 04:24 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

{$product.fulldescr}
Reply With Quote
  #3  
Old 05-30-2005, 02:21 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Quote:
Originally Posted by TelaFirma
{$product.fulldescr}

Thanks for the feedback, but it doesn't work...

at the products t.tpl I've tried to replace:

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

with

{$product.fulldescr}

Nothing came up...should I modify anything else?
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #4  
Old 05-30-2005, 03:14 PM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default

Quote:
Originally Posted by MythNReality
Quote:
Originally Posted by TelaFirma
{$product.fulldescr}

Thanks for the feedback, but it doesn't work...

at the products t.tpl I've tried to replace:

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

with

{$product.fulldescr}

Nothing came up...should I modify anything else?

Looks to me like the full description is already being called into that template then, it's just being trucated at 180 characters. So get rid of that, simply change the "180" in the original statement to something large like 18000000.

That should do it for you ;o)
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote
  #5  
Old 05-30-2005, 08:16 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Quote:
Originally Posted by instinctual

Looks to me like the full description is already being called into that template then, it's just being trucated at 180 characters. So get rid of that, simply change the "180" in the original statement to something large like 18000000.

That should do it for you ;o)

I have tried playing with the code around and done what you said, but still nothing came up...any other ideas?
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #6  
Old 05-30-2005, 09:10 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

If you are calling it in "products_t.tpl then even {$products[product.fulldescr].descr|truncate:180:"...":true} is not correct. Your section loop should be named "product" so that would make the array pointer be [product].

So your existing code should actually be
Code:
{$products[product].descr|truncate:180:"...":true}

To get what you want, you need
Code:
{$products[product].fulldescr|truncate:180:"...":true}

If you do not want the description truncated to 180 characters, then simply use
Code:
{$products[product].fulldescr}
Reply With Quote
  #7  
Old 05-31-2005, 08:34 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Quote:
Originally Posted by TelaFirma
If you are calling it in "products_t.tpl then even {$products[product.fulldescr].descr|truncate:180:"...":true} is not correct. Your section loop should be named "product" so that would make the array pointer be [product].

So your existing code should actually be
Code:
{$products[product].descr|truncate:180:"...":true}

To get what you want, you need
Code:
{$products[product].fulldescr|truncate:180:"...":true}

If you do not want the description truncated to 180 characters, then simply use
Code:
{$products[product].fulldescr}

Thank you sooo much...it works! \
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #8  
Old 05-31-2005, 09:15 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Oooops

Quote:
Originally Posted by TelaFirma
If you are calling it in "products_t.tpl then even {$products[product.fulldescr].descr|truncate:180:"...":true} is not correct. Your section loop should be named "product" so that would make the array pointer be [product].

So your existing code should actually be
Code:
{$products[product].descr|truncate:180:"...":true}

To get what you want, you need
Code:
{$products[product].fulldescr|truncate:180:"...":true}

If you do not want the description truncated to 180 characters, then simply use
Code:
{$products[product].fulldescr}

Something went wrong...only certainly categories work, some categories got scewed up. Why will that be?
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #9  
Old 06-01-2005, 07:08 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Well, I was going to look at your site, but it seems you ahve a larger issue. When I load the site I get this error right in the middle of the page:

Fatal error: Smarty error: [in menu.tpl line 6]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 452) in /home/petad2/public_html/store/Smarty-2.6.3/Smarty.class.php on line 1082

(of course the font is not Red, I just did that for effect... )
Reply With Quote
  #10  
Old 06-02-2005, 10:54 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Quote:
Originally Posted by TelaFirma
Well, I was going to look at your site, but it seems you ahve a larger issue. When I load the site I get this error right in the middle of the page:

Fatal error: Smarty error: [in menu.tpl line 6]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 452) in /home/petad2/public_html/store/Smarty-2.6.3/Smarty.class.php on line 1082

(of course the font is not Red, I just did that for effect... )

Thanks, I have got my site fixed (finally)...I did quite a lot of modification with the X-cart template. Sometimes, it just went "strike" on me.
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
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 01:55 PM.

   

 
X-Cart forums © 2001-2020