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

help with products_list.tpl problem, repeating product?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 09-27-2011, 05:04 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: help with products_list.tpl problem, repeating product?

Yes that looks like the right way to do it.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
plnewton (09-28-2011)
  #22  
Old 09-27-2011, 05:05 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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?
__________________
Version 4.4.3
Reply With Quote
  #23  
Old 09-27-2011, 05:07 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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?
__________________
Version 4.4.3
Reply With Quote
  #24  
Old 09-27-2011, 05:08 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: help with products_list.tpl problem, repeating product?

currently it's set to width-100 ? i believe?
__________________
Version 4.4.3
Reply With Quote
  #25  
Old 09-27-2011, 05:10 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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}">
__________________
Version 4.4.3
Reply With Quote
  #26  
Old 09-27-2011, 05:13 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
plnewton (09-28-2011)
  #27  
Old 09-27-2011, 05:16 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
plnewton (09-28-2011)
  #28  
Old 09-27-2011, 05:20 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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
__________________
Version 4.4.3
Reply With Quote
  #29  
Old 09-27-2011, 06:07 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default 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!!!!!!!!
__________________
Version 4.4.3
Reply With Quote
  #30  
Old 09-27-2011, 06:10 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
plnewton (09-28-2011)
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 12:19 PM.

   

 
X-Cart forums © 2001-2020