Page 101 of 123 FirstFirst ... 519199100101102103111 ... LastLast
Results 1,001 to 1,010 of 1222
  1. #1001
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: My Checkout Without Account Mod

    Quote Originally Posted by PlayscaleMinis View Post
    JTheed, not to be disrespectful, but DUH.
    My point is that - from my clean backup - I've cut/pasted the codes as instructed five times now, each time with the same result.
    I've left the site as-is right now, hoping that someone can tell me 1) if I did make a major mistake (and how to start looking for the problem), or 2) if the coding won't work with a fresh 1.3.9d install.
    Well DUH lol, you may have left your sight as is, but did you leave a link to it ? Did you look at the log files?

    I'll let CraftZombie answer your override question as this is her update to the mod. If you want to try mine (Because you say you are using a Clean 139 install) , just click on the MY MODS Site in my Signature ( of the Zen Cart files section here). You can even see the COWOA work there.

  2. #1002

    Default Re: My Checkout Without Account Mod

    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

  3. #1003
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: My Checkout Without Account Mod

    Quote Originally Posted by PlayscaleMinis View Post
    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.

  4. #1004

    Default 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

  5. #1005

    Default 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.

  6. #1006
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: My Checkout Without Account Mod

    Quote Originally Posted by PlayscaleMinis View Post
    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/showth...573#post899573

  7. #1007
    Join Date
    Jul 2010
    Location
    Scotland
    Posts
    3
    Plugin Contributions
    0

    Default 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.

  8. #1008

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

  9. #1009

    Default 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

    In file includes/functions/audience.php, I have changed function get_audience_sql_query to:
    Code:
      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.

  10. #1010
    Join Date
    Apr 2008
    Posts
    351
    Plugin Contributions
    4

    Default Re: My Checkout Without Account Mod

    Quote Originally Posted by damiantaylor View Post
    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

    In file includes/functions/audience.php, I have changed function get_audience_sql_query to:
    Code:
      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:
    Code:
            $query_string = "select customers_firstname, customers_lastname, customers_email_address
     from " . TABLE_CUSTOMERS . "
     where customers_email_address = '" .     zen_db_input($cust_email_address) . "'  
      and COWOA_account == '0'";
    This way the accounts that used COWOA will not be included.

 

 

Similar Threads

  1. Checkout without account problem
    By weblasomnath in forum Addon Templates
    Replies: 0
    Last Post: 23 Nov 2010, 02:56 PM
  2. Checkout without account
    By GDOrn in forum All Other Contributions/Addons
    Replies: 194
    Last Post: 14 Sep 2010, 08:05 PM
  3. Fast and Easy Checkout - Checkout Without Account not showing
    By Lee-oh in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 Feb 2010, 05:09 PM
  4. question about the checkout without account mod
    By hxkknba in forum Addon Payment Modules
    Replies: 1
    Last Post: 12 Oct 2009, 05:48 PM
  5. Changing checkout flow with Checkout Without Account (COWOA)?
    By pe7er in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Feb 2008, 06:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR