Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR


Punkey

Recommended Posts

Hi Guys,

Can anybody help me with this problem? I was told this is from contrib.

<Fatal error: Call to undefined function: tep_db_query() in /home/gourmetc/public_html/add_checkout_success.php on line 3>

----------- This is the begining of script and all () are correct unless I missed somthing.

<?php

//ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM - Start Addition

$gv_query=tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='".$customer_id."'");

if ($gv_result=tep_db_fetch_array($gv_query)) {

if ($gv_result['amount'] > 0) {

?>

Can one of you look at this please and tell me how to correct this problem? :blink:

I appreciate any help I get.

Thanks.

OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

Try adding the following directly after <?php

 

  require('includes/application_top.php');

 

Matti

 

OK, I did that. the code looks like this:

 

<?php require('includes/application_top.php');

//ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM - Start Addition

$gv_query=tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='".$customer_id."'");

if ($gv_result=tep_db_fetch_array($gv_query)) {

if ($gv_result['amount'] > 0) {

---------

No iget this error:

1146 - Table 'gourmetc_basket.TABLE_COUPON_GV_CUSTOMER' doesn't exist

 

select amount from TABLE_COUPON_GV_CUSTOMER where customer_id=''

 

[TEP STOP]

eny idea?

OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

You have not included the database defines for the contribution in database_tables.php - please read the contribution documentation. Also make sure that the contribution is compatible with your version of osCommerce :D

 

Matti

 

Matti

Link to comment
Share on other sites

You have not included the database defines for the contribution in database_tables.php - please read the contribution documentation.  Also make sure that the contribution is compatible with your version of osCommerce  :D

 

Matti

 

Matti

I am sorry Matti,

I know I don't belong here! Not a programmer and totally lost.

Can you explain in plain English (For Dummys) so I can do it.

If not I understand. :huh:

My OSC is M2.2 and this contrib was installed by some one els.

Thanks.

OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!

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