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

How to modify Chekout pages template?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-11-2004, 12:04 PM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default How to modify Chekout pages template?

I want to remove the right column from the checkout pages.

I found a post with some information but it wasn't completely clear to me how this would be done.

I'm assuming I must create a new template
And call that template from a php file.

I have not been able to find the php file from which to change that template information however.

A few hints would be great.

Thanks
Reply With Quote
  #2  
Old 07-11-2004, 01:10 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Could you describe exactly what you wish to remove from the checkout pages please?
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #3  
Old 07-11-2004, 01:57 PM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

I'd like to be able to drop the right column boxes and have the checkout details span both columns.
Reply With Quote
  #4  
Old 07-11-2004, 04:31 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Hi,

Off the top of my head, I think you could just hide the third right hand column by using an 'if' statement. To remove the column on the checkout page add the 'if' statement above the opening <td> tags for the column:
Code:
{if $main ne "checkout" }
and then after the closing </td> tags of that column:
Code:
{else} {/if}

You can replace the "checkout" with the name of the smarty variable for any other pages where you wish to hide the right hand column.

HTH
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #5  
Old 07-11-2004, 07:13 PM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

That worked. Thanks for the help.
If I now want the middle section to span two columns do I use a conditional statement for the colspan or do I need to make a new template that spans both columns?
Reply With Quote
  #6  
Old 07-11-2004, 08:20 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Quote:
Originally Posted by magder
If I now want the middle section to span two columns do I use a conditional statement for the colspan or do I need to make a new template that spans both columns?

You should be able to use a conditional statement for the colspan too. I've done conditional statements inside table tags before.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #7  
Old 07-12-2004, 02:41 AM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

I had a look at the smarty documentation and couldn't figure out what the syntax would be for a conditional <td> attribute.

would I just repeat the table cell code like this:

Code:
{if $main ne "checkout"} <td> insidie td </td> {else} <td colspan="2"> insidie td </td> {/if}

Or would the if statement go inside the <td> tag?
Reply With Quote
  #8  
Old 07-12-2004, 08:32 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Try the IF statement in the <td> tag. I've done it before for TR background changes depending on a condition.

So something like
Code:
<td {if $main eq $checkout}colspan=2{/if}>

I know I've done something similar in a <TR> tag.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #9  
Old 07-12-2004, 09:38 AM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

Quote:
<td {if $main eq $checkout}colspan=2{/if}>

doesn't that mean that the colspan will not show while in checkout mode?
Reply With Quote
  #10  
Old 07-12-2004, 04:37 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

eq means equal, so if $main equals checkout, then colspan=2. So on checkout, span 2 columns.

Hope that makes sense.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:11 AM.

   

 
X-Cart forums © 2001-2020