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)
-   -   help with products_list.tpl problem, repeating product? (https://forum.x-cart.com/showthread.php?t=61021)

totaltec 09-27-2011 05:04 PM

Re: help with products_list.tpl problem, repeating product?
 
Yes that looks like the right way to do it.

plnewton 09-27-2011 05:05 PM

Re: help with products_list.tpl problem, repeating product?
 
Do you see how the table is too large? How do i limit the table size, and remove ;
Products

Sort by: SKU - products, etc at the top? It seems this part is causing the table too large, plus I don't need it. I just want SKU, link, and picture. Which template file do i need to edit to remove this?

plnewton 09-27-2011 05:07 PM

Re: help with products_list.tpl problem, repeating product?
 
Ok, when I only included products_t.tpl, it did what I wanted to do.


Now, how do I change the table width so it's not stretching across the screen?

plnewton 09-27-2011 05:08 PM

Re: help with products_list.tpl problem, repeating product?
 
currently it's set to width-100 ? i believe?

plnewton 09-27-2011 05:10 PM

Re: help with products_list.tpl problem, repeating product?
 
I think somehow I need to edit this?

<table cellspacing="3" class="products products-table width-100" summary="{$lng.lbl_products_list|escape}">

totaltec 09-27-2011 05:13 PM

Re: help with products_list.tpl problem, repeating product?
 
It looks like {include file="customer/main/navigation.tpl"}
in /common_files/modules/Manufacturers/customer_manufacturer_products.tpl
But I don't have a store with manufacturers enabled so I can't be sure.

totaltec 09-27-2011 05:16 PM

Re: help with products_list.tpl problem, repeating product?
 
Sorry that last post was in response to #22.

Yes now you can just use css styles to influence your design.

plnewton 09-27-2011 05:20 PM

Re: help with products_list.tpl problem, repeating product?
 
Do you mind looking at my code, and telling me what you think is wrong with my design? The products_t.tpl is throwing off my design!!!


Here's my products_t.tpl file;

{*



$Id: products_t.tpl,v 1.3.2.5 2010/12/15 11:57:05 aim Exp $



vim: set ts=2 sw=2 sts=2 et:



*}







{list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row}



{assign var="is_matrix_view" value=true}







{if $products_matrix}







<table cellspacing="3" class="products products-table width-100" summary="{$lng.lbl_products_list|escape}">







{foreach from=$products_matrix item=row name=products_matrix}







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







{*Display product_thumbnail product_offer_thumb*}



{foreach from=$row item=product name=products}



{if $product}







<td{interline name=products additional_class="product-cell"}>



<div class="image">



<a href="{$product.alt_url|default:$product.page_url| amp}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>



</div>



</td>







{/if}



{/foreach}







</tr>













{*Display product code*}



{if $config.Appearance.display_productcode_in_list eq "Y"}



<tr{interline name=products_matrix}>







{foreach from=$row item=product name=products}



{if $product}







<td{interline name=products additional_class="product-cell"}>



{if $product.productcode}



<div class="sku"><a href="{$url}">{$product.productcode|escape}</a></div>



{else}



&nbsp;



{/if}



</td>







{/if}



{/foreach}







</tr>



{/if}

































{if not $smarty.foreach.products_matrix.last}



<tr class="separator">



<td colspan="{$config.Appearance.products_per_row|defa ult:1}">&nbsp;</td>



</tr>



{/if}







{/foreach}







</table>







{/if}






When I remove the include products_t.tpl, my design goes back to normal. So, it's something within this file causing the issue, I believe.


Link to my site is here; http://5dollarinkcartridges.com.au/newsite/manufacturers.php?manufacturerid=3

plnewton 09-27-2011 06:07 PM

Re: help with products_list.tpl problem, repeating product?
 
Never mind! I got it. Had a table over a table tag. lol Thanks for the help, do0d!!!!! You rock!!!!!!!!

totaltec 09-27-2011 06:10 PM

Re: help with products_list.tpl problem, repeating product?
 
You're very welcome. Whew! I'm glad we got through it. :-)
Hit those thanks buttons, I'm playing this like a video game and that's my score....

Where are you from? I'm in Louisville, KY USA


All times are GMT -8. The time now is 01:49 PM.

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