Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to move a box


Guest

Recommended Posts

Posted

I'm trying to move my "announcements" box and put it on the right column between "shopping cart" & "Bestsellers".

I also want to move the two graphics (paypal & SSL) from the main index and put them in the footer.

I've searched the forums for 2 days and messed everything up so bad I had to restore a ton of files.

What am I missing?

Wally

Posted
I'm trying to move my "announcements" box and put it on the right column between "shopping cart" & "Bestsellers".

I also want to move the two graphics (paypal & SSL) from the main index and put them in the footer.

I've searched the forums for 2 days and messed everything up so bad I had to restore a ton of files.

What am I missing?

Wally

You may be missing some php and sql knowledge. . . I know I am :-(

 

If you are just trying to insert html in the right column then the following will help:

find the following code in the column_right.php file inside the includes folder. (it is the second occurence of 'best_sellers.php') Notice it is not part of the nested If/Else statements.

 

} else {
   include(DIR_WS_BOXES . 'best_sellers.php');  }

 

After that line we will close the php block, insert our html and then re-open a php block by inserting the following

 

 
?> <!-- closes the php block -->
<tr><td>
insert your html code here.
</td> </tr>
<!-- next line re-opens php -->
<?php

 

If you already know some php and sql then you may be intruding on some nested if/else statements and hopefully this will help you anyways. Personally it looks like I'll have to hit the books on php and sql. :'(

 

As far as moving the logos to the footer, it is also in the includes directory named footer.php and is mostly html so should be fairly easy.

Good luck,

trip

Posted

Thanks for the help.

I was able to create a box with the code and put the graphics in there but it's a little long. I'd like to truncate the bottom of the box. any suggestions? I could not move the "announcement" box because I couldn't find where it is located to move it. Thanks for your help so far.

Wally

Posted
Thanks for the help.

I was able to create a box with the code and put the graphics in there but it's a little long. I'd like to truncate the bottom of the box. any suggestions? I could not move the "announcement" box because I couldn't find where it is located to move it. Thanks for your help so far.

Wally

Glad to help, it helps me too! :thumbsup:

Need more input? (to quote #5)

post the code you've inserted and I'll see if I can come up with something.

 

As far as the "announcement" box, it tickles some neurons, but I don't see it on my install, perhaps I disabled it, or maybe it has another title like 'new products' or something? idk, if you have more info on that or where you edit it, I might be able to offer some insight.

 

best wishes,

trip

Archived

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

×
×
  • Create New...