Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Best way to move boxes on index only


adanob

Recommended Posts

Posted

I am trying to find the best way to move the boxes on the index.php page without changing the box position on all the other pages. 

 

Currently I am using v2.4 with boxes positioned to the right.

 

The file that I am coding is template_bottom.php

 

So far I have tried editing the css but that moves the boxes on every page.

 

Posted

Use a conditional statement with basename like

if (basename($PHP_SELF) == 'index.php') {

//  do it this way

} else {

//  do it that way

}

I'm not really a dog.

Posted

Thanks. What a great idea!

 

I ended up doing this:

 

<?php
  }
  require(DIR_WS_INCLUDES . 'template_bottom_index.php');
//this file has different style parameters than 'template_bottom.php which is on all the other pages.
 
I will change my code to your suggestion (www.fossilbeach.com)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...