Zen Cart Logo
Forums / General Questions / Payment Method "Gift Certificate/Coupon"

Payment Method "Gift Certificate/Coupon"

Locked

Views: 2,384

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Jan 2010, 11:48 AM
#1
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Payment Method "Gift Certificate/Coupon"

Hi,

Its funny, dunno what went wrong, but after order completion in the mails (admin and customer both), in customer's My Account - History - Order Information and admin panels order details, I mean everywhere the Payment Method is Gift Certificate/Coupon.

Whether it is Cash on Delivery or EBS (Payment Gateway), it remains same "Gift Certificate/Coupon".

I checked the orders Table, it is "Gift Certificate/Coupon" in the payment_method column and payment_module_code column's value is "GV/DC".

So it is inserting wrong, has anybody seen such a funny problem?

Please help in fixing the same.

Regards

11 Jan 2010, 9:03 AM
#2
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Re: Payment Method "Gift Certificate/Coupon"

The problem is with the $_SESSION['payment'].

It does exist when I come from "/index.php?main_page=checkout_payment" after selecting one of the payment methods.

I confirmed it by printing session array ```php
print_r($_SESSION);


includes\modules\pages\checkout_confirmation\header_php.php 

But It is not available when the confirmation page (index.php?main_page=checkout_confirmation) is submitted

Unfortunately, I've not been able to trace where it is getting set to = '' or NULL.

Any Idea?

Regards
11 Jan 2010, 10:20 AM
#3
rajoo_sharma avatar

rajoo_sharma

Zen Follower

Join Date:
Aug 2009
Posts:
137
Plugin Contributions:
0

Re: Payment Method "Gift Certificate/Coupon"

Fixed the problem, I only invited the bull, Poor or Idiot Me whatever.

For my template I re-wrote:
tpl_ezpages_bar_footer.php in which I declared a variable $class and set it to ''. Ha! I made such a mistake.

renaming the variable to $html_element_class obviously fixed the problem.

Moral of the story:
Never declare a variable carelessly, one should have a naming convention for the same.
Ideally prefix your template name e.g. mytemplate_class

Regards