nyabinghi Posted February 11, 2007 Share Posted February 11, 2007 i'm not sure what i did, but i can not see the prices on individual product pages. for example, in the box there is reviews, quantity and add to cart, but no prices. is this in product_info.php somewhere? an example here: http://www.stainlesscycle.com/catalog/prod...products_id=533 or here.. http://www.stainlesscycle.com/catalog/prod...products_id=542 any help is appreciated. Link to comment Share on other sites More sharing options...
acharme Posted February 12, 2007 Share Posted February 12, 2007 In catalog/product_info.php <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td> Side note: what quantity box contrib did you use? learn...love...laugh...live Link to comment Share on other sites More sharing options...
nyabinghi Posted February 12, 2007 Author Share Posted February 12, 2007 In catalog/product_info.php <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td> Side note: what quantity box contrib did you use? thanks, i'll have to check and see if that fixes it. that quantity box contrib is pretty slick. i'll have to look and see the name. Link to comment Share on other sites More sharing options...
nyabinghi Posted February 12, 2007 Author Share Posted February 12, 2007 thanks, i'll have to check and see if that fixes it. that quantity box contrib is pretty slick. i'll have to look and see the name. can't figure out where to put your code. here's the code in catalog/product_info.php <?php /* $Id: product_info.php,v 1.1.1.1 2004/03/04 23:38:02 ccwjr Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); //check if product is really a subproduct $product_sub_product_query = tep_db_query("select products_parent_id from " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); while ($product_sub_product = tep_db_fetch_array($product_sub_product_query)){ $product_sub_check = $product_sub_product['products_parent_id']; } if ($product_sub_check > 0){ tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_sub_check)); } //check to see if products have sub_products $product_has_sub = '0'; $sub_products_sql1 = tep_db_query("select p.products_id, p.products_price, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_parent_id = " . (int)$HTTP_GET_VARS['products_id'] . " and p.products_quantity > '0' and p.products_id = pd.products_id and pd.language_id = " . (int)$languages_id); if (tep_db_num_rows($sub_products_sql1) > 0) { $product_has_sub = '1'; }else{ $product_has_sub = '0'; } $content = CONTENT_PRODUCT_INFO; $javascript = 'popup_window.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
nyabinghi Posted February 12, 2007 Author Share Posted February 12, 2007 thanks, i'll have to check and see if that fixes it. that quantity box contrib is pretty slick. i'll have to look and see the name. can't figure out where to put your code. forgot to mention i'm using creloaded...gotta find the right product_info file first. Link to comment Share on other sites More sharing options...
nyabinghi Posted February 12, 2007 Author Share Posted February 12, 2007 can't figure out where to put your code. forgot to mention i'm using creloaded...gotta find the right product_info file first. i fixed it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.