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

Changing the Dialog Title

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-14-2009, 02:48 AM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default Changing the Dialog Title

I have certain parts of the website that sit inside the Dialog section that I don't want to. I am currently customising the skin1/modules/Discount_Coupons/add_coupon.tpl file (code below)

My Dialog title has a graphic (the leaves of my logo) at the left, but I want to remove it. I have successfully managed to get rid of the text that sits after it, but I can't get rid of the image (which is what's left of the Dialog Title).

Here's the code I have left:-

--------------------
{* $Id: add_coupon.tpl,v 1.11.2.3 2006/10/25 13:58:54 svowl Exp $ *}
{capture name=dialog}
{if $gcheckout_enabled}
{$lng.txt_gcheckout_add_coupon_note}
<br />
<br />
{/if}
<div class="discountcouponwrapper">
<form action="cart.php" name="couponform">
<table>
<tr>
<td width="300"><span class="limesubheading">Redeem Discount Coupon</span><br />
If you have a discount code, type it in here</td>
<td class="FormButton">Code</td>
<td><input type="text" size="25" name="coupon" /></td>
<td>{if $js_enabled}
{include file="buttons/submit.tpl" href="javascript: document.couponform.submit();" js_to_href="Y"}
{else}
<input type="submit" value="{$lng.lbl_submit|strip_tags:false|escape}" />
{/if} </td>
</tr>
</table>
<input type="hidden" name="mode" value="add_coupon" />
</form>
</div>
{/capture}
{ include file="dialog.tpl" content=$smarty.capture.dialog extra='width="100%"' }

-------------------

Every time I try to remove what I think is giving me the Dialog Title, I either get a Smarty Error or the dialog title moves UNDERNEATH my discount box.

When I remove name=dialog from the opening {capture} tag, the whole discount coupon section vanishes and I'm left with my leaf image.

When I remove file="dialog.tpl" from the last line, I get smarty errors.

When I remove the {capture} tags (opening and closing) I'm still left with the leaf UNDERNEATH by discount coupon div.

What exactly am I supposed to get rid of to remove the Dialog Title?
www.shopnaturally.com.au v.4.1.11 - feel free to add something to the shopping cart to take a look.
__________________
Version 4.1.6 to 4.1.11
Reply With Quote
  #2  
Old 06-14-2009, 03:03 AM
 
sparrowdog sparrowdog is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 244
 

Default Re: Changing the Dialog Title

hang on, I figured it out. I removed the opening and closing {capture} tags AND the last {include} tag and it works now.

Just in case anyone else has the same issue.
__________________
Version 4.1.6 to 4.1.11
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 05:08 PM.

   

 
X-Cart forums © 2001-2020