Zen Cart Logo
Forums / General Questions / Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

Locked

Views: 1,476

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
11 Sep 2010, 5:48 AM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

There is a line in the payment modules (for instance authorize.net)

zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));

Which file is being called here
I dont see a file as checkout_payment.php except in the language files
Is it the header_php.php inside the includes\modules\pages\checkout_payment\ ?
I want to modify the code for payment module as I am not getting the return url to get me the order confirmation page/order id generated
Thanks

11 Sep 2010, 8:14 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

More strictly it's index.php as that's the front controller that manages (almost) all store side activity.

However, the place where it starts to get real specific about the processing based on the parameter passed as the main_page would be the file that you have mentioned, though there may also have been some more general cart related work done during the init processing.

11 Sep 2010, 9:10 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

More importantly, you should not need to edit anything outside of the payment module itself.

11 Sep 2010, 12:25 PM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

DrByte:

More importantly, you should not need to edit anything outside of the payment module itself.
Yes, I am not editing those files
Whats happening is that I am getting redirected to the checkout payment page(Step 2 of 3 - Payment Information) and shopping cart is not getting empty

I am getting ReturnCode=0 from the payment page

	if ($this->authorize['ReturnCode']=='0') {

	$this->transaction_id = $this->authorize['TransactionID'];
	zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
	return;

	}

Can you please help?

11 Sep 2010, 12:34 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

Sounds like you need to figure out why you're getting a 0 back, and whether that's good or not.

11 Sep 2010, 12:55 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Which file is called in zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SS

In checkout payment header_php.php I have put this code after the first line

$zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_PAYMENT');

echo "I am here"; exit();
But this is not getting executed
Also, can you tell me where is that shopping payment page coming from so that I can figure out where the problem is

Thanks