Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Column right width problem - help please


Guest

Recommended Posts

Hi everyone,

 

i don't have much experience in oscommerce or php so i really need some help. I instaled recently viewed 1.1 contribution and applied recently_viewed_images.php to column_right.php. it works ok, but when products are viewed by the user the recently_viewed box width changes to the width same to image width. How can i solve this. u can see how it works at

avhit

 

thanks for your help,

Mike

Link to comment
Share on other sites

Hi

 

If you are not sure where to do this, go to admin panel, configuration/images.. you can change the sizes of all the images eg small, header and subcategories and its easy as pie. just click on the action icon and press edit.

 

You mite have to play around with it for a little till you get the look you require.

 

Regards

Link to comment
Share on other sites

hi guys, thanks for the answers but this is not what i thought. i know the stuff in admin to adjust image width and height, but this doesn't work for the contribution i mentioned.

 

here is the code for recently_viewed box:

 

<?php

/*

$Id: recently_viewed.php,v 1.0 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

 

contribution by meltus

http://www.highbarn-consulting.com

*/

?>

<?php

/*

$Id: recently_viewed.php,v 1.0 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

 

contribution by meltus

http://www.highbarn-consulting.com

*/

?>

<!-- recently_viewed //-->

<tr>

<td>

<?php

define('MAX_COLS', 1);

define('MAX_ROWS', 5);

 

if (strlen($recently_viewed>1)) {

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => 'Pravkar ogledano'

);

new infoBoxHeading($info_box_contents, false, false);

 

$counter = 0;

$info_box_contents = array();

$recent_products = split(';',$recently_viewed);

 

$rows=0;

$cols=0;

foreach ($recent_products as $recent) { if ((strlen($recent) >0) && ($counter < (MAX_ROWS*MAX_COLS)) && ($rows<MAX_ROWS)) {

$recent_info = tep_db_query("select p.products_image from " . TABLE_PRODUCTS . " p where p.products_id = '" . $recent. "'");

$recent_info_values = tep_db_fetch_array($recent_info);

$counter++;

if (strlen($counter) < 2) {

$counter = '0' . $counter;

}

$info_box_contents[$rows][$cols] = array('align' => 'left',

'params' =>'valign="top" class="productListing-data"',

'text' => $counter . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $recent, 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $recent_info_values['products_image'], tep_get_products_name($recent)) . '<br>' . tep_get_products_name($recent) . '</a>'

);

$cols++;

if ($cols >= MAX_COLS) {

$cols = 0;

$rows++;

}

}

} new tableBox($info_box_contents,true);

}?> </td>

</tr>

<!-- recently_viewed_eof //-->

 

how can i adjust image width and height (100x80 pixles) in this code???

 

thanks for help

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...