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

Increase the size of Step 1 of X

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-29-2005, 11:37 AM
  tvxcart's Avatar 
tvxcart tvxcart is offline
 

Newbie
  
Join Date: May 2004
Location: US - Indiana
Posts: 5
 

Default Increase the size of Step 1 of X

I want to increase the size of the text "Step 1 of 3" during checkout process.

For starters I created a new style called DialogTitleCheckout and assigned my new text parameters.

If I'm following the process correctly the dialog.tpl needs to be modified.

I started with the code near the top and I am guessing the code needs to follow something like this;

{*** Make Title Bigger on Checkout ***}
{if mode=checkout}
<TD class="DialogTitleCheckout" background="{$ImagesDir}/custom/dialog_bg.gif" height="19" nowrap>{$title}
[img]{$ImagesDir}/spacer.gif[/img]</TD>

{else}
{*** Original Code ***}
<TD class="DialogTitle" background="{$ImagesDir}/custom/dialog_bg.gif" height="19" nowrap>{$title}
[img]{$ImagesDir}/spacer.gif[/img]</TD>

{/if}

This is where I'm stuck. Can anyone help me with the correct IF statement? or offer some suggestions or alternatives.

Thanks,
__________________
Tim V
x-cart 4.0.13
Reply With Quote
  #2  
Old 08-29-2005, 11:50 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default

Another approach would be to make another dialog.tpl file, eg, dialog_checkout.tpl.

Then make your new style, by renaming the style in there and setting up the style in the css.

Then from your checkout templates, call the new dialog template.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 08-29-2005, 08:19 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

{if $checkout_step eq "1"}
Reply With Quote
  #4  
Old 08-30-2005, 07:02 AM
  tvxcart's Avatar 
tvxcart tvxcart is offline
 

Newbie
  
Join Date: May 2004
Location: US - Indiana
Posts: 5
 

Default

Thanks Paul, that seems to be a more flexible way to approach this problem. In case anyone else was curious, I did get the IF statement to work by using the following;

{if $smarty.get.mode eq "checkout"}
[my code]
{else}
[original code]
{/if}

This also allows for all the checkout steps to use my CSS statement.
__________________
Tim V
x-cart 4.0.13
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 09:39 PM.

   

 
X-Cart forums © 2001-2020