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)
-   -   Changing the Dialog Title (https://forum.x-cart.com/showthread.php?t=48081)

sparrowdog 06-14-2009 02:48 AM

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.

sparrowdog 06-14-2009 03:03 AM

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.


All times are GMT -8. The time now is 07:33 AM.

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