:facepalm: Thanks, Design75. I'll look into using a previous version of Zen Cart and see if there are any serious security vulnerabilities.
:facepalm: Thanks, Design75. I'll look into using a previous version of Zen Cart and see if there are any serious security vulnerabilities.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
I'm using the latest version, 1.5.
Perhaps COWA won't show up without editing the string in header_tpl.php. I doubt it, since that's not really what header_tpl.php is for, as far as I know, but maybe COWA depends on it to run properly.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
Hi everyone.
We love this mod, but as our stores grew we were having issues.
Basically the problem was that we couldn't identify which accounts were created as COWOA and which were permanent, so we added this piece of code to tpl_modules_no_account.php right below the privacy conditions section.
What this code does is hide the customer referral box from being seen and adds the COWOA value in the database as the referral code for the account.PHP Code:
<?php
if (CUSTOMERS_REFERRAL_STATUS == 2) {
?>
<?php echo zen_draw_hidden_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral" value="COWOA"'); ?>
<?php } ?>
For this to work even better we added an extra column to the customers.php admin page, so it's easy to identify which are regular accounts and which are temporary accounts. Any account with COWOA as a referral code is easy to spot and we don't have to waste time giving discount codes to these accounts when we're running a promotion. Saves us time and money.
Anyways, we thought this would be a good contribution for anyone using the COWOA mod, who spends countless hours identifying temporary accounts from permanent ones.
Last edited by countrycharm; 28 May 2012 at 02:42 AM.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
If it has already been added to the latest versions, then disregard.
Those with old version of both COWOA and zencart, can still find it useful nonetheless.
M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
OK. The differences in code are as follows:
Add the following code to tpl_modules_no_account.php right below the privacy conditions section"
Code:<?php if (CUSTOMERS_REFERRAL_STATUS == 2) { ?> <?php echo zen_draw_hidden_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral" value="COWOA"'); ?> <?php } ?>
My tpl_modules_no_account.php has the following code at the end:
Code:<?php if (CUSTOMERS_REFERRAL_STATUS == 2) { ?> <fieldset> <legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend> <label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label> <?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral"'); ?> <br class="clearBoth" /> </fieldset> <?php } ?>
Bookmarks