Jump to content
Sign in to follow this  
Ian

[Contribution] Credit Class/Gift voucher/Discount Coupon v5

Recommended Posts

I am getting following errors after installing credit class and GV contribution

 

I get " TABLE_HEADING_COMMENTS" on various chechout pages.

 

Then in admin which was working fine previously shows similiar text problems...eg BOX_HEADING_GV_ADMIN

BOX_COUPON_ADMIN

BOX_GV_ADMIN_QUEUE

BOX_GV_ADMIN_MAIL

BOX_GV_ADMIN_SENT

 

 

 

 

can someone help me with this please

thanks

Share this post


Link to post
Share on other sites

thanks for your help but I have no clue what u are talking about...no php knowledge....can you explain in a little more detail. i will appreciate that.

 

thanks again

Share this post


Link to post
Share on other sites

My coupons are working well but they're not tracking. I noticed one other fellow having a similar problem. Sterling suggested...

 

I did a search through all the files that use it (it appears to be working fine on mine, here's the listing along with line numbers (approximate as I have a few mods)

 

catalog/includes/classes/shopping_cart.php:46

catalog/includes/modules/order_total/ot_coupon.php:337

catalog/includes/modules/order_total/ot_gv.php:168

catalog/gv_redeem.php:42

 

Check those out and make sure all of them have an insert into the coupon_redeem_track

 

I checked each of those files and noticed there is an insert table_coupon_redeem_track there but still no go.

 

Anyone else have any ideas?


Roadracing makes heroin addiction look like a vague wish for something salty.

Share this post


Link to post
Share on other sites
thanks for your help but I have no clue what u are talking about...no php knowledge....can you explain in a little more detail. i will appreciate that.

 

thanks again

 

You have to edit two files:

Catalog/includes/filenames.php

 

Add this:

  define('FILENAME_ADD_CHECKOUT_SUCCESS', 'add_checkout_success.php');

 define('FILENAME_GV_FAQ', 'gv_faq.php');

 define('FILENAME_GV_REDEEM.PHP', 'gv_redeem.php');

 define('FILENAME_GV_SEND', 'gv_send.php');

 define('FILENAME_POPUP_COUPON_HELP', 'popup_coupon_help.php');

 

catalog/admin/includes/filenames.php

 

Add this:

  define('FILENAME_COUPON_ADMIN', 'coupon_admin.php');

 define('FILENAME_COUPON_RESTRICT', 'coupon_restrict.php');

 define('FILENAME_GV_MAIL', 'gv_mail.php');

 define('FILENAME_GV_QUEUE', 'gv_queue.php');

 define('FILENAME_GV_SENT', 'gv_sent.php');

 define('FILENAME_LISTCATEGORIES', 'listcategories.php');  

 define('FILENAME_LISTPRODUCTS', 'listproducts.php');  

 define('FILENAME_VALIDCATEGORIES', 'validcategories.php');

 define('FILENAME_VALIDPRODUCTS', 'validproducts.php');

 

You should also add these lines in admin/includes/database_tables.php and catalog/includes/database_tables.php

  define('TABLE_COUPONS', 'coupons');

 define('TABLE_COUPONS_DESCRIPTION', 'coupons_description');

 define('TABLE_COUPON_EMAIL_TRACK', 'coupon_email_track');

 define('TABLE_COUPON_GV_CUSTOMER', 'coupon_gv_customer');

 define('TABLE_COUPON_GV_QUEUE', 'coupon_gv_queue');

 define('TABLE_COUPON_REDEEM_TRACK', 'coupon_redeem_track');

Share this post


Link to post
Share on other sites

Does anyone have the solution to the missing button_report.gif thing yet? Where can i find this file or where can i download it?

Share this post


Link to post
Share on other sites

I made my own. It doesn't quite match but it's good enough for the Admin side.

 

button_report.gif

 

I'll leave it here for a few more weeks.


Roadracing makes heroin addiction look like a vague wish for something salty.

Share this post


Link to post
Share on other sites

Hi,

 

I get this error when checking out on the checkout_payment.php page:

Fatal error: Call to undefined function: credit_selection() in /home/embellis/public_html/checkout_payment.php on line 324

 

Can someone please help?

Share this post


Link to post
Share on other sites

Now, I have the error posted earlier fixed and the redeem box is showing up.

 

Whenever I put the redeem code in that box it says an amount has been redeemed but it is not listing the coupon amount on the checkout_confirmation.php page.

 

How can I get this to work?

Share this post


Link to post
Share on other sites

hi,

 

this is a very silly question, cuz i went through most of the posts and i haven't seen anyone asking this questions...

 

how do i make the gift vouchers a product so the user purchase the gift voucher?

 

any help would be great

 

justin

Share this post


Link to post
Share on other sites

Hi,

 

Well, I finally got this working.

 

Only one thing that I hope someone has an answer.

 

Regardless of whether this code is set like this:

// Set the amount of a Gift Voucher that the new signup will receive, set to 0 for none

define('NEW_SIGNUP_GIFT_VOUCHER_AMOUNT', '0');

//

// Set the coupon ID that will be sent by email to a new signup, if no id is set then no email :)

define('NEW_SIGNUP_DISCOUNT_COUPON', '');

 

the new customer email that is sent has duplicate text. I have tried commenting out the code above plus the coupon code in includes/languages/english/create_account.php but am still getting duplicate text in the welcome email.

 

Depending on what is commented out I will get different text in the welcome email when testing this.

 

Is there any solution to the duplicates?

 

Thanks!

Share this post


Link to post
Share on other sites

A solution...

 

A friend sent this to me and just now tested it and it does solve the duplicate email problem if anyone else is having this.

 

line 276 in catalog/create_account.php:

change this:

$email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

 

to

 

if ((NEW_SIGNUP_GIFT_VOUCHER_AMOUNT > 0) ||

(NEW_SIGNUP_DISCOUNT_COUPON != '')) {

$email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

}

 

Hope this helps someone.

Share this post


Link to post
Share on other sites

help guys... i really need to figure this out!!!

 

i can give out gift voucher through the admin... but i am not able to create a product that allows users to buy gift voucher...

 

can anyone clarify this up for me? am i not allow to make gift voucher a product? or is there another way to get around it?

 

thanx in advance... any replies do!!!

 

justin

Share this post


Link to post
Share on other sites

Hello guys and gals,

 

I've just installed the this updated gift voucher system for my MS2.2 shopping cart.. I've run into a problem here and I can't figure it out. In the instruction, and once installed, it tells you to go into your order total menu and turn on the green light for the Discount coupon.. But here's the thing.. I don't have that Discount Coupon in my order total module.. So where is it? Can anyone help me out here? I hates being frustrated. lol Thank you :)

 

Christine


If it ain't broke, don't fix it! :)

Share this post


Link to post
Share on other sites

Okay guys.. seriously now..

 

In my order totals.. The discount coupon option does not exist.. Just the Gift Vouchers option.. In the instructions.. There is supposed to be a Discount Coupon option, and i believe it says to set it to 5 in the line up of things. But I need to know if this is how it's suppose to be in this newest release.. or am I missing something here? Someone please help.. It would be most appreciated.. :)

 

Christine


If it ain't broke, don't fix it! :)

Share this post


Link to post
Share on other sites

First off I wanted to thank Ian and everyone else who has worked on this modification.

 

I did have a question on it though, and so far I have not been able to locate any relevent information. I am looking to have a gift voucher or coupon automatically sent to my customers when they order a specific product. Basically One of the sites I work on is a software developer. One of the items we have in the cart is the Trial Version of the software, which we send out for free + shipping. I would like to be able to send our customers a coupon or voucher for the shipping amount (say $10.00 or whatever) that will be available if they decide to purchase the full product. Basically crediting their initial shipping cost to the final purchase. Does that all make sense? I would really like to be able to do this when the status of the order is changed (to Shipped for example), but if it is possible in some other way that would work too. Anyway, I hope someone has some ideas, thanks for your time.

 

Again thanks for the great contribution!


>Insert witty comment here<

Share this post


Link to post
Share on other sites
thanks for your help but I have no clue what u are talking about...no php knowledge....can you explain in a little more detail. i will appreciate that.

 

thanks again

 

You have to edit two files:

Catalog/includes/filenames.php

 

Add this:

  define('FILENAME_ADD_CHECKOUT_SUCCESS', 'add_checkout_success.php');

 define('FILENAME_GV_FAQ', 'gv_faq.php');

 define('FILENAME_GV_REDEEM.PHP', 'gv_redeem.php');

 define('FILENAME_GV_SEND', 'gv_send.php');

 define('FILENAME_POPUP_COUPON_HELP', 'popup_coupon_help.php');

 

catalog/admin/includes/filenames.php

 

Add this:

  define('FILENAME_COUPON_ADMIN', 'coupon_admin.php');

 define('FILENAME_COUPON_RESTRICT', 'coupon_restrict.php');

 define('FILENAME_GV_MAIL', 'gv_mail.php');

 define('FILENAME_GV_QUEUE', 'gv_queue.php');

 define('FILENAME_GV_SENT', 'gv_sent.php');

 define('FILENAME_LISTCATEGORIES', 'listcategories.php');  

 define('FILENAME_LISTPRODUCTS', 'listproducts.php');  

 define('FILENAME_VALIDCATEGORIES', 'validcategories.php');

 define('FILENAME_VALIDPRODUCTS', 'validproducts.php');

 

You should also add these lines in admin/includes/database_tables.php and catalog/includes/database_tables.php

  define('TABLE_COUPONS', 'coupons');

 define('TABLE_COUPONS_DESCRIPTION', 'coupons_description');

 define('TABLE_COUPON_EMAIL_TRACK', 'coupon_email_track');

 define('TABLE_COUPON_GV_CUSTOMER', 'coupon_gv_customer');

 define('TABLE_COUPON_GV_QUEUE', 'coupon_gv_queue');

 define('TABLE_COUPON_REDEEM_TRACK', 'coupon_redeem_track');

 

I am having the same problem as the above guy (BOX_HEADING_GV_ADMIN etc. are showing up in the actual page instead of their values) and applying this to the stated files seemed to break the installation even more... anyone know the correct way to do this?

Share this post


Link to post
Share on other sites

Hi!

 

One Problem with OS2.2 MS1 and Gift_Voucher 5.03:

 

At step checkout_confirmation.php all prices are without tax and i don't know why! :cry: :cry:

 

In the adminpanel DISCOUNT COUPONS:

 

Discount Coupon

 

Display Total

true

 

Sort Order

5

 

Include Shipping

false

 

Include Tax

false

 

Re-calculate Tax

None

 

Tax Class

--German normal--

 

And for Gift Voucher:

 

Gift Vouchers

 

Display Total

true

 

Sort Order

4

 

Queue Purchases

false

 

Include Shipping

false

 

Include Tax

false

 

Re-calculate Tax

None

 

Tax Class

--German normal--

 

Credit including Tax

false

 

Can anyone help???

 

The prices in the shopping cart and elsewhere in the shop include tax. This is funny! :wink:

 

PLEASE help me! :)

 

Thank you very much!

 

Best regards

Mark

Share this post


Link to post
Share on other sites

Hi All,

 

a friend of mine installed this one for me recently and I'm just trying to debug what he has done!

 

Can anyone tell me how you're supposed to get into gv_send.php as I think we have a link missing somewhere? Also, when I enter that page manually, I get this at the bottom:

 

Error

Unable to determine the page link!

 

Any ideas what that's about? I'm sure the answer will be in this thread already somewhere, but it's getting to long to search through now....

 

Also, the comments field in the checkout process seems to be broken. No matter what I type in there, I always get simply "2" as the sum total of the contents box. Maybe it's a sesson vars related problem.

 

Any advice on the above gratefully received as my brain is suffering from php debugging overload right now :roll:

 

Cheers,

 

 

 

Mark

Share this post


Link to post
Share on other sites

I have a problem with email send from gift v admin

 

Customer receives mail like this

 

To redeem this Gift Voucher, please click on the link below. Please also

write down the redemption codewhich isa30919 in case you have any problems

 

problem = codewhich isa30919

 

in which file can i edit this message to add spaces ?

Share this post


Link to post
Share on other sites

Thanks to everybody for this great contribution, I had no problem with the install, and everything looks good in the Admin area, but I get this error whan I try to log off since I changed "logoff.php" :

 

 

"Warning: main(includes/languages/espanol/logoff.php): failed to open stream: No such file or directory in /home/tecnofil/public_html/wham/logoff.php on line 17

 

Warning: main(includes/languages/espanol/logoff.php): failed to open stream: No such file or directory in /home/tecnofil/public_html/wham/logoff.php on line 17

 

Fatal error: main(): Failed opening required 'includes/languages/espanol/logoff.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tecnofil/public_html/wham/logoff.php on line 17"

 

 

Can somebody give me a hand here please?

 

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×