Thanks for your reply and your help, yes it is almost as if it has been jumbled up. I am going to go over the files with a fine tooth comb now and find any remnants lol. Great mod by the way.
Printable View
Thanks for your reply and your help, yes it is almost as if it has been jumbled up. I am going to go over the files with a fine tooth comb now and find any remnants lol. Great mod by the way.
Hi Countrycharm, have installed COWOA, it didn't give any error while installation. But during checkout its giving me http 500 error.
Check link https://www.heightgrowth.com/ssl-che...ckout_shipping
while the normal zencart flow is working properly.Any quick help much appreciated.
Suggest using a file comparison tool (Winmerge or Beyond Compare) and comparing your store to the FEC fileset.. This way you can identify the FEC files and changes.. Afterwards you are gonna wanna to check to make sure that the COWOA mods are still in place since there is some overlap in the changes made to the same files by both mods..
I have COWOA installed and working on my site (now that I got the correct version).
https://westpac-ptg.org/zencart
It is working the way I want except the conference director finds it too confusing to include the option of creating ZC account. She is probably right because for this use (conference registration) it is highly unlikely that any users will want to log back in for any reason. I've already moved the code for COWOA to the top of the page and made the fieldset blue to make it more prominent, but she wants all but that and paypal checkout to be gone.
In looking at the code in tpl_login_default page, it is difficult for me to know what code I can safely remove to take out both the zc login and sign up. There is this type comment:before the section where I would have to remove code. Makes me nervous.Quote:
<!--BOF PPEC split login- DO NOT REMOVE-->
Since the site is now live, I'd rather not experiment too much. Is the code for ZC login and ZC signup required in order for COWOA to work? Or do you think I can safely remove it?
Make a backup file first then Open up the includes/templates/YOUR_TEMPLATE/templates/tpl_login_default and delete the code. Copy and insert the code below, upload it to your server. No more zc login or sign ups on that page.
PHP Code:
<?php
/**
* Page Template
*
* @package templateSystem
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_login_default.php 18695 2011-05-04 05:24:19Z drbyte $
* @version $Id: Integrated COWOA v2.3 - 2007 - 2012
*/
?>
<div class="centerColumn" id="loginDefault">
<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
<?php
if ($_SESSION['cart']->count_contents() > 0) { ?>
<!-- BOF COWOA -->
<?php if (COWOA_STATUS == 'true') { ?>
<fieldset>
<legend>Checkout Without Account</legend>
<?php echo TEXT_RATHER_COWOA; ?>
<div class="buttonRow forward">
<?php echo "<a href=\"" . zen_href_link(FILENAME_NO_ACCOUNT, '', 'SSL') . "\">"; ?>
<?php echo zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></a></div>
<br class="clearBoth" />
</fieldset>
<?php } ?>
<!-- BOF COWOA -->
<?php } ?>
<?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
<!--BOF PPEC split login- DO NOT REMOVE-->
<fieldset class="floatingBox back">
<legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
<?php if ($ec_button_enabled) { ?>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
<div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
<?php } ?>
<?php // ** END PAYPAL EXPRESS CHECKOUT ** ?>
</form>
</fieldset>
<br class="clearBoth" />
<!--EOF PPEC split login- DO NOT REMOVE-->
<?php } else { ?>
<!--BOF normal login-->
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div class="advisory"><?php echo TEXT_VISITORS_CART; ?></div>
<?php
}
?>
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', 'id="loginForm"'); ?>
<fieldset>
<legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
<br class="clearBoth" />
<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</form>
<br class="clearBoth" />
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);" id="createAccountForm"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
</form>
<!--EOF normal login-->
<?php } ?>
</div>
Thanks a heap! This is great.
I suspect the solution to this is to restore the forgot password page to it's unmodified state but I figured I'd ask if anyone has run into this and perhaps explain where this function comes from.
After installing COWOA on a dev install I was testing and the forgot password page threw a 500 error. I checked logs and it was due to "Call to undefined function zen_create_padss_password()". Any idea where this function comes from and what benefit would there be in using it instead of whatever zen uses by default? This is a 1.5 zen install.
Using Dev tool kit on both dev and live (live has a working forgot password page) installs I can't seem to find this function.
Thanks in advance.
Most problems occur because the files are not being uploaded to there correct directories or you have not merge the files correctly. Make sure you renamed the Admin_Folder and the YOUR_TEMPLATE folders to your custom folder name that you are using. The forgot password function should work with no problems.