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

Diaglog box problem, still displays but should be blank

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-08-2009, 09:39 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default 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
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #2  
Old 04-08-2009, 10:23 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Diaglog box problem, still displays but should be blank

Clear your cache
www.yoursite.com/cleanup.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-08-2009, 11:39 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default 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.
__________________
XC 4.2 inc (unofficial) patch release.
Reply With Quote
  #4  
Old 04-09-2009, 01:47 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default 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
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #5  
Old 04-09-2009, 07:06 AM
  CC's Avatar 
CC CC is offline
 

eXpert
  
Join Date: Jun 2004
Posts: 349
 

Default 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.
__________________
XC 4.2 inc (unofficial) patch release.
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 10:38 AM.

   

 
X-Cart forums © 2001-2020