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)
-   -   Diaglog box problem, still displays but should be blank (https://forum.x-cart.com/showthread.php?t=46841)

CC 04-08-2009 09:39 AM

Diaglog box problem, still displays but should be blank
 
Hi guys

Please can you look at this custom code and help me a little?
I am attempting to place code on the homepage using a custom mod, and it should not include the dialog.tpl box template.
It should simply be a single item with no surround at all, this is my code:
Code:

{capture name=dialog}
{section name=product loop=$products}
 <div>
        <div id="dotdContainer">
                <div style="float:left; margin-right:10px; position:relative; left:175px; top:15px;"><a href="{include file='customer/fts_featured_makelink.tpl' product=$products[product]}">
                        {include file="product_thumbnail.tpl" productid=$products[product].productid image_x="$thumb_x" image_y="$thumb_y" product=$products[product].product tmbn_url=$products[product].tmbn_url}</a>
                </div>
                <div style="position:relative; left:185px; top:20px;">
                        <a href="{include file='customer/fts_featured_makelink.tpl' product=$products[product]}">{$products[product].product}</a>
                        <br style="line-height: 1em;">
                        {$products[product].descr|truncate:200:"...":true}
                </div>
                <div id="dotdBox">
                        <div id="dotdPrice">
                        <br style="line-height: 1em;">Now:<span style="font-size: 1.2em;" class="red bold">
                        {* Price *} {include file='customer/fts_featured_price.tpl' product=$products[product] show_price='Y' show_listprice='Y' show_discount='Y' show_alternatecurrency='Y' show_taxes='Y'} {include file='customer/fts_featured_comparison.tpl' mode='foot' show='Y'}</span>
                        </div>
                        <br style="line-height: 1em;">
                </div>
        </div>
 </div>
{/section} {/capture} {include file="customer/dialogblank.tpl" title=$title content=$smarty.capture.dialog extra="width=100%"}


The code within the dialogblank.tpl file called is:
Code:

<div>
{$content}
</div>


So it should contain no border box or title at all, but for some reason it STILL displays the code from the dialog.tpl file!!
2 days I have been looking into this on and off, and I can not fix it.

Please, if you have any idea at all why it would do this please let me know.
TIA

cflsystems 04-08-2009 10:23 AM

Re: Diaglog box problem, still displays but should be blank
 
Clear your cache
www.yoursite.com/cleanup.php

CC 04-08-2009 11:39 AM

Re: Diaglog box problem, still displays but should be blank
 
Did that already, made no difference.
Thanks for the suggestion though, I literally will accept any suggestions at this point.

Victor D 04-09-2009 01:47 AM

Re: Diaglog box problem, still displays but should be blank
 
in what template you put custom code with capture?
Make sure your capure is not nested into another one

CC 04-09-2009 07:06 AM

Re: Diaglog box problem, still displays but should be blank
 
Thanks Victor this inspired me to the obvious and I got it fixed.
I am placing the code on the frontpage, but have been testing in a static page.

Obviously the static page creates the dialog box no matter what goes into the custom code!
On the frontpage it is working perfectly.

Thanks so much or jogging this useless brain of mine. ;)


All times are GMT -8. The time now is 10:38 AM.

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