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

??corrupted dialog.tpl??

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 03-22-2007, 03:38 AM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default ??corrupted dialog.tpl??

Hi,

I've been trying to use the rounded corner mod from XCart Mods and appearance wise it's perfect. However if I implement the dialog.tpl which is supplied with the mod, you can't add any products to the cart. Click add to cart, the page refreshes and nothing is in it.

Here is the tpl, the only difference I can see over the original is the firts line and the div tags at the end. Would anyone be able to tell me why it corrupts the add to cart feature. I assume it's something to do with the first line of if statements?


{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")}

{if $printable ne ''}
{include file="dialog_printable.tpl"}
{else}
<TABLE border="0" cellpadding="0" cellspacing="0" {$extra}>
<TR>
<TD height="15" class="DialogTitle" background="{$ImagesDir}/dialog_bg_n.gif" valign="bottom">&nbsp;&nbsp;{$title}</TD>
</TR>
<TR><TD class="DialogBorder"><TABLE border="0" cellpadding="10" cellspacing="1" width="100%">
<TR><TD class="DialogBox">{$content}
&nbsp;
</TD></TR>
</TABLE></TD></TR>
</TABLE>
{/if}

{else}

<div class="dialogtop"><font class="dialogtext">{$title}</font></div>
<div class="dialogbottom">{$content}</div>

{/if}

Thanks for any tips

Regards

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #2  
Old 03-22-2007, 04:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: ??corrupted dialog.tpl??

Moving to Third Party Add-Ons. Have you contacted the author of the mod?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-22-2007, 04:16 AM
  MarkH's Avatar 
MarkH MarkH is offline
 

Senior Member
  
Join Date: Mar 2007
Location: Newcastle, United Kingdom
Posts: 166
 

Default Re: ??corrupted dialog.tpl??

did you add the required CSS Classes to your skin1.css? also does the page show anything when you view source. Any specific error messages?

I'd speak to PhilJ about this, I'm guessing he's still asleep as he's not been on-line today yet. He's usually about in the later hours of the night (GMT Time).
__________________
Web Development Manager / Security
X-Cart 4.0.13 + Customisations
Payment Card Industry Compliant Web Site

WWW: http://www.tommeetippee.co.uk/
MSN: info@voxia.co.uk
Reply With Quote
  #4  
Old 03-22-2007, 02:10 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Re: ??corrupted dialog.tpl??

Sorry Balinor,
Wasn't exactly sure which forum to place it? Re contact author not yet as the tpl files are that similar except for the first line and the calls to CSS at the bottom of the file which work fine. I thought I'd see if a forum member looking at the tpl might see instantly what is wrong. However point noted I well PM PhilJ to see what he may have to offer.

MarkH,
The CSS is called from the border directory under Skin1, which appears perfectly.
There are no error messages of any type, just that the cart is empty. If I install the original dialog.tpl all is well except my round borders obviously are'nt there, items are added to the cart as expected.

{if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")}

As this is in essence is the only additional {if} statement in the entire tpl, I assume this is where the problem lies. Most if statements in the customer side are "{if $userype eq C} assuming C stands for customer, then is A and P Admin and Providers?

Regards

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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:01 PM.

   

 
X-Cart forums © 2001-2020