Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trouble with moving box left to right


jaynesgifts

Recommended Posts

I wanted to move my 'whats new' box from left column to right column. I cut the code from column_left and pasted it into column_right. And now....

 

This is my column_left.php. WYSIWYG is blank. Store front lost left column.

 

<!-- $include_file = DIR_WS_BOXES . 'categories.php'; include(DIR_WS_INCLUDES . 'include_once.php');

$include_file = DIR_WS_BOXES . 'search.php'; include(DIR_WS_INCLUDES . 'include_once.php');

$include_file = DIR_WS_BOXES . 'add_a_quickie.php'; include(DIR_WS_INCLUDES . 'include_once.php');

-->

 

 

this is my column_right.php. Again, WYSIWYG is blank and store lost right column.

 

<!-- $include_file = DIR_WS_BOXES . 'shopping_cart.php'; include(DIR_WS_INCLUDES . 'include_once.php');

$include_file = DIR_WS_BOXES . 'whats_new.php'; include(DIR_WS_INCLUDES . 'include_once.php');

$include_file = DIR_WS_BOXES . 'specials.php'; include(DIR_WS_INCLUDES . 'include_once.php');

include(DIR_WS_INCLUDES . 'include_once.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_INCLUDES . 'include_once.php');

}

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_INCLUDES . 'include_once.php');

}

-->

 

What did I do wrong??? :unsure:

Link to comment
Share on other sites

where did all those:

 

include(DIR_WS_INCLUDES . 'include_once.php');

 

come from?

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

The only thing you should have copied is the include statement itself. Place it before or after the require or include statesments in the column you want and it works.

 

Start over and just take the include statement for the Infobox you want to display and paste it as stated above.

 

It's an easy hack.

Link to comment
Share on other sites

I simply copied what was there and pasted directly to my post to show what was there. what i originally copied from left to right was:

 

$include_file = DIR_WS_BOXES . 'whats_new.php'; include(DIR_WS_INCLUDES . 'include_once.php');

 

should I have not copied all of that? is only part of that what you call "the include statement"?

 

WHY is nothing showing up in the WYSIWYG??

 

I do not know all the terms being used here and find examples easy to understand and follow. I was able to get rid of boxes I didn't want with no problem. It was switching from left to right that caused all the trouble.

 

Thanks for the help I'm getting with this.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...