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)
-   -   Featured Products Multicolumn Format w/Descriptions (https://forum.x-cart.com/showthread.php?t=61271)

Dawn Howard 10-18-2011 09:36 AM

Featured Products Multicolumn Format w/Descriptions
 
Can it be done? Currently the only way I can display featured products with descriptions is as a single column.

cflsystems 10-18-2011 10:33 AM

Re: Featured Products Multicolumn Format w/Descriptions
 
Yes. You need to modify products_t.tpl and include description in it. If you need it to work on feature dproducts only you can make a copy of that file and use it for featured products only

Dawn Howard 10-25-2011 07:52 AM

Re: Featured Products Multicolumn Format w/Descriptions
 
Thanks CFL. Could anyone give me some more info on what to modify within the file? I do only need it to work on the featured products.

Eyeglasses Expert 10-30-2011 03:17 AM

Re: Featured Products Multicolumn Format w/Descriptions
 
I like this function also.

qualiteam 11-07-2011 05:41 AM

Re: Featured Products Multicolumn Format w/Descriptions
 
1. Copy the "skin/common_files/customer/main/products_t.tpl" template to "skin/%your_skin%/customer/main/products_t.tpl"
(e.g. "skin/2-columns/customer/main/products_t.tpl" in case of 2-columns skin).

2. Add the following code:

Code:

<tr{interline name=products_matrix additional_class="product-description-row"}>

  {*Display product description *}
  {foreach from=$row item=product name=products}
    {if $product}

      <td{interline name=products additional_class="product-cell"} style="width: {$cell_width}%;">
        <span class="product-descr">{$product.descr|amp}</span>
      </td>
               
      {/if}
  {/foreach}

</tr>


e.g. right before the following one:
Code:

{*Display product code*}


All times are GMT -8. The time now is 06:57 PM.

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