Follow the instructions in the documentation. You've skipped a step. But don't worry, it's very common and I often forget to do it as well!
Follow the instructions in the documentation. You've skipped a step. But don't worry, it's very common and I often forget to do it as well!
I solved my problem by comparing the original file from the default template directory with my current file using winmerge then inserted the missing code.
Thx Sweet
Just a couple of little code suggestions for the next release. Rather than editting the tpl_main_page file, could you add the following code to the includes/modules/pages/checkout_confimation/header_php.php file, right at the end, after the breadcrumb definitions
This will automatically add the javascript to the body tag on load.Code:if (FEC_ONE_PAGE == 'true' && FEC_CHECKOUT_CONFIRMATION_TEXT_SWITCH == 'true') { $za_onload_array[] = "document.checkout_confirmation.submit();"; }
Also, it is worth noting here, that if a customer has javascript disabled, which is less common, but still possible with today's users, this page will never submit. To get round this, it may be worth also changing the tpl_checkout_confirmation_default file as follows:
CHANGE TOCode:<?php if (FEC_ONE_PAGE == 'true' && FEC_CHECKOUT_CONFIRMATION_TEXT_SWITCH == 'true') { echo '<div style="text-align:center; color:#ff0000; font-weight:bold; padding-top:30px;">' . FEC_CHECKOUT_CONFIRMATION_TEXT . '</div>'; ?> <div class="centerColumn" id="checkoutConfirmDefault"> <?php } else { ?> <div class="centerColumn" id="checkoutConfirmDefault"> <?php } ?>
This will hide the page if hide page is selected in the admin settings, AND javascript is enabled. If Javascript is disabled, then the standard page is still displayed.Code:<?php if (FEC_ONE_PAGE == 'true' && FEC_CHECKOUT_CONFIRMATION_TEXT_SWITCH == 'true') { ?> <script type="text/javascript"> document.write("<style>#checkoutConfirmDefault { visibility:hidden; }</style><div style=\"text-align:center; color:#ff0000; font-weight:bold; padding-top:30px;\"><?php echo FEC_CHECKOUT_CONFIRMATION_TEXT; ?></div>"); </script> <?php } ?> <div class="centerColumn" id="checkoutConfirmDefault">
These have been tested in FireFox, IE 6 & 7 but should be tested in all browsers before adding the code to this module.
Hope these help.
Absolute
Absolute, how about the page redirects that use javascript when a shipping rate is changed?
These are a little harder to code for, as here you actually need the page to submit, before you can show the price again. One possibilty is to have a hidden variable in form, which is the current shipping selection. When the form is submitted, if the hidden and visible variables are different, then you know the shipping method has been changed, and therefore you need to show the updated cart price first.
One thing to remember here though is that if they don't have java, they will still see the cart confirmation on the final page, so if they update the shipping, they will see teh updated prices on the next page.
Don't get me wrong, I think this module is a great asset to any store!
Absolute
Hey Numinx,
I've read this whole thread and it sounds like a great addition to ZC. Since I haven't installed any previous versions, do I just use the EP with the install.sql or some other way?
Again, great job!![]()
Hi Numinix,
I was hoping you could help with a couple of problems which are occurring with Paypal Express. I'm not 100% that they are related to this mod, but it appears that they are.
I'm in the UK so using the UK version of PP Express.
First problem is that when you complete a Paypal Express Payment you end up back at the checkout page but with a red warning at the top which says "please tick the box to agree to the terms and conditions" (or something to those words). It's as if it has tried to bypass this page but zen cart hasn't let is as th terms have not been agreed to.
Second problem is on the same page - most of my customers are in the UK, and in my tests I have made sure that United Kingdom is in the address line in Paypal when I've been paying, but the country is being turned to United States.
Any ideas?
FEC Settings are as follows:
Code:Fast and Easy Checkout true One Page Checkout true Checkout Confirmation Alternate Text Your order is being processed, please wait... Display Checkout in Split Column true Activate Drop Down List false Gift Wrapping Module Switch false Activate Gift Message Field false Drop Down List Options Option 1,Option 2,Option 3,Option 4,Option 5 Activate Checkbox Field false Easy Sign-Up and Login true Display Order Total false Display Confidence Box true COWOA Position top Confirm Email true Shipping Address false Copy Billing false Master Password false Checkout Without Account false Checkout Without Account Only false Hide Email Options For No Account true Automatic LogOff for No Account true
Hi Numinex, install goes great until I copy and paste the entire install.sql in and hit send. I get the following error:
1062 Duplicate entry 'Permanent Account Holders Only' for key 'query_name'
in:
[INSERT INTO zen_query_builder ( query_id , query_category , query_name , query_description , query_string ) VALUES ( '', 'email,newsletters', 'Permanent Account Holders Only', 'Send email only to permanent account holders ', 'select customers_email_address, customers_firstname, customers_lastname from TABLE_CUSTOMERS where COWOA_account != 1 order by customers_lastname, customers_firstname, customers_email_address');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Any idea on what that is? Has anyone else experienced this problem?
Thanks in advance for your help!
Hello all,
does anyone know the anwser to my question above ^.
Andy.