Web Hosting Forums

Web Hosting

Discussion Forums

Missing DB entry? for Printable Catalog with discounts

This is a discussion on Missing DB entry? for Printable Catalog with discounts within the osCMax/osCommerce forums, part of the Virtual Hosting Forums category; I'm running into an error with the printable catalog feature when it calls for the customers discount level (group discount). ...


Go Back   Web Hosting Forums > Virtual Hosting Forums > osCMax/osCommerce

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-30-2004, 11:28 AM
Junior Member
 
Join Date: Jun 2004
Location: Louisville, KY
Age: 34
Posts: 2
Rep Power: 0
nedz is on a distinguished road
Exclamation Missing DB entry? for Printable Catalog with discounts

I'm running into an error with the printable catalog feature when it calls for the customers discount level (group discount). If I disable in the admin it's fine, but I want wholesale customers to be able to print a wholesale price list so I enabled the feature.

This is the error:

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/csmqwfch/public_html/catalog/templates/aabox/content/catalog_products_with_images.tpl.php on line 300

and it deals with this code:

//Discount used for Customer Discount Mod
if (PRODUCT_LIST_CUSTOMER_DISCOUNT) {
$discount = mysql_result(mysql_query("select customer_discount from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"), 0 , 0);
}


The problem seems to be the reference table entry from TABLE_CUSTOMERS based on the CUSTOMERS_ID where it is looking for a discount.

I don't know squat about code but it seems the TABLE is missing an entry or direction set to extrapolate the discount. The PRODUCTS_GROUPS entry has the correct discounted price attributed to the correct group but the Printable Catalog fails to retreive it.

Any suggestions? I would really love to use this feature as a large part of our business will be wholesale.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 11:56 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright ©2002-2008 AABox Web Hosting