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.


Reply With Quote

