PHP coding assistance, in function tags I believe

I am trying to build in a customer discount into my page.  All pricing comes from a priceformatter.php page (see code below) and I need to call the specific discount which will come from the table customers and the row customers_discount.  I can't seem to get it

Here is the code for priceformatter.php:
<?php
/*
  $Id: PriceFormatter.php,v 1.7 2006/12/23 JanZ Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

/*
    PriceFormatter.php - module to support quantity pricing

    Created 2003, Beezle Software based on some code mods by WasaLab Oy (Thanks!)
*/

class PriceFormatter {
  var $hiPrice;
  var $lowPrice;
  var $quantity;
  var $hasQuantityPrice;

  function PriceFormatter($prices=NULL) {
    $this->productsID = -1;

    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;

    $this->hiPrice=-1;
    $this->lowPrice=-1;

    for ($i=1; $i<=8; $i++){
      $this->quantity[$i] = -1;
      $this->prices[$i] = -1;
    }
    $this->thePrice = -1;
    $this->specialPrice = -1;
    $this->qtyBlocks = 1;

    if($prices)
      $this->parse($prices);
  }

      /* encode and decode is not used in osC so why load this code?
  function encode() {
      $str = $this->productsID . ":"
             . (($this->hasQuantityPrice == true) ? "1" : "0") . ":"
             . (($this->hasSpecialPrice == true) ? "1" : "0") . ":"
             . $this->quantity[1] . ":"
             . $this->quantity[2] . ":"
             . $this->price[1] . ":"
             . $this->price[2] . ":"
             . $this->specialPrice . ":"
             . $this->qtyBlocks . ":"
             . $this->taxClass;
      return $str;
  }

  function decode($str) {
      list($this->productsID,
           $this->hasQuantityPrice,
           $this->hasSpecialPrice,
           $this->quantity[1],
           $this->quantity[2],
           $this->price[1],
           $this->price[2],
           $this->thePrice,
           $this->specialPrice,
           $this->qtyBlocks,
           $this->taxClass) = explode(":", $str);

      $this->hasQuantityPrice = (($this->hasQuantityPrice == 1) ? true : false);
      $this->hasSpecialPrice = (($this->hasSpecialPrice == 1) ? true : false);
  } */

  function parse($prices) {
    $this->productsID = $prices['products_id'];
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;

    $this->quantity[1]=$prices['products_price1_qty'];
    $this->quantity[2]=$prices['products_price2_qty'];
    $this->thePrice=$prices['products_price'];
    $this->specialPrice=$prices['specials_new_products_price'];
    $this->hasSpecialPrice=tep_not_null($this->specialPrice);

      $this->price[1]=$prices['products_price1'];
    $this->price[2]=$prices['products_price2'];


     /*
       Change support special prices
         If any price level has a price greater than the special
         price lower it to the special price
      */
      if ($this->hasSpecialPrice == true) {
            for($i=1; $i<=8; $i++) {
                  if ($this->price[$i] > $this->specialPrice)
                        $this->price[$i] = $this->specialPrice;
            }
      }
      //end changes to support special prices

    $this->qtyBlocks=$prices['products_qty_blocks'];

    $this->taxClass=$prices['products_tax_class_id'];

    if ($this->quantity[1] > 0) {
      $this->hasQuantityPrice = true;
      $this->hiPrice = $this->thePrice;
      $this->lowPrice = $this->thePrice;

      for($i=1; $i<=8; $i++) {
      if($this->quantity[$i] > 0) {
        if ($this->price[$i] > $this->hiPrice) {
          $this->hiPrice = $this->price[$i];
        }
        if ($this->price[$i] < $this->lowPrice) {
          $this->lowPrice = $this->price[$i];
        }
      }
      }
    }
  }

  function loadProduct($product_id, $language_id=1)
  {
    global $pfs;
       
    $pricebreak = $pfs->getPriceBreak($product_id);
    // returns false if the price break information is not yet stored
    if ($pricebreak != false) {
        $product_info = $pricebreak;
    } else {        
   $sql = "select pd.products_name, p.products_model, p.products_image, p.products_id," .
   " p.manufacturers_id, p.products_price, p.products_weight, p.products_quantity, " .
   " p.products_price1, p.products_price2, p.products_price3,p.products_price4, " .
       " p.products_price5, p.products_price6, p.products_price7, p.products_price8," .
   " p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, " .
       " p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty," .
   " p.products_qty_blocks, p.products_tax_class_id," .
   " IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price " .
   " from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
   " " . TABLE_PRODUCTS_DESCRIPTION . " pd " .
   " where p.products_status = '1'" .
   " and pd.products_id = p.products_id " .
   " and p.products_id = '" . (int)$product_id . "'" .
   " and pd.language_id = '". (int)$language_id ."'";

   $product_info_query = tep_db_query($sql);
   $product_info = tep_db_fetch_array($product_info_query);
   $pfs->addPriceBreakData(tep_get_prid($product_id), $product_info);
    }
    $this->parse($product_info);

    return $product_info;
  }
      
  function computePrice($qty)
  {
      $qty = $this->adjustQty($qty);

      // Compute base price, taking into account the possibility of a special
      $price = ($this->hasSpecialPrice === TRUE) ? $this->specialPrice : $this->thePrice;

      for ($i=1; $i<=8; $i++)
            if (($this->quantity[$i] > 0) && ($qty >= $this->quantity[$i]))
                  $price = $this->price[$i];

      return $price;
  }

  function adjustQty($qty) {
      // Force QTY_BLOCKS granularity
      $qb = $this->getQtyBlocks();
      if ($qty < 1)
            $qty = 1;

      if ($qb >= 1)
      {
            if ($qty < $qb)
                  $qty = $qb;

            if (($qty % $qb) != 0)
                  $qty += ($qb - ($qty % $qb));
      }
      return $qty;
  }

  function getQtyBlocks() {
    return $this->qtyBlocks;
  }

  function getPrice() {
    return $this->thePrice;
  }

  function getLowPrice() {
    return $this->lowPrice;
  }

  function getHiPrice() {
    return $this->hiPrice;
  }

  function hasSpecialPrice() {
    return $this->hasSpecialPrice;
  }

  function hasQuantityPrice() {
    return $this->hasQuantityPrice;
  }

  function getPriceString($style='"productPriceInBox"') {
    global $currencies;

    if ($this->hasSpecialPrice == true) {
          $lc_text = '<table align="top" border="1" cellspacing="0" cellpadding="0">';
        $lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2">';
            $lc_text .= '&nbsp;<s>'
            . $currencies->display_price($this->thePrice,
                             tep_get_tax_rate($this->taxClass))
            . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
            . $currencies->display_price($this->specialPrice,
                             tep_get_tax_rate($this->taxClass))
            . '</span>&nbsp;'
            .'</td></tr>';
    }
    else
    {
            $lc_text = '<table align="top" border="0" cellspacing="0" cellpadding="4">';
            $lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2"></td></tr>';
    }
      // If you want to change the format of the price/quantity table
      // displayed on the product information page, here is where you do it.

//I Need to call to the table to fetch the customers id and their associated discount rate here

    if($this->hasQuantityPrice == true) {
            for($i=1; $i<=1; $i++) {
                  if($this->quantity[$i] > 0) {
                        $lc_text .= '<tr><td class='.$style.'>'
                        . $this->quantity[1]
                        .'x (Half Boxes)</td><td class='.$style.'>'
                        . $currencies->display_price($this->price[$i],
                        tep_get_tax_rate($this->taxClass))
                        .' each</td><tr><td class='.$style.'>'
                        . $this->quantity[2]
                        .'x (Full Boxes)</td><td class='.$style.'>'
                        . $currencies->display_price($this->price[2],
                        tep_get_tax_rate($this->taxClass))
                        .' each</td></tr></tr>';
                  }
            }


            $lc_text .= '</table>';

      }
      else {
            if ($this->hasSpecialPrice == true) {
                  $lc_text = '&nbsp;<s>'
                    . $currencies->display_price($this->thePrice, tep_get_tax_rate($this->taxClass))
                    . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
                    . $currencies->display_price($this->specialPrice, tep_get_tax_rate($this->taxClass))
                    . '</span>&nbsp;';
            }
            else {
                  $lc_text = '&nbsp;'
                    . $currencies->display_price($this->thePrice,
                               tep_get_tax_rate($this->taxClass))
                    . '&nbsp;';
            }
            }

    return $lc_text;
  }

  function getPriceStringShort() {
    global $currencies;

    if ($this->hasSpecialPrice == true) {
      $lc_text = '&nbsp;<s>'
      . $currencies->display_price($this->thePrice,
                             tep_get_tax_rate($this->taxClass))
      . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
      . $currencies->display_price($this->specialPrice,
                             tep_get_tax_rate($this->taxClass))
      . '</span>&nbsp;';
    }
    else {
      if($this->hasQuantityPrice == true) {
      $lc_text = '&nbsp;'
        . $currencies->display_price($this->lowPrice,
                               tep_get_tax_rate($this->taxClass))
        . ' - '
        . $currencies->display_price($this->hiPrice,
                               tep_get_tax_rate($this->taxClass))
        . '&nbsp;';
      }
      else {
      $lc_text = '&nbsp;'
        . $currencies->display_price($this->thePrice,
                               tep_get_tax_rate($this->taxClass))
        . '&nbsp;';
      }
    }
    return $lc_text;
  }
}
?>

twistedindustriesAsked:
Who is Participating?
 
twistedindustriesConnect With a Mentor Author Commented:
Ended up using a different work around.
0
 
nizsmoDeveloperCommented:
what have you go so far in terms of getting the discount?
0
 
twistedindustriesAuthor Commented:
I was using this where it says
//I Need to call to the table to fetch the customers id and their associated discount rate here
in the code above that i pasted.

this is what i was using:
      $customer_query = tep_db_query("select c.customers_id, c.customers_discount from " . TABLE_CUSTOMERS . " c, where c.customers_id = '" . (int)$customers_id . "'");
      $customer = tep_db_fetch_array($product_query);

and then

echo $cusomter('customers_id');

that seems to work on other pages but not on this one
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
nizsmoDeveloperCommented:
when you:
echo $cusomter('customers_id');

what do you see? i suspect it is suppose to be:
echo $cusomter['customers_id'];

as it returns an array.
0
 
twistedindustriesAuthor Commented:
It gives me this

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where c.customers_id = '0'' at line 1

select c.customers_id, c.customers_discount from customers c, where c.customers_id = '0'

[TEP STOP]
0
 
nizsmoDeveloperCommented:
that is something wrong with your query, nothing to do with your echo.

I see the eror with your query, customers_id is an integer so you do not need th single quotes around, also there is probably no need to cast either.

this should work:
$customer_query = tep_db_query("select c.customers_id, c.customers_discount from " . TABLE_CUSTOMERS . " c, where c.customers_id = " . $customers_id . "");

let me know.
0
 
twistedindustriesAuthor Commented:
now it gives me this error  BTW thank you for your help

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where c.customers_id =' at line 1

select c.customers_id, c.customers_discount from customers c, where c.customers_id =

[TEP STOP]
0
 
nizsmoDeveloperCommented:
weird, try this:
$query = "select c.customers_id, c.customers_discount from " . TABLE_CUSTOMERS . " c, where c.customers_id = $customers_id";
echo $query;
$customer_query = tep_db_query($query);
      $customer = tep_db_fetch_array($product_query);

what does echo $query output?
0
 
twistedindustriesAuthor Commented:
now i get this error

select c.customers_id, c.customers_discount from customers c, where c.customers_id = 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where c.customers_id =' at line 1

select c.customers_id, c.customers_discount from customers c, where c.customers_id =

[TEP STOP]
0
 
nizsmoDeveloperCommented:
hang on, now i don't really understand. how about commenting out the execute query, as i just want to make sure the query is correct, something like this and let me know the output?

$query = "select c.customers_id, c.customers_discount from " . TABLE_CUSTOMERS . " c, where c.customers_id = $customers_id";
echo $query;
//$customer_query = tep_db_query($query);
      //$customer = tep_db_fetch_array($product_query);

it should output the $query variable which contains the SQL query.
0
 
twistedindustriesAuthor Commented:
it out puts this:

select c.customers_id, c.customers_discount from customers c, where c.customers_id =
0
 
nizsmoDeveloperCommented:
THERE is the problem, notice that the variable $customers_id has no value? this is causing the error.
Where is this variable coming from? seems like it has nothing in it, when it is suppose to have an id.
0
 
twistedindustriesAuthor Commented:
well i want customers_id= the id of the current customer and i usually do it by adding where c.customers_id = '" . (int)$customers_id . "'") to my query
0
 
nizsmoDeveloperCommented:
well if the $customers_id is empty, casting it with an int won't make a difference?

you can try:

echo (int)$customers_id;

and see if it outputs anything? i suspect it is an empty variable.
0
 
twistedindustriesAuthor Commented:
it outputs 0 which would be incorrect
0
 
nizsmoDeveloperCommented:
indeed, so where does $customers_id get assigned? you will need to check this (maybe try trace up the code) as it is not getting assigned properly, otherwise your query should work without any problems.
0
 
twistedindustriesAuthor Commented:
ok so this works at the top of the page but not down toward the bottom where i need it

here is the code:
    $customer_query = tep_db_query("select cu.customers_id, cu.customers_discount from " . TABLE_CUSTOMERS . " cu where cu.customers_id ='" . (int)$customer_id . "'");
    $customer = tep_db_fetch_array($customer_query);

echo  $customer['customers_id'];
0
 
nizsmoDeveloperCommented:
so the code works at the top ok? what does the $customer_id echo out as? can you look for where it is getting assigned a value?

How long is the code maybe you can post it?
0
 
twistedindustriesAuthor Commented:
it ouputs the customers id number when i echo it  i posted the code look for the spot I will specify where i want the code to be
<?php
/*
  $Id: PriceFormatter.php,v 1.7 2006/12/23 JanZ Exp $
 
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
 
  Copyright (c) 2003 osCommerce
 
  Released under the GNU General Public License
*/
 
/*
    PriceFormatter.php - module to support quantity pricing
 
    Created 2003, Beezle Software based on some code mods by WasaLab Oy (Thanks!)
*/
 
    $customer_query = tep_db_query("select cu.customers_id, cu.customers_discount from " . TABLE_CUSTOMERS . " cu where cu.customers_id ='" . (int)$customer_id . "'");
    $customer = tep_db_fetch_array($customer_query);
 
echo  $customer['customers_id'];
 
class PriceFormatter { 
  var $hiPrice;
  var $lowPrice;
  var $quantity;
  var $hasQuantityPrice;
 
  function PriceFormatter($prices=NULL) {
    $this->productsID = -1;
 
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;
 
    $this->hiPrice=-1;
    $this->lowPrice=-1;
 
    for ($i=1; $i<=8; $i++){
      $this->quantity[$i] = -1;
      $this->prices[$i] = -1;
    }
    $this->thePrice = -1;
    $this->specialPrice = -1;
    $this->qtyBlocks = 1;
 
    if($prices)
      $this->parse($prices);
  }
 
	/* encode and decode is not used in osC so why load this code?
  function encode() {
	$str = $this->productsID . ":"
	       . (($this->hasQuantityPrice == true) ? "1" : "0") . ":"
	       . (($this->hasSpecialPrice == true) ? "1" : "0") . ":"
	       . $this->quantity[1] . ":"
	       . $this->quantity[2] . ":"
	       . $this->price[1] . ":"
	       . $this->price[2] . ":"
	       . $this->specialPrice . ":"
	       . $this->qtyBlocks . ":"
	       . $this->taxClass;
	return $str;
  }
 
  function decode($str) {
	list($this->productsID,
	     $this->hasQuantityPrice,
	     $this->hasSpecialPrice,
	     $this->quantity[1],
	     $this->quantity[2],
	     $this->price[1],
	     $this->price[2],
	     $this->thePrice,
	     $this->specialPrice,
	     $this->qtyBlocks,
	     $this->taxClass) = explode(":", $str);
 
	$this->hasQuantityPrice = (($this->hasQuantityPrice == 1) ? true : false);
	$this->hasSpecialPrice = (($this->hasSpecialPrice == 1) ? true : false);
  } */
 
  function parse($prices) {
    $this->productsID = $prices['products_id'];
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;
 
    $this->quantity[1]=$prices['products_price1_qty'];
    $this->quantity[2]=$prices['products_price2_qty'];
    $this->thePrice=$prices['products_price'];
    $this->specialPrice=$prices['specials_new_products_price'];
    $this->hasSpecialPrice=tep_not_null($this->specialPrice);
 
	$this->price[1]=$prices['products_price1'];
    $this->price[2]=$prices['products_price2'];
 
 
     /*
       Change support special prices
	   If any price level has a price greater than the special
	   price lower it to the special price
	*/
	if ($this->hasSpecialPrice == true) {
		for($i=1; $i<=8; $i++) {
			if ($this->price[$i] > $this->specialPrice)
				$this->price[$i] = $this->specialPrice;
		}
	}
	//end changes to support special prices
 
    $this->qtyBlocks=$prices['products_qty_blocks'];
 
    $this->taxClass=$prices['products_tax_class_id'];
 
    if ($this->quantity[1] > 0) {
      $this->hasQuantityPrice = true;
      $this->hiPrice = $this->thePrice;
      $this->lowPrice = $this->thePrice;
 
      for($i=1; $i<=8; $i++) {
	if($this->quantity[$i] > 0) {
	  if ($this->price[$i] > $this->hiPrice) {
	    $this->hiPrice = $this->price[$i];
	  }
	  if ($this->price[$i] < $this->lowPrice) {
	    $this->lowPrice = $this->price[$i];
	  }
	}
      }
    }
  }
 
  function loadProduct($product_id, $language_id=1)
  {
    global $pfs;
        
    $pricebreak = $pfs->getPriceBreak($product_id);
    // returns false if the price break information is not yet stored
    if ($pricebreak != false) {
        $product_info = $pricebreak;
    } else {        
   $sql = "select pd.products_name, p.products_model, p.products_image, p.products_id," .
   " p.manufacturers_id, p.products_price, p.products_weight, p.products_quantity, " .
   " p.products_price1, p.products_price2, p.products_price3,p.products_price4, " . 
	 " p.products_price5, p.products_price6, p.products_price7, p.products_price8," .
   " p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, " . 
	 " p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty," .
   " p.products_qty_blocks, p.products_tax_class_id," .
   " IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price " .
   " from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
   " " . TABLE_PRODUCTS_DESCRIPTION . " pd " .
   " where p.products_status = '1'" .
   " and pd.products_id = p.products_id " .
   " and p.products_id = '" . (int)$product_id . "'" .
   " and pd.language_id = '". (int)$language_id ."'";
 
   $product_info_query = tep_db_query($sql);
   $product_info = tep_db_fetch_array($product_info_query);
   $pfs->addPriceBreakData(tep_get_prid($product_id), $product_info);
    }
    $this->parse($product_info);
 
    return $product_info;
  }
	
  function computePrice($qty)
  {
	$qty = $this->adjustQty($qty);
 
	// Compute base price, taking into account the possibility of a special
	$price = ($this->hasSpecialPrice === TRUE) ? $this->specialPrice : $this->thePrice;
 
	for ($i=1; $i<=8; $i++)
		if (($this->quantity[$i] > 0) && ($qty >= $this->quantity[$i]))
			$price = $this->price[$i];
 
	return $price;
  }
 
  function adjustQty($qty) {
	// Force QTY_BLOCKS granularity
	$qb = $this->getQtyBlocks();
	if ($qty < 1)
		$qty = 1;
 
	if ($qb >= 1)
	{
		if ($qty < $qb)
			$qty = $qb;
 
		if (($qty % $qb) != 0)
			$qty += ($qb - ($qty % $qb));
	}
	return $qty;
  }
 
  function getQtyBlocks() {
    return $this->qtyBlocks;
  }
 
  function getPrice() {
    return $this->thePrice;
  }
 
  function getLowPrice() {
    return $this->lowPrice;
  }
 
  function getHiPrice() {
    return $this->hiPrice;
  }
 
  function hasSpecialPrice() {
    return $this->hasSpecialPrice;
  }
 
  function hasQuantityPrice() {
    return $this->hasQuantityPrice;
  }
 
  function getPriceString($style='"productPriceInBox"') {
    global $currencies;
 
    if ($this->hasSpecialPrice == true) {
    	$lc_text = '<table align="top" border="1" cellspacing="0" cellpadding="0">';
        $lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2">';
	      $lc_text .= '&nbsp;<s>'
		. $currencies->display_price($this->thePrice,
				     tep_get_tax_rate($this->taxClass))
		. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
		. $currencies->display_price($this->specialPrice,
				     tep_get_tax_rate($this->taxClass))
		. '</span>&nbsp;'
		.'</td></tr>';
    }
    else
    {
		$lc_text = '<table align="top" border="0" cellspacing="0" cellpadding="4">';
		$lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2"></td></tr>';
    }
      // If you want to change the format of the price/quantity table
      // displayed on the product information page, here is where you do it.
 
////******HERE IS WHERE IT ISN'T WORKING********\\\\\\\\
 
    $customer_query = tep_db_query("select cu.customers_id, cu.customers_discount from " . TABLE_CUSTOMERS . " cu where cu.customers_id ='" . (int)$customer_id . "'");
    $customer = tep_db_fetch_array($customer_query);
 
echo  $customer['customers_id'];
 
    if($this->hasQuantityPrice == true) {
		for($i=1; $i<=1; $i++) {
			if($this->quantity[$i] > 0) {
				$lc_text .= '<tr><td class='.$style.'>'
				. $this->quantity[1]
				.'x (Half Boxes)</td><td class='.$style.'>'
				. $currencies->display_price($this->price[$i],
				tep_get_tax_rate($this->taxClass))
				.' each</td><tr><td class='.$style.'>'
				. $this->quantity[2]
				.'x (Full Boxes)</td><td class='.$style.'>'
				. $currencies->display_price($this->price[2],
				tep_get_tax_rate($this->taxClass))
				.' each</td></tr></tr>';
			}
		}
 
 
		$lc_text .= '</table>';
 
      }
      else {
		if ($this->hasSpecialPrice == true) {
			$lc_text = '&nbsp;<s>'
			  . $currencies->display_price($this->thePrice, tep_get_tax_rate($this->taxClass))
			  . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
			  . $currencies->display_price($this->specialPrice, tep_get_tax_rate($this->taxClass))
			  . '</span>&nbsp;';
		}
		else {
			$lc_text = '&nbsp;'
	  		. $currencies->display_price($this->thePrice,
				       tep_get_tax_rate($this->taxClass))
	  		. '&nbsp;';
		}
      	}
 
    return $lc_text;
  }
 
  function getPriceStringShort() {
    global $currencies;
 
    if ($this->hasSpecialPrice == true) {
      $lc_text = '&nbsp;<s>'
	. $currencies->display_price($this->thePrice,
				     tep_get_tax_rate($this->taxClass))
	. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
	. $currencies->display_price($this->specialPrice,
				     tep_get_tax_rate($this->taxClass))
	. '</span>&nbsp;';
    }
    else {
      if($this->hasQuantityPrice == true) {
	$lc_text = '&nbsp;'
	  . $currencies->display_price($this->lowPrice,
				       tep_get_tax_rate($this->taxClass))
	  . ' - '
	  . $currencies->display_price($this->hiPrice,
				       tep_get_tax_rate($this->taxClass))
	  . '&nbsp;';
      }
      else {
	$lc_text = '&nbsp;'
	  . $currencies->display_price($this->thePrice,
				       tep_get_tax_rate($this->taxClass))
	  . '&nbsp;';
      }
    }
    return $lc_text;
  }
}
?>

Open in new window

0
 
nizsmoDeveloperCommented:
are you saying that by placing:
$customer_query = tep_db_query("select cu.customers_id, cu.customers_discount from " . TABLE_CUSTOMERS . " cu where cu.customers_id ='" . (int)$customer_id . "'");
    $customer = tep_db_fetch_array($customer_query);
 
echo  $customer['customers_id'];


at the top the code works?

This is very weird, because I don't see any instances of $customer_id getting assigned in your posted code, so maybe it is getting assigned elsewhere?

so when you echo $customer_id at the top, it doesn't display a blank or a 0 but actually a number?
0
 
twistedindustriesAuthor Commented:
nope i posted a screen shot and hosted it here

http://www.thebearmillinc.com/example.jpg
0
 
nizsmoDeveloperCommented:
thank you for the screenshot, it is a clear illustration. Is the id 1552 in $customer_id variable ro is it in the $customer['customers_id']?
0
 
twistedindustriesAuthor Commented:
it is the output of echo $customer['customers_id']  which is what i want it to be
0
 
nizsmoDeveloperCommented:
ahh then can't you just assign:

$customer_id = $customer["customers_id"];

then all the code should work as $customer_id now actually has the customer id?
0
 
twistedindustriesAuthor Commented:
It is still outputting nothing

I have attached the code again
<?php
/*
  $Id: PriceFormatter.php,v 1.7 2006/12/23 JanZ Exp $
 
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
 
  Copyright (c) 2003 osCommerce
 
  Released under the GNU General Public License
*/
 
/*
    PriceFormatter.php - module to support quantity pricing
 
    Created 2003, Beezle Software based on some code mods by WasaLab Oy (Thanks!)
*/
 
    $customer_query = tep_db_query("select cu.customers_id, cu.customers_discount from " . TABLE_CUSTOMERS . " cu where cu.customers_id ='" . (int)$customer_id . "'");
    $customer = tep_db_fetch_array($customer_query);
 
echo  $customer['customers_id'];
 
$customer_id = $customer["customers_id"];
 
class PriceFormatter { 
  var $hiPrice;
  var $lowPrice;
  var $quantity;
  var $hasQuantityPrice;
 
  function PriceFormatter($prices=NULL) {
    $this->productsID = -1;
 
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;
 
    $this->hiPrice=-1;
    $this->lowPrice=-1;
 
    for ($i=1; $i<=8; $i++){
      $this->quantity[$i] = -1;
      $this->prices[$i] = -1;
    }
    $this->thePrice = -1;
    $this->specialPrice = -1;
    $this->qtyBlocks = 1;
 
    if($prices)
      $this->parse($prices);
  }
 
	/* encode and decode is not used in osC so why load this code?
  function encode() {
	$str = $this->productsID . ":"
	       . (($this->hasQuantityPrice == true) ? "1" : "0") . ":"
	       . (($this->hasSpecialPrice == true) ? "1" : "0") . ":"
	       . $this->quantity[1] . ":"
	       . $this->quantity[2] . ":"
	       . $this->price[1] . ":"
	       . $this->price[2] . ":"
	       . $this->specialPrice . ":"
	       . $this->qtyBlocks . ":"
	       . $this->taxClass;
	return $str;
  }
 
  function decode($str) {
	list($this->productsID,
	     $this->hasQuantityPrice,
	     $this->hasSpecialPrice,
	     $this->quantity[1],
	     $this->quantity[2],
	     $this->price[1],
	     $this->price[2],
	     $this->thePrice,
	     $this->specialPrice,
	     $this->qtyBlocks,
	     $this->taxClass) = explode(":", $str);
 
	$this->hasQuantityPrice = (($this->hasQuantityPrice == 1) ? true : false);
	$this->hasSpecialPrice = (($this->hasSpecialPrice == 1) ? true : false);
  } */
 
  function parse($prices) {
    $this->productsID = $prices['products_id'];
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;
 
    $this->quantity[1]=$prices['products_price1_qty'];
    $this->quantity[2]=$prices['products_price2_qty'];
    $this->thePrice=$prices['products_price'];
    $this->specialPrice=$prices['specials_new_products_price'];
    $this->hasSpecialPrice=tep_not_null($this->specialPrice);
 
	$this->price[1]=$prices['products_price1'];
    $this->price[2]=$prices['products_price2'];
 
 
     /*
       Change support special prices
	   If any price level has a price greater than the special
	   price lower it to the special price
	*/
	if ($this->hasSpecialPrice == true) {
		for($i=1; $i<=8; $i++) {
			if ($this->price[$i] > $this->specialPrice)
				$this->price[$i] = $this->specialPrice;
		}
	}
	//end changes to support special prices
 
    $this->qtyBlocks=$prices['products_qty_blocks'];
 
    $this->taxClass=$prices['products_tax_class_id'];
 
    if ($this->quantity[1] > 0) {
      $this->hasQuantityPrice = true;
      $this->hiPrice = $this->thePrice;
      $this->lowPrice = $this->thePrice;
 
      for($i=1; $i<=8; $i++) {
	if($this->quantity[$i] > 0) {
	  if ($this->price[$i] > $this->hiPrice) {
	    $this->hiPrice = $this->price[$i];
	  }
	  if ($this->price[$i] < $this->lowPrice) {
	    $this->lowPrice = $this->price[$i];
	  }
	}
      }
    }
  }
 
  function loadProduct($product_id, $language_id=1)
  {
    global $pfs;
        
    $pricebreak = $pfs->getPriceBreak($product_id);
    // returns false if the price break information is not yet stored
    if ($pricebreak != false) {
        $product_info = $pricebreak;
    } else {        
   $sql = "select pd.products_name, p.products_model, p.products_image, p.products_id," .
   " p.manufacturers_id, p.products_price, p.products_weight, p.products_quantity, " .
   " p.products_price1, p.products_price2, p.products_price3,p.products_price4, " . 
	 " p.products_price5, p.products_price6, p.products_price7, p.products_price8," .
   " p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, " . 
	 " p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty," .
   " p.products_qty_blocks, p.products_tax_class_id," .
   " IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price " .
   " from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
   " " . TABLE_PRODUCTS_DESCRIPTION . " pd " .
   " where p.products_status = '1'" .
   " and pd.products_id = p.products_id " .
   " and p.products_id = '" . (int)$product_id . "'" .
   " and pd.language_id = '". (int)$language_id ."'";
 
   $product_info_query = tep_db_query($sql);
   $product_info = tep_db_fetch_array($product_info_query);
   $pfs->addPriceBreakData(tep_get_prid($product_id), $product_info);
    }
    $this->parse($product_info);
 
    return $product_info;
  }
	
  function computePrice($qty)
  {
	$qty = $this->adjustQty($qty);
 
	// Compute base price, taking into account the possibility of a special
	$price = ($this->hasSpecialPrice === TRUE) ? $this->specialPrice : $this->thePrice;
 
	for ($i=1; $i<=8; $i++)
		if (($this->quantity[$i] > 0) && ($qty >= $this->quantity[$i]))
			$price = $this->price[$i];
 
	return $price;
  }
 
  function adjustQty($qty) {
	// Force QTY_BLOCKS granularity
	$qb = $this->getQtyBlocks();
	if ($qty < 1)
		$qty = 1;
 
	if ($qb >= 1)
	{
		if ($qty < $qb)
			$qty = $qb;
 
		if (($qty % $qb) != 0)
			$qty += ($qb - ($qty % $qb));
	}
	return $qty;
  }
 
  function getQtyBlocks() {
    return $this->qtyBlocks;
  }
 
  function getPrice() {
    return $this->thePrice;
  }
 
  function getLowPrice() {
    return $this->lowPrice;
  }
 
  function getHiPrice() {
    return $this->hiPrice;
  }
 
  function hasSpecialPrice() {
    return $this->hasSpecialPrice;
  }
 
  function hasQuantityPrice() {
    return $this->hasQuantityPrice;
  }
 
  function getPriceString($style='"productPriceInBox"') {
    global $currencies;
 
    if ($this->hasSpecialPrice == true) {
    	$lc_text = '<table align="top" border="1" cellspacing="0" cellpadding="0">';
        $lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2">';
	      $lc_text .= '&nbsp;<s>'
		. $currencies->display_price($this->thePrice,
				     tep_get_tax_rate($this->taxClass))
		. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
		. $currencies->display_price($this->specialPrice,
				     tep_get_tax_rate($this->taxClass))
		. '</span>&nbsp;'
		.'</td></tr>';
    }
    else
    {
		$lc_text = '<table align="top" border="0" cellspacing="0" cellpadding="4">';
		$lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2"></td></tr>';
    }
      // If you want to change the format of the price/quantity table
      // displayed on the product information page, here is where you do it.
 
////******HERE IS WHERE IT ISN'T WORKING********\\\\\\\\
 
 
echo test;
echo  $customer_id;
 
    if($this->hasQuantityPrice == true) {
		for($i=1; $i<=1; $i++) {
			if($this->quantity[$i] > 0) {
				$lc_text .= '<tr><td class='.$style.'>'
				. $this->quantity[1]
				.'x (Half Boxes)</td><td class='.$style.'>'
				. $currencies->display_price($this->price[$i],
				tep_get_tax_rate($this->taxClass))
				.' each</td><tr><td class='.$style.'>'
				. $this->quantity[2]
				.'x (Full Boxes)</td><td class='.$style.'>'
				. $currencies->display_price($this->price[2],
				tep_get_tax_rate($this->taxClass))
				.' each</td></tr></tr>';
			}
		}
 
 
		$lc_text .= '</table>';
 
      }
      else {
		if ($this->hasSpecialPrice == true) {
			$lc_text = '&nbsp;<s>'
			  . $currencies->display_price($this->thePrice, tep_get_tax_rate($this->taxClass))
			  . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
			  . $currencies->display_price($this->specialPrice, tep_get_tax_rate($this->taxClass))
			  . '</span>&nbsp;';
		}
		else {
			$lc_text = '&nbsp;'
	  		. $currencies->display_price($this->thePrice,
				       tep_get_tax_rate($this->taxClass))
	  		. '&nbsp;';
		}
      	}
 
    return $lc_text;
  }
 
  function getPriceStringShort() {
    global $currencies;
 
    if ($this->hasSpecialPrice == true) {
      $lc_text = '&nbsp;<s>'
	. $currencies->display_price($this->thePrice,
				     tep_get_tax_rate($this->taxClass))
	. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
	. $currencies->display_price($this->specialPrice,
				     tep_get_tax_rate($this->taxClass))
	. '</span>&nbsp;';
    }
    else {
      if($this->hasQuantityPrice == true) {
	$lc_text = '&nbsp;'
	  . $currencies->display_price($this->lowPrice,
				       tep_get_tax_rate($this->taxClass))
	  . ' - '
	  . $currencies->display_price($this->hiPrice,
				       tep_get_tax_rate($this->taxClass))
	  . '&nbsp;';
      }
      else {
	$lc_text = '&nbsp;'
	  . $currencies->display_price($this->thePrice,
				       tep_get_tax_rate($this->taxClass))
	  . '&nbsp;';
      }
    }
    return $lc_text;
  }
}
?>

Open in new window

0
 
nizsmoDeveloperCommented:
echo  $customer['customers_id'];

this outputs 1552 right?
0
 
twistedindustriesAuthor Commented:
right it will output it at the top of the page but not at the bottom where i need it i think its because its wrapped in a function tag

does this part of the code have something to do with it or can we do something with it?
 function parse($prices) {
    $this->productsID = $prices['products_id'];
    $this->hasQuantityPrice=false;
    $this->hasSpecialPrice=false;
 
    $this->quantity[1]=$prices['products_price1_qty'];
    $this->quantity[2]=$prices['products_price2_qty'];
    $this->thePrice=$prices['products_price'];
    $this->specialPrice=$prices['specials_new_products_price'];
    $this->hasSpecialPrice=tep_not_null($this->specialPrice);
 
	$this->price[1]=$prices['products_price1'];
    $this->price[2]=$prices['products_price2'];
 
 
     /*
       Change support special prices
	   If any price level has a price greater than the special
	   price lower it to the special price
	*/
	if ($this->hasSpecialPrice == true) {
		for($i=1; $i<=8; $i++) {
			if ($this->price[$i] > $this->specialPrice)
				$this->price[$i] = $this->specialPrice;
		}
	}
	//end changes to support special prices
 
    $this->qtyBlocks=$prices['products_qty_blocks'];
 
    $this->taxClass=$prices['products_tax_class_id'];
 
    if ($this->quantity[1] > 0) {
      $this->hasQuantityPrice = true;
      $this->hiPrice = $this->thePrice;
      $this->lowPrice = $this->thePrice;
 
      for($i=1; $i<=8; $i++) {
	if($this->quantity[$i] > 0) {
	  if ($this->price[$i] > $this->hiPrice) {
	    $this->hiPrice = $this->price[$i];
	  }
	  if ($this->price[$i] < $this->lowPrice) {
	    $this->lowPrice = $this->price[$i];
	  }
	}
      }
    }
  }
 
  function loadProduct($product_id, $language_id=1)
  {
    global $pfs;
        
    $pricebreak = $pfs->getPriceBreak($product_id);
    // returns false if the price break information is not yet stored
    if ($pricebreak != false) {
        $product_info = $pricebreak;
    } else {        
   $sql = "select pd.products_name, p.products_model, p.products_image, p.products_id," .
   " p.manufacturers_id, p.products_price, p.products_weight, p.products_quantity, " .
   " p.products_price1, p.products_price2, p.products_price3,p.products_price4, " . 
	 " p.products_price5, p.products_price6, p.products_price7, p.products_price8," .
   " p.products_price1_qty, p.products_price2_qty, p.products_price3_qty, p.products_price4_qty, " . 
	 " p.products_price5_qty, p.products_price6_qty, p.products_price7_qty, p.products_price8_qty," .
   " p.products_qty_blocks, p.products_tax_class_id," .
   " IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price " .
   " from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " .
   " " . TABLE_PRODUCTS_DESCRIPTION . " pd " .
   " where p.products_status = '1'" .
   " and pd.products_id = p.products_id " .
   " and p.products_id = '" . (int)$product_id . "'" .
   " and pd.language_id = '". (int)$language_id ."'";
 
   $product_info_query = tep_db_query($sql);
   $product_info = tep_db_fetch_array($product_info_query);
   $pfs->addPriceBreakData(tep_get_prid($product_id), $product_info);
    }
    $this->parse($product_info);
 
    return $product_info;
  }
	
  function computePrice($qty)
  {
	$qty = $this->adjustQty($qty);
 
	// Compute base price, taking into account the possibility of a special
	$price = ($this->hasSpecialPrice === TRUE) ? $this->specialPrice : $this->thePrice;
 
	for ($i=1; $i<=8; $i++)
		if (($this->quantity[$i] > 0) && ($qty >= $this->quantity[$i]))
			$price = $this->price[$i];
 
	return $price;
  }

Open in new window

0
 
nizsmoDeveloperCommented:
I am nto sure in regards to that code. What you are having trouble at the moment is with the customer_id and that is probably not associated to the product or price of the products.

Being honest, I still don't get the full context of the code and trying best to help you but am stabbing in the dark. I am confused which variable actually echoed 1552 and why $customer_id has no value, but then I can't see it being assigned anywhere.
0
 
twistedindustriesAuthor Commented:
just echo $customer_id does output 1552
0
 
nizsmoDeveloperCommented:
but echoing at the bottom of the script you don't get 1552?
0
 
twistedindustriesAuthor Commented:
no
0
 
nizsmoDeveloperCommented:
ok, how about try and assign $customer_id to a temp variable, and echoing the temp variable at the bottom?

$temp = $customer_id;


 ///.... lots of code here ...


echo $temp;

does that echo out as 1552?
0
 
twistedindustriesAuthor Commented:
nope nothing
0
 
nizsmoDeveloperCommented:
i'm too confused now to say anything really, its lik doing this:

$customer_id = "1552";
echo $customer_id; // echo's 1552 ok
$test = $customer_id;

// AFTER SOME CODE HERE, but with no reference or assignments whatsoever to $test or $customer_id

echo $test; // echos nothing??
echo $customer_id; // echos nothing?


So is that basically what you are saying?
0
 
twistedindustriesAuthor Commented:
that is exactly what i am saying hence my terrible confusion
0
 
nizsmoDeveloperCommented:
another possible thing is that before it even reaches that code, the php script encouters an error and stops!

have you check the error logs?
0
 
twistedindustriesAuthor Commented:
how do i do that?
0
 
nizsmoDeveloperCommented:
are you on shared hosting or your own server?

you can try putting this line at the start of your code:
error_reporting(E_ALL); ini_set('display_errors','On');

and see what it prints out.
0
 
twistedindustriesAuthor Commented:
i am on a shared server
0
 
nizsmoDeveloperCommented:
you can still add the line above and see what it outputs.
0
 
twistedindustriesAuthor Commented:
error_reporting(E_ALL); ini_set('display_errors','On');

does nothing would it help to know that it is an oscommerce based store?
0
 
nizsmoDeveloperCommented:
it would help output any errors in your script, regardless of what your script does.
0
 
twistedindustriesAuthor Commented:
nm i was editing one piece of could and looking at another here is what it outputted
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: discount_satus in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/PriceFormatterStore.php on line 64
 
Notice: Undefined index: sts_debug in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/sts.php on line 64
 
Notice: Undefined index: sts_template in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/classes/sts.php on line 69
 
Notice: Use of undefined constant MODULE_STS_PRODUCT_INFO_TITLE - assumed 'MODULE_STS_PRODUCT_INFO_TITLE' in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/modules/sts/sts_product_info.php on line 21
 
Notice: Use of undefined constant MODULE_STS_PRODUCT_INFO_DESCRIPTION - assumed 'MODULE_STS_PRODUCT_INFO_DESCRIPTION' in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/modules/sts/sts_product_info.php on line 22
 
Notice: Use of undefined constant MODULE_STS_DEFAULT_TITLE - assumed 'MODULE_STS_DEFAULT_TITLE' in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/modules/sts/sts_default.php on line 28
 
Notice: Use of undefined constant MODULE_STS_DEFAULT_DESCRIPTION - assumed 'MODULE_STS_DEFAULT_DESCRIPTION' in /home/.tonto/thebearmill/thebearmillinc.com/store/includes/modules/sts/sts_default.php on line 29

Open in new window

0
 
twistedindustriesAuthor Commented:
actually i just noticed there is more check the screen shot here:

http://www.thebearmillinc.com/ss.jpg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.