Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add image to Right Column


autoxtreme

Recommended Posts

Posted

Hi,

 

Just a quick one......

 

 

I am trying to add an image to the bottom of the right column. I have managed to get the image to appear but it keeps showing up at the top, above all the info boxes.

 

 

This is a paste of my code

 

<?php

/*

$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

require(DIR_WS_BOXES . 'reviews.php');

 

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

 

}

 

 

?>

<html>

<body>

<div align="center"><img src="http://www.shopmania.co.uk/img/cert/shopmania-store-uk.gif" border="0" title="Visit Auto Extreme on ShopMania">

</div>

</body>

</html>

 

 

 

I have probably gone about adding the code in completely wrong! lol

 

Would be grateful of some help :)

Posted

the way to go would be to put your image in file like

 

myimage.php in the boxes folder

 

and then call it up with

 

 

require(DIR_WS_BOXES . 'myimage.php');

 

from wherever you want it in the php above where you've put your HTML

 

 

- A good way to learn these sorts of things is to see how other people have done similar things in contributions.

 

hope that helps

Posted
the way to go would be to put your image in file like

 

myimage.php in the boxes folder

 

 

Do you mean create a new box and just put the image in that?

 

Is it not possible to position the image underneath the existing boxes?

 

If I do have to create a new box (myimage.php) how do I go about doing this?

 

Sorry about all the questions but I am still new at this and finding it quite hard to get my head round all the coding! lol

 

I really do need it put out in the most basic way possible :)

Posted

A good basics for creating/using boxes is at

 

http://www.oscommerce.info/kb/osCommerce/Catalog_Area/Boxes

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...