Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    4
    Plugin Contributions
    0

    red flag Step 3 Confirmation page loading the checkout_confirmation section twice

    On my site (http://jamesbaroneracing.com/shop) when you get to Step 3 of 3 in the checkout process after you select shipping (Step 1) and payment (Step 2), it pulls from the tpl_ajax_checkout_confirmation_default.php file in the 'includes/templates/theme/templates' folder. This folder contains all the parts of the tpl files that are shown during the check out process. When I look at the code on the final page (the one that asks for final confirmation), I can match the duplicated div with the one that's created in the file listed above. Looking at the page, I can see the following:

    <div class="centerColumn" id="checkoutConfirmDefault">...</div>
    <div class="centerColumn" id="checkoutConfirmDefault">...</div>

    All of the information on the final confirmation is duplicated as a result which means that tpl page is somehow being loaded twice. The header and all the page content including shipping, payment, etc is there twice. The files are still unedited core files from the 1.5.4 zen cart upgrade. I dont know which page actually calls the templates/tpl files to build that last page in the process and I cant figure out how to only get it to make a single call to that page. If I make any code changes to that file, I can see it reflected on the page, but its reflected in both duplicate versions, which tells me the file is not the one doing the duplicating.

    The url itself of step 3 is: https://www.jamesbaroneracing.com/sh...eckout_payment

    The page is still labeled as checkout_payment, but if you look at the template files the tpl_checkout_payment_default.php file calls the confirmation page with the following code:

    <?php echo zen_draw_form('checkout_payment', zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', ($flagOnSubmit ? 'onsubmit="return check_form();"' : '')); ?>

    So that explains why the url shows the main page = checkout_payment, but not why its still showing the checkout_confirmation loading twice and duplicating that information. I cant find any place where it would do that. After you click through on Step 2 from the link assigned above, it does something to load that last page, but I dont know where this is and how it got set to call twice. This started happened right after the 1.5.4 upgrade I did.

    After testing further, the Step 3 confirmation page looks fine when selecting paypal, but when you enter your cc info on the payment page, which uses authorize.net AIM, then the confirmation page is duplicated everytime.

    Does anyone have any ideas on where to look to see if its potentially calling the page more than once? Or if there is something else you can think of that's going on? I have been combing these files and just cannot figure it out.
    Attached Images Attached Images  

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Which template do you have installed and does this happen when you switch back to classic?
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    It appears as though you've got some javascript errors in your addons, and thus the ajax is failing when it tries to securely redraw the page before submitting credit card data to the payment gateway.
    .

    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
    Oct 2015
    Posts
    16
    Plugin Contributions
    0

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Did you ever find a solution to this issue? I'm having the exact same thing happening to me with a Template Monster template and I'm totally at a loss, at this point.

  5. #5
    Join Date
    Oct 2015
    Location
    Connecticut
    Posts
    1
    Plugin Contributions
    0

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    I'm having the same problem after upgrade to v1.5.4 and a responsive template install. The problem doesn't occur in the old template, doesn't occur when COWOA is used, and doesn't occur when PayPal is selected as the payment type. I sure would be interested to hear if anyone has any insights about how to fix this.

  6. #6
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Yes, these fancy templates interfere with the base Zen code. Fixing the problem requires isolating the 'bells and whistles' from the template then either re-coding the page so everyone plays nice or turning off the template java so Zen can do what Zen wants to do.

    Usually the interfering java is not needed during checkout so turning it off while customers complete the sale has no effect on the look/feel or function of the site.

    Unfortunately in other cases I've spent a lot of time rebuilding the page to get everything working together.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Quote Originally Posted by twitchtoo View Post
    Yes, these fancy templates interfere with the base Zen code. Fixing the problem requires isolating the 'bells and whistles' from the template then either re-coding the page so everyone plays nice or turning off the template java so Zen can do what Zen wants to do.

    Usually the interfering java is not needed during checkout so turning it off while customers complete the sale has no effect on the look/feel or function of the site.

    Unfortunately in other cases I've spent a lot of time rebuilding the page to get everything working together.
    i think you are confusing java with javascript which are very different.

    a well coded template will accomplish the same thing whether javascript is enabled or not.

    making use of javascript and jquery enhances the user experience and in theory, makes it easier and more likely for a user to buy.

    that said, i am in agreement that getting "fancy" templates to work can be a bit of a challenge.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Aug 2015
    Location
    CA
    Posts
    1
    Plugin Contributions
    0

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Did you ever find a solution to this issue?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Step 3 Confirmation page loading the checkout_confirmation section twice

    Quote Originally Posted by kavalanmall View Post
    Did you ever find a solution to this issue?
    The solution is simple:
    a) rework your custom template to cooperate with the javascript that intercepts the display of the checkout-confirmation page via ajax
    or
    b) disable Secure PCI Compliant Checkout via Ajax functionality using the switch in your Admin->Configuration->My Store page. NOTE: Your customers' credit card numbers may be exposed to unnecessary risks if you do this
    or
    c) switch to a payment module that doesn't collect credit card numbers and redisplay them again during checkout

    Since you haven't posted which payment modules you're using, nor which template you've installed, nor any other details of what plugins/mods might be interfering with your checkout, it's hard to offer any other actionable guidance. Every case is unique.
    .

    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.

 

 

Similar Threads

  1. v151 Javascripts loading twice on the page
    By Dashizna in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 17 Dec 2015, 09:50 PM
  2. v151 Troubleshooting - checkout_confirmation - Step 3 of 3
    By amandarm in forum General Questions
    Replies: 7
    Last Post: 13 Mar 2015, 04:40 PM
  3. Replies: 6
    Last Post: 24 Jan 2011, 04:29 AM
  4. Step 3 Order confirmation page over the edge
    By boy1da in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 10 Nov 2010, 08:26 PM

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