Jump to content
Strider

Credit Class/Gift Vouchers/Discount Coupons 5.10

Recommended Posts

Priest,

 

I am using OSC2.2 m2

 

and if my gift voucher is larger than the total of purchase I go right to confirm

it doesnt try to direct to a payment prosessor.

 

I think your problem is in the setup of your 2authorize setup, it is calling to this payment module automaticly.

Try disabling your payment gateway and try a test order

 

see if that is it.

 

Merlin

Share this post


Link to post
Share on other sites

Just a note for those people who get directed to checkout_shipping when only purchasing vouchers:

 

Make sure you have enabled downloads in your admin->confiuration section. Otherwise the checkout process assumes everthing is a physical good and hence the shipping page.

 

Regards,

Brian.

Share this post


Link to post
Share on other sites

an addendum to baj3171's note ... also set your weight to 0


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

hi:

 

first of all I'd like to thank for such a great mod!! Works "almost" fine. I've only one problem.

 

When a customer purchase with a gift cert., the item is purchased OK if the voucher is over the product prize, but if not, it doesn't deduct the amount of the remaining voucher balance.

 

Here's an example:

 

Subtotal: $16.50

Total: $16.50

Gift Vouchers: $8.50

 

What am I doing wrong? My Specs are:

 

GV v5.6

PHP 4.2.2

 

Thanks in advance!!

Share this post


Link to post
Share on other sites

sort order it looks like


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

Thanks for your prompt reply! Here is my sort order:

 

Discount Coupons 5

Gift Vouchers 740

Low Order Fee

Shipping 2

Sub-Total 1

Tax 3

Total 6

Share this post


Link to post
Share on other sites

try setting your total to 900


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites
Priest,

 

I am using OSC2.2 m2

 

and if my gift voucher is larger than the total of purchase I go right to confirm

it doesnt try to direct to a payment prosessor.

 

I think your problem is in the setup of your 2authorize setup, it is calling to this payment module automaticly.

Try disabling your payment gateway and try a test order

 

see if that is it.

 

Merlin

Well, I have disabled my payment Gateway (2CheckOut) and it works as expected, going straight to checkout completion, but then again once I disable 2CheckOut, I don't have any payment options setup.

 

Secondly, I have added PayPal as a payment option. Chose that as my payment method, proceeded as usual and with a balance due of $0.00, it still directly me to PayPal.

 

This seems to be a problem no matter what payment modules I use. I really think this is an error in one of the checkout php files that is causing it to still direct to payment processor instead of redirect to complete order when the voucher covers the entire amount and amount owed is $0.00.

 

Any ideas?

 

Thanks,

Priest

Share this post


Link to post
Share on other sites

priest y ou might relook at how you modified code their should be a line similar to

// load the selected payment module

require(DIR_WS_CLASSES . 'payment.php');

if ($credit_covers) $payment=''; //ICW added for CREDIT CLASS

$payment_modules = new payment($payment);

//ICW ADDED FOR CREDIT CLASS SYSTEM

require(DIR_WS_CLASSES . 'order_total.php');

 

in checkout_confirmation.php


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

Jason, I currently have the same problem as Priest...I do have those lines in my checkout_confimation.php

Share this post


Link to post
Share on other sites

I just disabled all payment moduels just to see if I could check out with only a gift voucher....didn't work. I recieved a run time error stating an object is requiered.

 

No matter which paypal module I use (I have IPN as well as the default one) if the total due is 0....I still get forwarded to paypal for payment.

 

To install the gift voucher contribution, I did a overwrite. If there is sombody who uses paypal with this contribution and is not experiencing this problem, could you please post all your settings you have in admin.

Share this post


Link to post
Share on other sites

One more thig Jason : )....in the checkou confirmation, the if line that has

 

if ($credit_covers) $payment='';

 

When I am going through the payment process, this string ($credit_coves) has no value even though I have a gift voucher and checked the box for use.

Share this post


Link to post
Share on other sites

I hope someone actually reads this. I had a feeling this modification would be too complicated for me, and i was right. My store is http://synthea.com/store/default.php and its totally messed up after installing this.

 

I get this in the Shopping Cart

 

Shopping Cart  
1146 - Table 'synthea_osc1.TABLE_COUPON_GV_CUSTOMER' doesn't exist

select amount from TABLE_COUPON_GV_CUSTOMER where customer_id = '3'

[TEP STOP]

 

In my admin area, I have this new -

 

BOX_HEADING_GV_ADMIN  
BOX_COUPON_ADMIN
BOX_GV_ADMIN_QUEUE
BOX_GV_ADMIN_MAIL
BOX_GV_ADMIN_SENT

 

There is NOTHING anywhere that says anything about the vouchers or anything.

 

I saved a backup before I tried this, and it will not restore it! Can anyone help?


Amy

Share this post


Link to post
Share on other sites

And when I log off I get this

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

Fatal error: main(): Failed opening required 'includes/languages/english/logoff.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/synthea/public_html/store/logoff.php on line 17

 

-Synthea


Amy

Share this post


Link to post
Share on other sites

Jason, I just installed your contribution on a clean MS2.2, no changes, no other mods. I did a overwrite of the files you included in 506 and I get the same results....... voucher covers all charges, click submit and i am taken to paypal.

 

The only thing that is not clean is the database....so i assume that some admin setting i have is causing the problem. Do you have any ideas?

 

ken

Share this post


Link to post
Share on other sites

what is your sort order .. it should be gift voucher is the highest .. such as

discount coupons 8

total 10

gift voucher 740


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

synthia try adding all the files .. the error your getting shows that you don't have your database table names added to your database files name file or your includes added to your application top file .. if you need to know how to add everything read the install.htm file .. it is failrly good at telling you what you need to add and where .. step by step...


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

oh yes .. ken I run paypalipn and I have no troubles

 

I do run into troubles if I don't maintain the proper sort orders etc ...


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

I am still having the same problem. I had the Order Total as the highest, so I changed it and made Gift Vouchers the highest, but am still encountering the same problem.

 

No matter what, as long as the GV covers the total amount, it still proceeds to the payment processor when it should proceed to complete the order.

 

Current Sort Order

Discount Coupons 3

Gift Vouchers 740

Shipping 4

Sub-Total 1

Tax 2

Total 6

 

~Priest~

Edited by Priest

Share this post


Link to post
Share on other sites

well I just spent the last 4 hours playing with it.. and I can make it go to the payment processor if the gv sort is less than the total and I can tell you how it does it and why .. but with the gv set to the highest sort it doesn't

take the info from the checkout_confirmation page and show me that please...


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

Here is the checkout confirmation:

 

.02

 

Sub-Total .02

Gift Vouvhes .02

total 0.00

 

 

in admin I have

 

1 subtotal

2 shipping

3 tax

4 discount coupon

5 gift voucher

6 total

 

i have set to include shipping and tax to true and false with both the gv and dc

Share this post


Link to post
Share on other sites

Jason, sorry....i didnt see your previous post. I set it to 740 and now it works properly. Thanks : )

Share this post


Link to post
Share on other sites

set your gv to 740 include shipping and tax

did you click on a payment type? it shouldn't matter either way.

 

if you still have problems .. remove the discount coupons and reinstall it.. by the admin buttons. I take it in the answers you wrote you don't have shipping. or do you have free shipping set to 0.01 or something


(my knowledge is so small you would think that an ant was a genius in comparison)

Share this post


Link to post
Share on other sites

sorry I didn't see your previous post .. your welcome


(my knowledge is so small you would think that an ant was a genius in comparison)

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

×