Zen Cart Logo
Forums / All Other Contributions/Addons / My Checkout Without Account Mod

My Checkout Without Account Mod

Locked

Views: 323,003

Results 1,001 to 1,020 of 1,220
This thread is locked. New replies are disabled.
16 Jun 2010, 17:40
#1001
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

My Checkout Without Account Mod

PlayscaleMinis:

Thanks JTheed, I'll take a closer look after work (the day job, that is...)
Whoops, it hadn't occurred to me to find and read a log. Is it in the admin? I've never done this kind of programming before - I'm an HTML/graphics kind of gal.
The URL (not linked, I admit) was in the first post - playscaleminis.biz
Cheers,
Janean

Not to worry, this is how I learned/am learning it. The log files are stored in your cache folder. There are session and sql statements in there, look for the ones ending in .log.

18 Jun 2010, 16:40
#1002
playscaleminis avatar

playscaleminis

New Zenner

Join Date:
Jun 2010
Posts:
8
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi JTheed, your mod seems to be working for me for a clean 1.3.9 install. BUT PLEASE add to your install file a Step 7 - Turn the bleepin' thing ON in admin>config. I went through all sorts of mental gymnastics until I noticed COWOA added to that menu!!!!
Still building...
Janean

18 Jun 2010, 17:53
#1003
playscaleminis avatar

playscaleminis

New Zenner

Join Date:
Jun 2010
Posts:
8
Plugin Contributions:
0

Re: My Checkout Without Account Mod

I take back the part about it working... I've got an endless loop. After filling out Billing Information, instead of continuing to Delivery Information, it loops back to the index.php?main_page=login page.

19 Jun 2010, 13:56
#1004
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: My Checkout Without Account Mod

PlayscaleMinis:

I take back the part about it working... I've got an endless loop. After filling out Billing Information, instead of continuing to Delivery Information, it loops back to the index.php?main_page=login page.

Please go to this thread.
http://www.zen-cart.com/forum/showthread.php?p=899573#post899573

07 Jul 2010, 12:51
#1005
sophia8 avatar

sophia8

New Zenner

Join Date:
Jul 2010
Location:
Scotland
Posts:
3
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi, I'm a web designer, and last month a client asked me to convert her site to Zencart. Never had any experience with ZC, so the last two weeks have been a big learning curve. However, I'm now on top of it, develoiped a custom template and nearly got it ready.
My client didn't want customers to log in, so I was delighted when I found the COWOA mod. But my install appears to have a bug during the checkout. When you fill in the billing information, then click through to Step 2, it takes you to the default template, with the default stylesheet. And you stay within the default template until you log out.
Obviously I can solve this by overwriting the default template stylesheet with my custom CSS. But that seems very awkward - aren't you supposed to leave the default template files untouched? And why should the link direct to the default template folder anyway?

I've checked to make sure that all the YOUR_TEMPLATE files are in my custom folder. And I've read through most of this thread, but I can't seem to find anything that would help me.
Also I'd like to know how you can stop forcing COWOA customers to log off.

08 Jul 2010, 09:02
#1006
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Thank you for this mod, it is working really well for me.
I have found one slight problem though.....

If a customer checks out without an account, then later signs up for a full account, you have two accounts with the same email address.
If I then send a gift certificate from admin, the customer gets 2 gift certificates with 2 different redemption codes!
You may be asking yourself why am I sending gift certificates? Well, I have a competition running where the prize is £30 of gift certificates.

I'm not sure if any emails that get sent from admin have this same problem but I'm guessing they would.

Has anyone come across this before and found a fix?

08 Jul 2010, 18:17
#1007
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: My Checkout Without Account Mod

I think I've fixed the duplicate email address/duplicate email send bug.
Zen Cart doesn't usually allow more than one account to have the same email address so I needed to limit the number of emails sent to 1 if a specific email address was selected.
The duplicate emails can get costly when sending Gift Certificates from Admin :shocking:

In file includes/functions/audience.php, I have changed function get_audience_sql_query to:

  function get_audience_sql_query($selected_entry, $query_category='email') {
    // This is used to take the query_name selected in the drop-down menu or singular customer email address and
  // generate the SQL Select query to be used to build the list of email addresses to be sent to
  // it only returns a query name and query string (SQL SELECT statement)
  // the query string is then used in a $db->Execute() command for later parsing and emailing.
  global $db;
  $query_name='';
  $queries_list = $db->Execute("select query_name, query_string from " . TABLE_QUERY_BUILDER . " " .
                 "where query_category like '%" . $query_category . "%'");
//                 "where query_category = '" . $query_category . "'");

  while (!$queries_list->EOF) {
      if ($selected_entry == $queries_list->fields['query_name']) {
      $query_name   = $queries_list->fields['query_name'];
        $query_string = parsed_query_string($queries_list->fields['query_string']);
//echo 'GET_AUD_EM_ADDR_QRY:<br />query_name='.$query_name.'<br />query_string='.$query_string;
      }
    $queries_list->MoveNext();
  }
  //if no match found against queries listed in database, then $selected_entry must be an email address
  if ($query_name=='' && $query_category=='email') {
        $cust_email_address = zen_db_prepare_input($selected_entry);
        $query_name   = $cust_email_address;
        $query_string = "select customers_firstname, customers_lastname, customers_email_address
                              from " . TABLE_CUSTOMERS . "
                              where customers_email_address = '" . zen_db_input($cust_email_address) . "' limit 1";
    }
  //send back a 1-row array containing the query_name and the SQL query_string
  return array('query_name'=>$query_name, 'query_string'=>$query_string);
}

All I added was the 'limit 1' code in red.
If an expert can take a look and let me know if my change will mess something else up I'd really appreciate it.
Otherwise, if all is ok (it looks good in my testing) and anyone else is facing the same duplicate email issues, the above should fix it.

08 Jul 2010, 21:30
#1008
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: My Checkout Without Account Mod

damiantaylor:

I think I've fixed the duplicate email address/duplicate email send bug.
Zen Cart doesn't usually allow more than one account to have the same email address so I needed to limit the number of emails sent to 1 if a specific email address was selected.
The duplicate emails can get costly when sending Gift Certificates from Admin :shocking:

In file includes/functions/audience.php, I have changed function get_audience_sql_query to:

function get_audience_sql_query($selected_entry, $query_category='email') {
// This is used to take the query_name selected in the drop-down menu or singular customer email address and
// generate the SQL Select query to be used to build the list of email addresses to be sent to
// it only returns a query name and query string (SQL SELECT statement)
// the query string is then used in a $db->Execute() command for later parsing and emailing.
global $db;
$query_name='';
$queries_list = $db->Execute("select query_name, query_string from " . TABLE_QUERY_BUILDER . " " .
"where query_category like '%" . $query_category . "%'");
// "where query_category = '" . $query_category . "'");

while (!$queries_list->EOF) {
if ($selected_entry == $queries_list->fields['query_name']) {
$query_name = $queries_list->fields['query_name'];
$query_string = parsed_query_string($queries_list->fields['query_string']);
//echo 'GET_AUD_EM_ADDR_QRY:<br />query_name='.$query_name.'<br />query_string='.$query_string;
}
$queries_list->MoveNext();
}
//if no match found against queries listed in database, then $selected_entry must be an email address
if ($query_name=='' && $query_category=='email') {
$cust_email_address = zen_db_prepare_input($selected_entry);
$query_name = $cust_email_address;
$query_string = "select customers_firstname, customers_lastname, customers_email_address
from " . TABLE_CUSTOMERS . "
where customers_email_address = '" . zen_db_input($cust_email_address) . "' limit 1";
}
//send back a 1-row array containing the query_name and the SQL query_string
return array('query_name'=>$query_name, 'query_string'=>$query_string);
}

> 
> All I added was the 'limit 1' code in red.
> If an expert can take a look and let me know if my change will mess something else up I'd really appreciate it.
> Otherwise, if all is ok (it looks good in my testing) and anyone else is facing the same duplicate email issues, the above should fix it.

Change the query line to this:
    $query_string = "select customers_firstname, customers_lastname, customers_email_address

from " . TABLE_CUSTOMERS . "
where customers_email_address = '" . zen_db_input($cust_email_address) .[B] "'
and COWOA_account == '0'";
[/B]


This way the accounts that used COWOA will not be included.
09 Jul 2010, 07:39
#1009
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Thanks but wouldn't that stop me ever being able to email a COWOA customer though?
If a customer is COWOA only, I still want to be able to email them.

14 Jul 2010, 21:54
#1010
toaldingham avatar

toaldingham

New Zenner

Join Date:
Sep 2008
Posts:
35
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hi,

I'm changing templates and COWOA works on my current template, however when switching templates COWOA disappears. I'm sure I've copied the files over correctly, but I'm still stumped.

Any ideas?

Thanks
1to1music.co.uk

20 Jul 2010, 20:57
#1011
ztotheetothen avatar

ztotheetothen

Zen Follower

Join Date:
Oct 2006
Location:
Los Angeles
Posts:
111
Plugin Contributions:
0

Re: My Checkout Without Account Mod

i have installed the COWOA mod, but when i try to checkout through it, after filling out all the details, it give me an error: Your Telephone Number must contain a minimum of 3 characters.

I don't even have a phone field, but only a fax field, which is not required. Even if it is left blank, or i add more then 10 digits, it does not work. I can not go on the next page even if the fax field is blank.

any advise would be helpful. also how do i change the fax fiel to phone, and remove the DOB field.

20 Jul 2010, 21:10
#1012
ztotheetothen avatar

ztotheetothen

Zen Follower

Join Date:
Oct 2006
Location:
Los Angeles
Posts:
111
Plugin Contributions:
0

Re: My Checkout Without Account Mod

ztotheetothen:

i have installed the COWOA mod, but when i try to checkout through it, after filling out all the details, it give me an error: Your Telephone Number must contain a minimum of 3 characters.

I don't even have a phone field, but only a fax field, which is not required. Even if it is left blank, or i add more then 10 digits, it does not work. I can not go on the next page even if the fax field is blank.

any advise would be helpful. also how do i change the fax fiel to phone, and remove the DOB field.

fixed it myself! admin . configuration . minimum values. Set from 3 to 0.

21 Jul 2010, 19:30
#1013
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: My Checkout Without Account Mod

damiantaylor:

Thanks but wouldn't that stop me ever being able to email a COWOA customer though?
If a customer is COWOA only, I still want to be able to email them.

Yes, that is correct, but isn't that one of the reasons for a customer checking out without an account, so they don't receive unsolicited e-mails? This could give those customers on your site an incentive to create an account, tell them you do this for registered customers only.
JMHO.

21 Jul 2010, 19:31
#1014
jtheed avatar

jtheed

Zen Follower

Join Date:
Apr 2008
Posts:
356
Plugin Contributions:
2

Re: My Checkout Without Account Mod

toaldingham:

Hi,

I'm changing templates and COWOA works on my current template, however when switching templates COWOA disappears. I'm sure I've copied the files over correctly, but I'm still stumped.

Any ideas?

Thanks
1to1music.co.uk

Did you copy the files from the YOUR_TEMPLATE folder to your new template folder?

23 Jul 2010, 21:05
#1015
horsetags avatar

horsetags

New Zenner

Join Date:
Jun 2009
Posts:
44
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Embarrassingly i have downloaded this and reading the first part - step 1a, i have come to a stop!

STEP 1a says -** In your custom template son your cart**, edit the tpl_header.php file and look for this line.

<?php if (($_SESSION['customer_id']) { ?>

The bold bit does not make sense, but i looked in the includes/templates/my_template/common/tpl_header.php but cannot find any reference to that code.

I have installed add ons before, which is why it's embarrassing.

Can anyone help me past step 1a?

Tia

Paul

23 Jul 2010, 21:23
#1016
horsetags avatar

horsetags

New Zenner

Join Date:
Jun 2009
Posts:
44
Plugin Contributions:
0

Re: My Checkout Without Account Mod

horsetags:

Embarrassingly i have downloaded this and reading the first part - step 1a, i have come to a stop!

STEP 1a says -** In your custom template son your cart**, edit the tpl_header.php file and look for this line.

<?php if (($_SESSION['customer_id']) { ?>

The bold bit does not make sense, but i looked in the includes/templates/my_template/common/tpl_header.php but cannot find any reference to that code.

I have installed add ons before, which is why it's embarrassing.

Can anyone help me past step 1a?

Tia

Paul

Sorry, it is a modified header :-( - it's been a long day

24 Jul 2010, 00:57
#1017
abosch avatar

abosch

New Zenner

Join Date:
May 2010
Location:
Albuquerque, NM, USA
Posts:
12
Plugin Contributions:
0

Re: My Checkout Without Account Mod

I'm running 1.39d. I believe I successfully modified the templates/MyTemplate/Common/tpl_header.php. I don't think I missed uploading any of the files. I am stuck with two problems.

  1. At the initial screen where the customer enters name, address and all the rest, clicking 'Continue Checkout' just brings you right back to this same page (with all the fields emptied). ...an endless loop.

  2. There are no images... only references to them. (See screenshot.)

I guess I'll just turn it off for now. I would really like to get it working though. Any help/advice will be appreciated. - Thanks!

24 Jul 2010, 12:08
#1018
toaldingham avatar

toaldingham

New Zenner

Join Date:
Sep 2008
Posts:
35
Plugin Contributions:
0

Re: My Checkout Without Account Mod

JTheed:

Did you copy the files from the YOUR_TEMPLATE folder to your new template folder?

JTheed, thanks for the reply! I did, at least i'm sure I did. I'll re-check and see how I get on. Many thanks,

Ciaran.

24 Jul 2010, 21:41
#1019
toaldingham avatar

toaldingham

New Zenner

Join Date:
Sep 2008
Posts:
35
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Hmmm...So I have done this, but still not luck. The login page changes shape, as if it's trying to accomodate the COWOA box, but still doesn't show it. I'm baffled! It works on my localhost, but not when I upload it. ?

When I check the HTML source code the only reference to COWOA is:

<!-- BOF COWOA --> <!-- BOF COWOA -->

So it's recognising it in some way. Any suggestions

Thanks

02 Aug 2010, 03:43
#1020
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: My Checkout Without Account Mod

Will the 1.3.9 version of COWOA work with 1.3.8a? - The 1.3.8. version of this mod doesn't seem to be available any more. :(

Thanks.