| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
short description for three columns | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
#6
|
|||||||
|
|||||||
![]() 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.
|
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
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> |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Thanks,
found in products.tpl and all sorted. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|