Forums / Built-in Shipping and Payment Modules / discount amount field exists?

discount amount field exists?

Locked

Views: 1,639

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
12 Jun 2006, 2:56 PM
#1
rafcamera avatar

rafcamera

New Zenner

Join Date:
Mar 2006
Location:
Belarus
Posts:
63
Plugin Contributions:
0

discount amount field exists?

Hi.
I need to pass discount amount to my payment processor (CCNow) from the corresponding payment module.
Is there is some variable in the ZenCart system that holds a discout amount?
Or is there any way to calculate it in the payment module?
Thanks.

21 Jul 2006, 1:43 PM
#2
stereozebra avatar

stereozebra

New Zenner

Join Date:
Jul 2006
Posts:
5
Plugin Contributions:
0

Re: discount amount field exists?

Raf, I have modified your CCNow module - now it works perfect!

  • order is created now only after Confirm is pressed.
  • on Confirm click CCNow payment form is displayed in new window - in the main window the Checkout success page is displayed.
  • I also added payment link to My Account page so that those customers who failed to pay right after they made an order.

of course discount is processed as it should.

my ICQ# 4574231

5 Nov 2008, 2:19 AM
#3
mrkrinkle avatar

mrkrinkle

New Zenner

Join Date:
Jun 2006
Posts:
27
Plugin Contributions:
0

Re: discount amount field exists?

I have a similar problem

I am developing a custom payment module and need to pass the Discount Coupon amount on to a third party payment provider.

I need to get this value on the 'Step 3 of 3 - Order Confirmation' page. It is the 'process_button' function in the payment module.

A can't see how to get this value.

It does not exist in $order->info or $_SESSION variables...

order_status => 1
currency => AUD
currency_value => 1.00000000
payment_method =>
payment_module_code =>
coupon_code => Family
shipping_method => Shipping Not Applicable (Not Applicable or P.O.A.)
shipping_module_code => storepickup_storepickup
shipping_cost => 0.00
subtotal => 1
tax => 0.0819090909091
total => 0.901
tax_groups => Array
comments => testing
ip_address => 125.168.11.196 - 125.168.11.196

Is there a way to get this value in the 'process_button()' function of the payment module?

6 Nov 2008, 7:17 AM
#4
mrkrinkle avatar

mrkrinkle

New Zenner

Join Date:
Jun 2006
Posts:
27
Plugin Contributions:
0

Re: discount amount field exists?

Anybody?? :dontgetit

10 Nov 2008, 3:53 AM
#5
gothicaexotica avatar

gothicaexotica

New Zenner

Join Date:
Dec 2007
Location:
United Kingdom
Posts:
4
Plugin Contributions:
0

Re: discount amount field exists?

we have constant sales and need the ccnow workin. please please someone help!!! :(:(:( where do we get the activation key @ ccnow??? :(:(:(