Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Credit Class/Gift Vouchers/Discount Coupons 5.10


4756 replies to this topic

#21 Stephan Gebbers

  • Community Member
  • 64 posts
  • Real Name:Stephan Gebbers
  • Location:Potsdam/Germany

Posted 25 July 2003, 07:38

Illicious & Strider,

Thx for solving the problem. It's working as it should for me now :)

Later,
Stephan

#22 msheno01

  • Community Member
  • 166 posts
  • Real Name:moneer

Posted 25 July 2003, 18:14

I have installed the contribution and am getting this following error. Please let me kow what I am to do...

Fatal error: Call to undefined function: count_contents_virtual() in /.../public_html/checkout_payment.php on line 73



Thank You

#23 msheno01

  • Community Member
  • 166 posts
  • Real Name:moneer

Posted 25 July 2003, 18:35

I am also getting this error whenever I go into the account history page.


Parse error: parse error in /home/mesztekc/public_html/account_history.php on line 70


Thank You

#24 Illicious

  • Community Member
  • 455 posts
  • Real Name:Illicious
  • Location:Shaolin of NYC

Posted 25 July 2003, 19:09

I would first backup my original files, then replace thoes 2 files with the ones that came with the contribution to see if theres still any errors.

If no error then there might be an install error in thoes 2 original files.

If no difference at all then you know its not in them 2 files.

#25 msheno01

  • Community Member
  • 166 posts
  • Real Name:moneer

Posted 25 July 2003, 20:33

I guess something was wrong with the files.

I replaced them and it worked fine
Thanks

#26 msheno01

  • Community Member
  • 166 posts
  • Real Name:moneer

Posted 25 July 2003, 21:15

Something else is wrong.

I have installed and activated the discount and voucher module. However I cant see where I would enter the Coupon number on the catalog side. I have installed the cont. with the default sort number so not to mess with it and it still won't work

Thank you

#27 Illicious

  • Community Member
  • 455 posts
  • Real Name:Illicious
  • Location:Shaolin of NYC

Posted 25 July 2003, 22:21

You dont see in the checkout "Payment Information" page (checkout_payment.php) the "Credits Available" box?

Do the backup your files thing and replace the "checkout_payment.php" with the one in the contribution.

See if that has any difference.

#28 chadedge

  • Community Member
  • 6 posts
  • Real Name:chad edge

Posted 26 July 2003, 07:53

I've got the same error. Well, lack of error. My problems appear somewhere here:

1) When a customer purchases a Gift Voucher (in my case, GIFT100), the gift voucher appears as an item in their cart, just like any other product, and is purchased as such. All looks good so far.

2) An admin must release the GIFT100 from the admin area (discount coupons / gift vouchers) Redeem -> Confirm. All looks good so far.

3) The Gift Voucher (in this case, $100) appears in the customers shopping cart box with the following text: Voucher Balance $100.00 Send Gift Voucher. All looks good so far.

4) Here's where we enter into the darkness: When the customer with a gift voucher balance tries to checkout with items in shopping cart, there is no method to redeem (term?) the voucher amount. Problem.

As the other user has asked, where is the option (I'd imagine it SHOULD be in the payment configuration area, along w/ CC, Authorize.net, On Delivery, etc) to "check-box" the voucher redemption?

My installation is of the GV 5.04 (2003-7-24) and osCommerce 2.2 Milestone 2 (2003-7-12).

#29 chadedge

  • Community Member
  • 6 posts
  • Real Name:chad edge

Posted 26 July 2003, 08:01

Nevermind my previous post, the 740 sort order worked (a little; about to update the db settings too).

Here's the latest error:

When someone is using the GV, they still are required to enter a CC. My issue is the CC shouldn't be required if the GV is > than the total order.

Also, if you enter a CC (have tested on production and test w/ Authorize.net) the CC will not pass. Perhaps it's because we're sending $0.00?

When not using the GV, the CC works just ducky.

#30 Strider

  • Community Member
  • 413 posts
  • Real Name:Strider
  • Location:New York

Posted 26 July 2003, 09:07

I didn't have that problem .. then again I am just working on a test server and haven't actually put it on a live server.
I won't have a chance to look at that til sunday but will be happy to then.

thanks for the msg
glad you figured out the other problem
(my knowledge is so small you would think that an ant was a genius in comparison)

#31 chadedge

  • Community Member
  • 6 posts
  • Real Name:chad edge

Posted 26 July 2003, 10:13

Here's what I've decided:

Two problems:
1) Passing $0.00 to Authorize.net is causing it to return an error.
2) Users are required to enter their CC# even when order total < gift voucher amount.

Solutions:
1) No solution directly, unless #2 works out
2) The code below (not really code, just my mind at work):

if($gift_voucher_amount != 0){

     // show redemption textfield / usage checkbox

     if($gift_voucher_amount >= $order_total){

          // don't show CC# input box

     } else {

          // show CC# input box

     }

} else {

     // show redemption textfield

     // show CC# input form

}

Ah Crap! Just thought of something else:
If the user doesn't want to use the gift voucher for this purchase and would rather use their CC, the CC# field still needs to display.

That brings the functions to a new area: Now we need to determine if the gift voucher balance is > or < the order total in order to determine if a CC is still required.
if the gift voucher total is < than the order total, then the CC is required, and the order cannot continue until it's entered. If the gift voucher total is > the order total, then the user may continue without a CC# (some wrapper text should accompany the CC# field if the user chooses to apply the voucher to their purchase).

All this is going to be dependent on whether or not the user checks the checkbox for applying the gift voucher to the purchase.

Any idea where the code is that applies to the checkout_payment.php page? (I'm talking the front-end view. I know checkout_payment.php isn't really where the code resides, it's just the view I'm familiar with.

*sigh*

#32 Strider

  • Community Member
  • 413 posts
  • Real Name:Strider
  • Location:New York

Posted 26 July 2003, 20:20

I have the same problem. It is demanding a payment method. There is suppose to be a check for this in the code and I will look at it tomorrow morning.
You don't have to choose cc if you have cod or check/money order included, you can choose one of those options. A quick dirty fix would be to add a pay all with gift voucher type of payment method if the amount of voucher is greater than amount of order total. But I am sure you don't want a quick dirty fix.
Another addendum might be how much of the gift voucher do you want to use.
Anyway as I was saying I think there is a place in the code to check for this and I will look at it tomorrow morning.
(my knowledge is so small you would think that an ant was a genius in comparison)

#33 prolifix

  • Community Member
  • 18 posts
  • Real Name:tony

Posted 26 July 2003, 23:07

I'm having a few problems on my new MS2 install. My first problem is when someone redeems a gift voucher from an email, it shows up in the shopping cart but there is no checkbox button during the checkout process, I checked to make sure the module is installed and left the sort order at 740.

My Second problem is when entering a coupon code the amount is deducted properly and confirmation email shows proper deduction, but my payment gateway still processes full price. I'm using a custom payment module I made for my gateway, but it's programmed to send the total from the final total field, which is displayed correctly. The second problem could still be a bug in my module, any help on the first problem would be appreciated. Thanks

#34 Strider

  • Community Member
  • 413 posts
  • Real Name:Strider
  • Location:New York

Posted 27 July 2003, 05:17

I don't seem to understand your last post prolifix. Your first problem states

Quote

I'm having a few problems on my new MS2 install. My first problem is when someone redeems a gift voucher from an email, it shows up in the shopping cart but there is no checkbox button during the checkout process

where your second problem states

Quote

My Second problem is when entering a coupon code the amount is deducted properly and confirmation email shows proper deduction, but my payment gateway still processes full price.

Now the problem I am having is how can you have problem 2 if your having problem 1. Maybe I am reading them wrong, but I am not having the first problem and the second problem I haven't tested in depth yet.
(my knowledge is so small you would think that an ant was a genius in comparison)

#35 Illicious

  • Community Member
  • 455 posts
  • Real Name:Illicious
  • Location:Shaolin of NYC

Posted 27 July 2003, 05:49

I think he means that theres no little box to click for the gift voucher to be included.

Same problem i was having.

#36 prolifix

  • Community Member
  • 18 posts
  • Real Name:tony

Posted 27 July 2003, 06:36

right, sorry for the confusion. For some strange reason the tick box to redeem vouchers now appears..I have no idea why it just started working, but I'll leave it alone :lol: My second problem still exists, also if I leave the voucher sort order at 740 it will show on the checkout confirmation page after the total and not deduct the price. If I change the sort order it stops working. Like I said before the coupon module works fine and gets deducted from the order total, but my payment gateway will process the original price instead.

#37 Benax

  • Community Member
  • 5 posts
  • Real Name:Axel Benkert
  • Location:Köln

Posted 27 July 2003, 09:41

I had the same problem with the tick box. I tried several sort orders and found out, when the sort order of Gift Voucer is after the sort order of Discount Coupons, it works fine. When the Gift Voucher's sort order is before the Discount Coupon's, the tick box won't appear.

But I have another problem. I have a voucher balance of 25 in the shoppingcart box. I have a discount coupon of 50% set for a single product. In the check out I ticked the box to use the Gift vouchers amount and filled in the redeemption code for the discount coupon.
The calculation in checkout-confirmation is correct, but the amount for the dicount coupon is showed without tax. so it looks like a false calculation.
[img]http://www.online-power.de/images/checkout_confirmation.jpg[/img]
How can I apply the tax to the shown discount coupon amount?
Please excuse my bad english :oops:

Benax [Axel Benkert]

#38 kagg

  • Community Member
  • 487 posts
  • Real Name:Kavita
  • Gender:Female
  • Location:India

Posted 27 July 2003, 11:44

Hello,

I am also getting the following errors for GV installed on MS2:

- When I buy something in the cart, the amount of GV is correctly deducted on the confirmation page, but actually it does not get deducted from the total amount of GV. The shopping cart box still shows the same amount of GV. However the amount of GV gets updated if I send another gift voucher from the GV amount

- I have created a gift voucher GIFT100 (written in product model) and then make a purchase, but nothing happened. It simply gets stored in the order (visible in admin -> customers -> order), but I can not see it as gift queue in admin portion, and also do not get email for the purchased gift voucher at the customer email address.

If anyone can help?

Thanks
kagg

#39 Strider

  • Community Member
  • 413 posts
  • Real Name:Strider
  • Location:New York

Posted 27 July 2003, 15:32

axel, you need to look at your ot settings. they are in the same place that your sort order is I believe. Check to make sure how you are handling tax and shipping.
You have settings for coupons and vouchers. I tried it in a variety of different ways and it works for me.

kagg, the gv does not get subtracted till after you process.
(my knowledge is so small you would think that an ant was a genius in comparison)

#40 kagg

  • Community Member
  • 487 posts
  • Real Name:Kavita
  • Gender:Female
  • Location:India

Posted 27 July 2003, 16:40

I have completed the transaction and even processed it from the admin panel, but still my account shows the same amount of GV.

Also Can you please look at my 2nd question regarding purchase of GV.

Thanks
kagg