Re: My Checkout Without Account Mod
:facepalm: Thanks, Design75. I'll look into using a previous version of Zen Cart and see if there are any serious security vulnerabilities.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
Shazbot
Hi everyone,
I'm having a little difficulty installing COWA, particularly step 1A. The string I'm looking for isn't in the header_tpl.php file. Maybe I'm looking at the wrong header_tpl.php file but the only one I found is in \includes\templates\zencart_zen\common.
I also can't find COWA in the Admin panel. It says it should be on the Configuration page but I can't find anything in regards to it. :/
Thanks for the help!
What version of zen cart are you using?
Re: My Checkout Without Account Mod
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.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
Shazbot
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.
I have upgraded COWOA and need a couple more testers. If your interested in testing let me know.
Re: My Checkout Without Account Mod
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.
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 } ?>
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.
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.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
mvstudio
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.
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 } ?>
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.
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.
In the latest version it already shows the difference between a COWOA and regular customers. I haven't uploaded it yet because I need a few more testers to install it on a zen cart v1.5.0 site.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
mvstudio
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.
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 } ?>
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.
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.
Which version COWOA are you running?
I thought something like this was introduced in IntegratedCOWOA_20c2, including the extra column admin customer page, but will have to check.
Re: My Checkout Without Account Mod
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.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
mvstudio
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.
Yes they can thank you.
Re: My Checkout Without Account Mod
Quote:
Originally Posted by
mvstudio
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.
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 } ?>