osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

product prices not showing on product page

This is a discussion on product prices not showing on product page within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I have had some customization done by some programmers. Today I looked at the site ....i noticed that prices were ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-24-2006, 08:41 PM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
Default product prices not showing on product page

I have had some customization done by some programmers. Today I looked at the site ....i noticed that prices were not displayed on the product page.

I checked the config in admin ...the prices are set to be displayed.

Can someone help.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-25-2006, 03:38 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default RE: product prices not showing on product page

look at the code in /templates/<templatename>/product_info.tpl.php
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-26-2006, 04:19 PM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
Default

looked at the file....couldnt figure out anything...there are too many instances of product price....can you please point to a particular line or something...thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-28-2006, 06:38 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default

If you figure this one out let me know it just happened to me as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-28-2006, 01:32 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default

Okay, here is the problem with distance debugging. I can look at my code and tell you where it is in my template, but my template has a whole bunch of changes in it to handle things like MSRP and display of discount from MSRP that means that what I say is on line 45 in my template may not be in yours, or even on line X if it is in yours at all.

So telling you what line it's on in my template doesn't mean anything in relation to yours.

If you were to post your te,plate, then I could tell you what lines I would start investigation on. But that's about the best I can do.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-28-2006, 01:51 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 292
Thanks: 23
Thanked 34 Times in 33 Posts
Rep Power: 5
bkpie has a spectacular aura aboutbkpie has a spectacular aura about
Default

Ok Here is the template. Latest change was adding quantity box via Met00 code. Thanks by the way.

Code:
               &lt;?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>&lt;table border="0" width="100%" cellspacing="0" cellpadding="0">
&lt;?php
  if ($product_check['total'] &lt; 1) {
   // BOF Separate Price per Customer
     if(!tep_session_is_registered('sppc_customer_group_id')) { 
     $customer_group_id = '0';
     } else {
      $customer_group_id = $sppc_customer_group_id;
     }
   // EOF Separate Price per Customer
?>
      &lt;tr>
        &lt;td>&lt;?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          &lt;tr class="infoBoxContents">
            &lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="2">
              &lt;tr>
                &lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
                &lt;td align="right">&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '&lt;/a>'; ?>&lt;/td>
                &lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
              &lt;/tr>
            &lt;/table>&lt;/td>
          &lt;/tr>
        &lt;/table>&lt;/td>
      &lt;/tr>
&lt;?php
  } else {
    $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id 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_info = tep_db_fetch_array($product_info_query);

    tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

    if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
// BOF Separate Price per Customer

        $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
        if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
        $product_info['products_price']= $scustomer_group_price['customers_group_price'];
	}
// EOF Separate Price per Customer
      $products_price = '&lt;s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '&lt;/s> &lt;span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '&lt;/span>';
    } else {
// BOF Separate Price per Customer
        $scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id =  '" . $customer_group_id . "'");
        if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
        $product_info['products_price']= $scustomer_group_price['customers_group_price'];
	}
// EOF Separate Price per Customer
      $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
    }

    if (tep_not_null($product_info['products_model'])) {
      $products_name = $product_info['products_name'] . '&lt;br>&lt;span class="smallText">[' . $product_info['products_model'] . ']&lt;/span>';
    } else {
      $products_name = $product_info['products_name'];
    }
?>
      &lt;tr>
        &lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="0">
          &lt;tr>
            &lt;td class="pageHeading" valign="top">&lt;?php echo $products_name; ?>&lt;/td>
            &lt;td class="pageHeading" align="right" valign="top">&lt;?php echo $products_price; ?>&lt;/td>
          &lt;/tr>
        &lt;/table>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td class="main">
&lt;?php
		//// BEGIN:  Added for Dynamic MoPics v3.000
    if (tep_not_null($product_info['products_image'])) {
?>
          &lt;table border="0" cellspacing="0" cellpadding="2" align="right">
            &lt;tr>
              &lt;td align="center" class="smallText">
&lt;?php
			$image_lg = mopics_get_imagebase($product_info['products_image'], DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR);
			if ($lg_image_ext = mopics_file_exists(DIR_FS_CATALOG . $image_lg, DYNAMIC_MOPICS_BIG_IMAGE_TYPES)) {
				$image_size = @getimagesize(DIR_FS_CATALOG . $image_lg . '.' . $lg_image_ext);
?>
          &lt;script language="javascript" type="text/javascript">&lt;!--
            document.write('&lt;a href="javascript:popupImage(\'&lt;?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&amp;type=' . $lg_image_ext); ?>\',\'&lt;?php echo ((int)$image_size[1] + 30); ?>\',\'&lt;?php echo ((int)$image_size[0] + 5); ?>\');">&lt;?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?>&lt;br />&lt;span class="smallText">&lt;?php echo TEXT_CLICK_TO_ENLARGE; ?>&lt;/span>&lt;/a>');
//-->&lt;/script>
&lt;noscript>
            &lt;a href="&lt;?php echo tep_href_link($image_lg . '.' . $lg_image_ext); ?>" target="_blank">&lt;?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?>&lt;br />&lt;span class="smallText">&lt;?php echo TEXT_CLICK_TO_ENLARGE; ?>&lt;/span>&lt;/a>
&lt;/noscript>
&lt;?php
			} else {
          echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
			}
?>
              &lt;/td>
            &lt;/tr>

          &lt;/table>
&lt;?php
    }
		//// END:  Added for Dynamic MoPics v3.000
?>
          &lt;p>&lt;?php echo stripslashes($product_info['products_description']); ?>&lt;/p>
&lt;?php
    $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
    $products_attributes = tep_db_fetch_array($products_attributes_query);
    if ($products_attributes['total'] > 0) {
//++++ QT Pro: Begin Changed code
      $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); 
      require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
      $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
      $pad = new $class($products_id);
      echo $pad->draw();
//++++ QT Pro: End Changed Code
    }
?>
        &lt;/td>
      &lt;/tr>
&lt;?php
		//// BEGIN:  Added for Dynamic MoPics v3.000
?>
      &lt;tr>
      	&lt;td>
				&lt;div class="screenshotsHeader">
					&lt;div class="screenshotsHeaderText">&lt;?php echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
				&lt;/div>
				&lt;div class="screenshotsBlock">
					&lt;?php include(DIR_WS_MODULES . 'dynamic_mopics.php'); ?>
   			        &lt;/div>
	&lt;/td>
      &lt;/tr>
&lt;?php
		//// END:  Added for Dynamic MoPics v3.000
?>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
&lt;?php
    $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
    $reviews = tep_db_fetch_array($reviews_query);
    if ($reviews['count'] > 0) {
?>
      &lt;tr>
        &lt;td class="main">&lt;?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
&lt;?php
    }

    if (tep_not_null($product_info['products_url'])) {
?>
      &lt;tr>
        &lt;td class="main">&lt;?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&amp;goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
&lt;?php
    }

    if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
      &lt;tr>
        &lt;td align="center" class="smallText">&lt;?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?>&lt;/td>
      &lt;/tr>
&lt;?php
    } else {
?>
      &lt;tr>
        &lt;td align="center" class="smallText">&lt;?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>&lt;/td>
      &lt;/tr>
&lt;?php
    }
?>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          &lt;tr class="infoBoxContents">
            &lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="2">
              &lt;tr>
                &lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
                                                &lt;td class="main" align="right">Qty: &lt;? echo tep_draw_input_field('quantity', '1', 'SIZE=4 maxlength=4'); ?>&lt;input type="hidden" name="cart_quantity" value=1 maxlength="6" size="4">&amp;nbsp; &lt;?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>&lt;/td>
&lt;td class="main" align="right">&lt;a href="javascript:history.go(-1)">&lt;?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?>&lt;/a>&lt;/td>
                &lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
              &lt;/tr>
            &lt;/table>&lt;/td>
          &lt;/tr>
        &lt;/table>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
      &lt;/tr>
      &lt;tr>
        &lt;td>
&lt;?php

//added for cross -sell
   if ( (USE_CACHE == 'true') &amp;&amp; !SID) {
    echo tep_cache_also_purchased(3600);
     include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
   } else {
     include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
      include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    }
   }
?>
        &lt;/td>
      &lt;/tr>
    &lt;/table>&lt;/form>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-03-2006, 09:21 AM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
Default

Ok...where does it show on your template...i will upload my template in a little while.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-03-2006, 10:36 AM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
Default

Here is my product_info.tpl.


&lt;?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>&lt;table border="0" width="100%" cellspacing="0" cellpadding="0">
&lt;?php
if ($product_check['total'] &lt; 1) {
// BOF Separate Price per Customer
if(!tep_session_is_registered('sppc_customer_group _id')) {
$customer_group_id = '0';
} else {
$customer_group_id = $sppc_customer_group_id;
}
// EOF Separate Price per Customer
?>
&lt;tr>
&lt;td>&lt;?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
&lt;tr >
&lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="2">
&lt;tr>
&lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
&lt;td align="right">&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '&lt;/a>'; ?>&lt;/td>
&lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
&lt;/tr>
&lt;/table>&lt;/td>
&lt;/tr>
&lt;/table>&lt;/td>
&lt;/tr>
&lt;?php
} else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id 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_info = tep_db_fetch_array($product_info_query);

tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
//Added by Kerul
if(isset($customer_group_id)){
$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");
if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
$products_price = $scustomer_group_price['customers_group_price'];
}
}
else{

$pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);
$products_price=$pf->getPriceString();
}

//End by Kerul

/* if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
// BOF Separate Price per Customer

$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");
if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer
$products_price = '&lt;s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '&lt;/s> &lt;span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '&lt;/span>';
} else {
// BOF Separate Price per Customer
$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");
if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {
$product_info['products_price']= $scustomer_group_price['customers_group_price'];
}
// EOF Separate Price per Customer
$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}
*/
if (tep_not_null($product_info['products_model'])) {
$products_name = $product_info['products_name'] . '&lt;br>&lt;span class="smallText">Style #' . $product_info['products_model'] . '&lt;/span>';
} else {
$products_name = $product_info['products_name'];
}
?>
&lt;tr>
&lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="0">
&lt;tr>
&lt;td class="pageHeading" valign="top">&lt;?php echo $products_name; ?>&lt;/td>
&lt;td class="pageHeading" align="right" valign="top">&lt;?php echo $products_price; ?>&lt;/td>
&lt;/tr>
&lt;/table>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td class="main">
&lt;?php
//// BEGIN: Added for Dynamic MoPics v3.000
if (tep_not_null($product_info['products_image'])) {
?>
&lt;table border="0" cellspacing="0" cellpadding="2" align="left">
&lt;tr>
&lt;td align="center" class="smallText">
&lt;?php
$image_lg = mopics_get_imagebase($product_info['products_image'], DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR);
if ($lg_image_ext = mopics_file_exists(DIR_FS_CATALOG . $image_lg, DYNAMIC_MOPICS_BIG_IMAGE_TYPES)) {
$image_size = @getimagesize(DIR_FS_CATALOG . $image_lg . '.' . $lg_image_ext);
?>
&lt;script language="javascript" type="text/javascript">&lt;!--
document.write('&lt;a href="javascriptopupImage(\'&lt;?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&amp;type=' . $lg_image_ext); ?>\',\'&lt;?php echo ((int)$image_size[1] + 30); ?>\',\'&lt;?php echo ((int)$image_size[0] + 5); ?>\');">&lt;?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?>&lt;br />&lt;span class="smallText">&lt;?php echo TEXT_CLICK_TO_ENLARGE; ?>&lt;/span>&lt;/a>');
//-->&lt;/script>
&lt;noscript>
&lt;a href="&lt;?php echo tep_href_link($image_lg . '.' . $lg_image_ext); ?>" target="_blank">&lt;?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?>&lt;br />&lt;span class="smallText">&lt;?php echo TEXT_CLICK_TO_ENLARGE; ?>&lt;/span>&lt;/a>
&lt;/noscript>
&lt;?php
} else {
echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], stripslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
}
?>
&lt;/td>
&lt;/tr>
&lt;/table>
&lt;table border="0" cellspacing="0" cellpadding="2" align="left">
&lt;tr>&lt;td width="5">&lt;/td>
&lt;td align="left" class="smallText">
&lt;?php
}
// END: Added for Dynamic MoPics v3.000
//&lt;!-- Points/Rewards Module V1.60 show_points_info bof -->

if ((USE_POINTS_SYSTEM == 'true') &amp;&amp; (DISPLAY_POINTS_INFO == 'true')) { // check that the points system is enabled
if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
$products_price_points = tep_display_points($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '&lt;/span>';
} else {
$products_price_points = tep_display_points($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}
$products_points = tep_calc_products_price_points($products_price_poi nts);
$products_points_value = tep_calc_price_pvalue($products_points);
if (USE_POINTS_FOR_SPECIALS == 'true' || $new_price == false){
?>
&lt;p>&lt;?php echo sprintf(TEXT_PRODUCT_POINTS , $products_points) .TEXT_PRODUCT_POINTS_VALUE . $currencies->format($products_points_value); ?>&lt;/p>
&lt;?php
} else {
?>
&lt;p>&lt;?php echo TEXT_PRODUCT_NO_POINTS; ?>&lt;/p>
&lt;?php
}
}// else do not show points_value
?>
&lt;!-- Points/Rewards Module V1.60 show_points_info eof -->

&lt;?php echo stripslashes($product_info['products_description']); ?>&lt;!--&lt;/td>&lt;/tr>&lt;/table>-->

&lt;?php if (OPTIONS_AS_IMAGES_ENABLED == 'false'){
$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
$products_attributes = tep_db_fetch_array($products_attributes_query);
if ($products_attributes['total'] > 0) {
//++++ QT Pro: Begin Changed code
$products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']);
require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
$class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
$pad = new $class($products_id);
echo $pad->draw();
//++++ QT Pro: End Changed Code
} }
?>
&lt;?php
//Options as Images. This whole php clause needs to be added
if (OPTIONS_AS_IMAGES_ENABLED == 'true') include ('options_images.php');
?>
&lt;/td>
&lt;/tr>&lt;/table>
&lt;?php
//// BEGIN: Added for Dynamic MoPics v3.000
?>
&lt;tr>
&lt;td>
&lt;div class="screenshotsHeader">
&lt;div class="screenshotsHeaderText">&lt;?php echo TEXT_OTHER_PRODUCT_IMAGES; ?>&lt;/div>
&lt;/div>
&lt;div class="screenshotsBlock">
&lt;?php include(DIR_WS_MODULES . 'dynamic_mopics.php'); ?>
&lt;/div>
&lt;/td>
&lt;/tr>
&lt;?php
// END: Added for Dynamic MoPics v3.000
?>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
?>
&lt;tr>
&lt;td class="main">&lt;?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;?php
}

if (tep_not_null($product_info['products_url'])) {
?>
&lt;tr>
&lt;td class="main">&lt;?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&amp;goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;?php
}

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
&lt;tr>
&lt;td align="center" class="smallText">&lt;?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?>&lt;/td>
&lt;/tr>
&lt;?php
} else {
?>
&lt;!-- &lt;tr>
&lt;td align="center" class="smallText">&lt;?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>&lt;/td>
&lt;/tr> -->
&lt;?php
}
?>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
&lt;tr >
&lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="2">
&lt;tr>
&lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
&lt;td class="main">&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '&lt;/a>'; ?>&lt;/td>
&lt;!-- Wish List 2.3 Start -->
&lt;td align="center" class="main">&lt;?php echo tep_draw_hidden_field('wishlist_action', 'add_wishlist') . tep_image_submit('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST, 'onClick="document.cart_quantity.action=\''. tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=add_wishlist') . '\';document.cart_quantity.submit();"'); ?>&lt;/td>
&lt;!-- Wish List 2.3 End -->
&lt;!-- comment by Kerul
&lt;td class="main" align="right">&lt;?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>&lt;/td> -->
&lt;!-- start qty price break -->
&lt;td class="main" align="right">
&lt;table border="0" align="right">
&lt;tr>&lt;td align="center">
&lt;?php echo TEXT_ENTER_QUANTITY . ":" . tep_draw_input_field('cart_quantity', $pf->adjustQty(1), 'size="6"'); ?>
&lt;/td>&lt;/tr>
&lt;tr>&lt;td align="center">
&lt;?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
&lt;/td>&lt;/tr>
&lt;/table>
&lt;/td>
&lt;!-- end qty price break -->
&lt;td width="10">&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>&lt;/td>
&lt;/tr>
&lt;/table>&lt;/td>
&lt;/tr>
&lt;/table>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>
&lt;?php

//added for cross -sell
if ( (USE_CACHE == 'true') &amp;&amp; !SID) {
echo tep_cache_also_purchased(3600);
include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
} else {
include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
}
?>
&lt;/td>
&lt;/tr>
&lt;/table>&lt;/form>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-05-2006, 12:02 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default

Here is where the products price display is being set:

Code:
// EOF Separate Price per Customer
      $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));

Here is where the products price is being displayed to the user:

Code:
  &lt;tr>
        &lt;td>&lt;table border="0" width="100%" cellspacing="0" cellpadding="0">
          &lt;tr>
            &lt;td class="pageHeading" valign="top">&lt;?php echo $products_name; ?>&lt;/td>
            &lt;td class="pageHeading" align="right" valign="top">&lt;?php echo $products_price; ?>&lt;/td>
          &lt;/tr>
        &lt;/table>&lt;/td>
for debugging purposes the first place I would put a check in is right after the price is being set. I would add

Code:
echo $products_price;
If there is no price showing up, then the next question is what path is it following through the code. There are three places the products price is changed.

The inital setting of the price happens at:

Code:
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id 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_info = tep_db_fetch_array($product_info_query);
so a check there would be to immediatly put in a

Code:
echo $products_info['products_price'];
to see if the price was picked up. If you got the initial price, then the next place where it gets changed is

Code:
 if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
This is the check on specials.

The final check is the seperate price per customer mod. again, you can put an echo in here to see what was returned by the query and what the pricing was set.

I hope that these debugging tips will help you determine

1) if the price is being picked up at all
2) if the price is being overwritten, and where.
3) if none of the above, then I would highlight the entire page and make sure that I wasn't using a CCS class that was printing the price the same colour as my background

Good luck.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-05-2006, 02:00 PM
Member
 
Join Date: Dec 2002
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dumb_Question
Default

tried everything but still no luck

thanks very much for your help though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Product Attribute Prices Getting Rid of Extra Chars in (+$8) Dubious osCMax v2 Customization/Mods 1 11-13-2006 02:22 PM
HELP!!!! WHOLESALE PRICE NOT SHOWING ON PRODUCT PAGE Judith osCMax v2 Features Discussion 0 10-26-2005 02:32 AM
Product prices are all $0 adam231 osCommerce 2.2 Installation Help 4 10-21-2004 02:08 AM
No product prices in new install? Kristine osCMax v1.7 Installation 3 04-02-2004 12:06 PM
one product 3 prices Dumb_Question osCommerce 2.2 Modification Help 6 01-05-2003 04:51 PM


All times are GMT -8. The time now is 11:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax