Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default 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
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

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

    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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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

    Code:
    	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?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

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

    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
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. how do I change which css is called on a page?
    By ScottDB in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 1 Sep 2011, 08:55 AM
  2. after add to cart is pressed, which file is being called?
    By bangsters in forum General Questions
    Replies: 4
    Last Post: 15 Dec 2009, 04:47 AM
  3. what file are the images called from for center
    By stevenlee in forum General Questions
    Replies: 2
    Last Post: 15 May 2009, 09:17 AM
  4. knowing which php file calls which?
    By joemind in forum General Questions
    Replies: 0
    Last Post: 15 Oct 2008, 08:28 PM
  5. Session not available when file is called by ajax
    By yellow1912 in forum Contribution-Writing Guidelines
    Replies: 1
    Last Post: 19 Aug 2008, 04:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR