Zen Cart Logo
Forums / All Other Contributions/Addons / How did you hear & Checkout wo account mod

How did you hear & Checkout wo account mod

Locked

Views: 1,175

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 May 2008, 12:22 PM
#1
reeflippee avatar

reeflippee

New Zenner

Join Date:
Mar 2008
Posts:
64
Plugin Contributions:
0

How did you hear & Checkout wo account mod

I'm using COWOA module and I just installed How did you hear about us. It prompts when a customer chooses to sign up for an account, but doesn't in the COWOA module. How can I make these work together?

Thanks!

10 May 2008, 12:28 PM
#2
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How did you hear & Checkout wo account mod

You'll need to manually add the How Did You Hear About Us code to the COWOA sign-up page for it to display. Use WinMerge to compare the two sign-up pages and ensure that they are both identical in terms of the Hear About code.

10 May 2008, 12:44 PM
#3
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How did you hear & Checkout wo account mod

On my site, I intentionally left the Hear About mod from the COWOA page because I figured customers choosing that route would be wanting as simple and easy a checkout process as possible. Just a thought.

11 May 2008, 12:24 AM
#4
reeflippee avatar

reeflippee

New Zenner

Join Date:
Mar 2008
Posts:
64
Plugin Contributions:
0

Re: How did you hear & Checkout wo account mod

My site is pretty much for one-time shoppers, since I only have one product. So, I need it on the COWOA page. Thanks for the suggestion though.

Specifically which file would I edit and which code? I'm having a hard time figuring it out.

Thanks!

11 May 2008, 9:31 AM
#5
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How did you hear & Checkout wo account mod

In this file..
includes\templates\custom\templates\tpl_modules_create_account.php

You should have the following:

<!-- //rmh referral start -->
 <fieldset>

<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
<!--<?php echo zen_draw_separator('pixel_trans.gif', '100%', '10'); ?> -->
<!-- <?php echo CATEGORY_SOURCE; ?> -->
<label class="inputLabel" for="source" ><?php echo ENTRY_SOURCE; ?></label>
<?php echo zen_get_source_list('source', (DISPLAY_REFERRAL_OTHER == 'true' ? true : false)) . ' ' . (zen_not_null(ENTRY_SOURCE_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

<?php
 if (DISPLAY_REFERRAL_OTHER == 'true') {
?>
<label class="inputLabel" for="source_other" ><?php echo ENTRY_SOURCE_OTHER; ?></label>
<?php echo zen_draw_input_field('source_other', '', 'id="sources_other_name"') .  (zen_not_null(ENTRY_SOURCE_OTHER_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_OTHER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

</fieldset>
<?php
}
?>
<!-- //rmh referral end -->

Add the above code to..
includes\templates\custom\templates\tpl_modules_no_account.php

11 May 2008, 9:46 AM
#6
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How did you hear & Checkout wo account mod

Hang on, you might need to edit some other files as well.

11 May 2008, 10:12 AM
#7
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: How did you hear & Checkout wo account mod

There's some Hear About code in..
includes\modules\custom\create_account.php

which will need to be merged into..
includes\modules\custom\no_account.php

This code validates and inserts the data into the db.

That might be all you need to do but I'm not totally sure. You'll need to compare the two mods and see which files they have that are the same, and then merge together.

Posting this in the COWOA support thread should get you the answers you need.

11 May 2008, 12:13 PM
#8
reeflippee avatar

reeflippee

New Zenner

Join Date:
Mar 2008
Posts:
64
Plugin Contributions:
0

Re: How did you hear & Checkout wo account mod

Thanks Steven! I'll post it there...I'm afraid to touch it a mess everything up!

I appreciate your help!