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

My products are out of my dialog table & I can't get the

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-30-2003, 04:44 PM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default My products are out of my dialog table & I can't get the

Here's the problem

I have categories displayed *inside* dialog.tpl

and subcategories displayed *inside* of dialog.tpl

but my products display *BELOW* dialog.tpl


I have been staring at this a very long time...anyone throw me a bone?
thanks,
liz
Reply With Quote
  #2  
Old 08-30-2003, 05:00 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Start by throwing us a bone.

What version are you using, did you mod code and if so, let's get your code posted here for us to look at.

General posts like this get passed over...
Reply With Quote
  #3  
Old 08-30-2003, 06:06 PM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default

I'm using version 3.3.7

I've been making mods all over the place ...but my current products.tpl looks like below:



{* $Id: products.tpl,v 1.21.2.2 2003/03/11 10:49:14 svowl Exp $ *}
{section name=product loop=$products}
<table border=0 width=100%>
<tr><td width=90 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=70 product=$products[product].product}
{$lng.lbl_see_details}</a>
</td>
<td valign=top>
{$products[product].product}</font>
<font size=1>




{$products[product].descr|truncate:300:"...":true}


</font>
<hr size=1 noshade width=230 align=left>
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}
{if $products[product].price ne 0}
{if $products[product].discount ne 0}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{math equation="price/(1-(discount/100))" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted}{include file="currency.tpl" value=$unformatted}
</s></font>

{/if}
<font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].discount ne 0}, save {$products[product].discount}%{/if}{if $config.General.use_vat eq "Y"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if}
{else}
<font class=ProductPrice>{$lng.lbl_enter_your_price}</font>
{/if}
{/if}
</td></tr>
</table>






{/section}


I'm fried.
Liz
Reply With Quote
  #4  
Old 08-30-2003, 06:22 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

It looks like you are starting your loop outside of the table and looping the table itself.

I'm no pro at this, and in the middle of my own personal nightmare but try this.

Code:
{* $Id: products.tpl,v 1.21.2.2 2003/03/11 10:49:14 svowl Exp $ *} {section name=product loop=$products} <table border=0 width=100%> <tr><td width=90 align=center valign=top>

change this to

Code:
{* $Id: products.tpl,v 1.21.2.2 2003/03/11 10:49:14 svowl Exp $ *} <table border=0 width=100%> {section name=product loop=$products} <tr><td width=90 align=center valign=top>

and change this at the end

Code:
{/if} {/if} </td></tr> </table> {/section}

change it to

Code:
{/if} {/if} {/section} </td></tr> </table>

See if that helps. The section loop is within my main table. It is not in the code you posted. A mis-looped table might be part of your troubles.

Good Luck! Maybe fix your thread title too. It's kinda stuck mid sentence.
Reply With Quote
  #5  
Old 08-30-2003, 06:25 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Oh yeah, I didn't want to give you bad advice so i tested it on my live store (probably not a good idea).

Looks good to me.

Hope it works for you. NOW ADD YOUR VERSION NUMBER TO YOUR FORUM SIG. Have a great night!
Reply With Quote
  #6  
Old 08-30-2003, 07:24 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Quote:
Originally Posted by adpboss
tested it on my live store (probably not a good idea).

class
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
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 03:24 AM.

   

 
X-Cart forums © 2001-2020