Trailz Posted November 21, 2003 Posted November 21, 2003 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 . ' '; }
Trailz Posted November 21, 2003 Author Posted November 21, 2003 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.