Guest Posted December 28, 2004 Posted December 28, 2004 Am trying to setup Quanityt Price Break in a new oscommerce installation. When I select a product, I receive the error: Fatal error: Call to a member function on a non-object in product_info.php on line 77 The code at this location is: $pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); Per the contribution installation: Find: if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } Change to: $pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); Any suggestions on how to fix this? Quote
juanpalomo Posted January 19, 2005 Posted January 19, 2005 Fatal error: Call to a member function on a non-object in product_info.php on line 77 The code at this location is: $pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); I have exactly the same problem, has someone a solution? :blink: Quote
jefff Posted January 19, 2005 Posted January 19, 2005 I have a different problem with this contribution. For items that do NOT have price breaks defined, but DO have a special price, it is not picking up the special price when the item is added to the shopping cart. Anybody know how to fix ?? Thx. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.