Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with Quantity Price Break v1.11.2


Recommended Posts

Posted

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?

  • 3 weeks later...
Posted
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:

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...