Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Serious errors after server move...


Trailz

Recommended Posts

Posted

I just switched hosts and had to move my database and site over.

 

I how get these errors (If i change to standard files it works)

 

Warning: Missing argument 2 for display_price()

 

I modified product_listing.php to do this so it would print "See Item" instead of $0.00 for each item.

 

How do I fix this problem? Thanks....

 

$haha = $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']));

 

if ($currencies->display_price($listing['products_price']) == "$0.00") {

$thepriceof = "See Item";

} else {

$thepriceof = $haha;

}

if (tep_not_null($listing['specials_new_products_price'])) {

$lc_text = ' <s>' . $thepriceof . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';

 

} else {

$lc_text = ' ' . $thepriceof . ' ';

 

}

Posted

apparently in php 4.3.1 & 4.3.2 it worked fine, I fixed it by changing

 

if ($currencies->display_price($listing['products_price']) == "$0.00") {

 

to

 

if ($haha == "$0.00") {

 

 

hope this helps someone else who runs into this problem.

Archived

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

×
×
  • Create New...