
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 } ?>