AndrewC Posted January 5, 2005 Posted January 5, 2005 Link I cant seem to get rid of the two boxes on the also purchsed page, any ideas?
Flyer5 Posted January 5, 2005 Posted January 5, 2005 Link I cant seem to get rid of the two boxes on the also purchsed page, any ideas? <{POST_SNAPBACK}> at a guess I'd say you have installed a contrib (scalesmart?) that in its config is adding the images that should be in scalesmart/images/ but dont exist, or in the config the names of the images/path may be wrong I may be wrong :o F5
AndrewC Posted January 5, 2005 Author Posted January 5, 2005 No i think i checked all that already... :(
Flyer5 Posted January 5, 2005 Posted January 5, 2005 No i think i checked all that already... :( <{POST_SNAPBACK}> are the images hard coded into the box header in the php file?
AndrewC Posted January 6, 2005 Author Posted January 6, 2005 No its not. The file is a module also_purchased_products.php i believe that this is a standard contribution/install. <?php/* $Id: also_purchased_products.php,v 1.21 2003/02/12 23:55:58 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if (isset($HTTP_GET_VARS['products_id'])) { $orders_query = tep_db_query("select p.products_id, p.products_image_listing from " . TABLE_ORDERS_PRODUCTS . " opa, " . TABLE_ORDERS_PRODUCTS . " opb, " . TABLE_ORDERS . " o, " . TABLE_PRODUCTS . " p where opa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and opa.orders_id = opb.orders_id and opb.products_id != '" . (int)$HTTP_GET_VARS['products_id'] . "' and opb.products_id = p.products_id and opb.orders_id = o.orders_id and p.products_status = '1' group by p.products_id order by o.date_purchased desc limit " . MAX_DISPLAY_ALSO_PURCHASED); $num_products_ordered = tep_db_num_rows($orders_query); if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED) { ?> <!-- also_purchased_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => TEXT_ALSO_PURCHASED_PRODUCTS); new contentBoxHeading($info_box_contents); $row = 0; $col = 0; $info_box_contents = array(); while ($orders = tep_db_fetch_array($orders_query)) { $orders['products_name'] = tep_get_products_name($orders['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="body" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $orders['products_image_listing'], $orders['products_name'], PRODUCT_LISTING_IMAGE_WIDTH, PRODUCT_LISTING_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $orders['products_id']) . '">' . $orders['products_name'] . '</a>'); $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents); ?> <!-- also_purchased_products_eof //--> <?php } } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.