Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Has anybody ever gotten the discount coupons to work?


wvmlt

Recommended Posts

I've tried installing the v 0.94 coupon contribution with the gift voucher contribution and can't get it to work. The admin area looks great except I need to type in the URL to get to the coupon_admin page. The big problem is with the catalog/default.php URL. All that comes up is

 

Fatal error: Call to a member function on a non-object in /home/virtual/site55/fst/var/www/html/catalog/includes/header.php on line 59

 

When this happens I have to delete everything and re-load the store(Yes I took Ian's advice and backed everything up). It looks like a great addition to the cart and could be really useful. I just need some tips on how to install it. If anyone has sucessfully installed the discount coupon contribution, please let me know what you had to do in order to get it to work.

 

Keith

Keith

 

 

What the hell was I thinkin'?

Link to comment
Share on other sites

Keith,

 

Yes I know some people who have been using this 'live' for some time.

 

Your first problem. Having to type in the url because the link doesn't work. Most likely to be a missing define. There are a couple of files, called add_application_top.txt and add_english.php.txt which have defines that need to be added to the files in question.

 

Your second problem, the called to member function error. Not sure about this. None of my edits affects either default.php or header.php.

 

Would suggest the following. Depending on how old your snapshot is, Install credit class GV v3.0 or 3.2 (3.0 if you dont have the new breadcrumb class).

 

Make sure this is working properly, with no errors at any point, especially checkout.

 

Once your happy with that then install the Discount Coupon Code.

 

Take it step by step, and I'll be watching out for your posts.

Trust me, I'm an Accountant.

Link to comment
Share on other sites

Hi Ian,

 

Thanks for your advice. My snapshot was downloaded about 2 weeks ago. As for the other stuff--

 

When I installed the GV contribution everything was fine, I was able to access through admin, etc. The problem came up after the coupon contribution was added. I looked at your modded snapshot on your site and saw a file about repairing the cart due to a problem with php. I'm gonna try that over the weekend and see what happens.

 

KEith

Keith

 

 

What the hell was I thinkin'?

Link to comment
Share on other sites

Okay, did a quick install and now I'm getting this

 

1146 - Table 'knlbargains_com.TABLE_GV_CUSTOMER' doesn't exist

 

select amount from TABLE_GV_CUSTOMER where customer_id='3'

 

[TEP STOP]

 

the table does exist. I even dropped all the gv tables and rebuilt them just to make sure.

Keith

 

 

What the hell was I thinkin'?

Link to comment
Share on other sites

The table exists, its the define for the table name that is missing.

 

In catalog/includes/ there should be a file called add_application_top.php. This contains all of the defines for the GV system.

 

In application_top.php just before the final ?>

you should have a line that reads

 

require(DIR_WS_INCLUDES . 'add_application_top.php');

 

Told you I'd watch for your posts :-)

Trust me, I'm an Accountant.

Link to comment
Share on other sites

Sucess!!! You're the man Ian. One question about the GV though. Here is how it looks in my admin screen:

 

BOX_HEADING_GV_ADMIN

 

BOX_GV_ADMIN_QUEUE

BOX_GV_ADMIN_MAIL

BOX_GV_ADMIN_SENT

 

Is that how it's supposed to look? It works though and that's the important thing. I'll worry about the asthetics later.

 

Thanks for your help,

 

Keith

Keith

 

 

What the hell was I thinkin'?

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