X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Thumbnail full product description... (https://forum.x-cart.com/showthread.php?t=14254)

MythNReality 05-30-2005 02:20 AM

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? :arrow: :arrow: :?:

TelaFirma 05-30-2005 04:24 AM

{$product.fulldescr}

MythNReality 05-30-2005 02:21 PM

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? :?

instinctual 05-30-2005 03:14 PM

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)

MythNReality 05-30-2005 08:16 PM

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? :roll:

TelaFirma 05-30-2005 09:10 PM

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}

MythNReality 05-31-2005 08:34 PM

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! \:D/

MythNReality 05-31-2005 09:15 PM

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? 8O :?

TelaFirma 06-01-2005 07:08 AM

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... :) )

MythNReality 06-02-2005 10:54 PM

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.


All times are GMT -8. The time now is 11:06 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.