Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity Price Breaks Per Product


57chevy

Recommended Posts

hi everyone,

 

after hours of hardcoding I'm stuck at the moment.

this looks to be an awesome contrib:

http://www.oscommerce.com/community/contributions,1242

 

the admin is working just fine, but in the frontend

i keep getting errors, such as:

 

in product_info.php at the very top

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/web250/html/shop/includes/functions/awb_pb.php:1) in /var/www/web250/html/shop/includes/functions/sessions.php on line 67

 

in product_info.php in the middle part, where the product_description is supposed to be:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/web250/html/shop/includes/functions/database.php on line 103

 

any suggestions, where i went wrong?

i'm running a loaded5 version

 

thanx for your time.

steve

... in the end, it will work

Link to comment
Share on other sites

  • 1 year later...

Yes, in includes/classes/shopping_cart.php see the function is not ended:

if ($products = $pf->loadProduct($products_id, $languages_id)) {

$products_price = $pf->computePrice($this->contents[$products_id]['qty']);

 

you have to put an } at the end, so the function will look lik this:

 

if ($products = $pf->loadProduct($products_id, $languages_id)) {

$products_price = $pf->computePrice($this->contents[$products_id]['qty']);

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...