![]() |
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 |
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... |
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 |
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 $ *} change this to Code:
{* $Id: products.tpl,v 1.21.2.2 2003/03/11 10:49:14 svowl Exp $ *} and change this at the end Code:
{/if} change it to Code:
{/if} 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. |
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! :) |
Quote:
:lol: class |
All times are GMT -8. The time now is 08:57 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.