Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 73
  1. #41
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Checkout Amazon Style -- Support Thread

    Hi Paul. I have both mods working together with no problems. It's easy to do.

    You first need to insert the following JavaScript function towards the top of your tpl_checkout_account_default.php file, so it looks like this..

    Code:
    <?php
    // Checkout Account Page Template
    // Mod Created by C.J.Pinder / Glint Systems Limited ( http://www.glintsystems.co.uk )
    // Copyright 2003-2007 Zen Cart Development Team
    // Portions Copyright 2003 osCommerce
    // Released under the GNU Public License v2.0
    ?>
    <div class="centerColumn" id="checkoutAcctDefault">
    
    <h1 id="checkoutAcctDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <p id="checkoutAcctDefaultInfo" class="biggerText"><?php echo TEXT_CHECKOUT_ACCOUNT_INFO; ?></p>
    <?php if ($messageStack->size('create_account') > 0) echo $messageStack->output('create_account'); ?>
    
    <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CHECKOUT_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
    
    <script type="text/javascript">
    
    function capitalize(f,m) {
    
    if (m) /*cap words*/ {
    	var temp, tempC, pre, post, strlen;
    	temp = f.value.toLowerCase();
    	stringLen = temp.length;
    	  if (stringLen > 0) {
    		for (i = 0; i < stringLen; i++) {
    		  if (i == 0) {
    			tempC = temp.substring(0,1).toUpperCase();
    			post = temp.substring(1,stringLen);
    			temp = tempC + post;
    		  } else {
    			tempC = temp.substring(i,i+1);
    			if (tempC == " " && i < (stringLen-1)) {
    			tempC = temp.substring(i+1,i+2).toUpperCase();
    			pre = temp.substring(0,i+1);
    			post = temp.substring(i+2,stringLen);
    			temp = pre + tempC + post;
    		  }
    		}
    	  }
    	}
      } else /*cap all*/ {
        var temp = f.value.toUpperCase();
      }
      f.value = temp;
    };
    
    </script>
    Then for each component on the page which you want to validate, change to something like this (firstname used as example)..

    Code:
    <?php echo zen_draw_input_field('firstname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
    The same format above can be reapplied to lastname, streetaddress, suburb, city etc

    The postcode is the only component which requires a different type of change..

    Code:
    <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode" onchange="capitalize(this,0);"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
    That's it. I would have posted my whole file as an attachement but I have a few other mods added so it prob wouldn't have been much use. Hope that helps.

  2. #42
    Join Date
    Sep 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    Thanks Steven, works a treat! only thing I can't get to capitalise is the state field. I Don't use the dropdown box so people have to type in their County. I put the code in the same as for the other fields but it is the only part that doesnt work. It is on my wifes site www.goldelox.co.uk . Any ideas why please?

    And thanks again for that help.
    Paul

  3. #43
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Checkout Amazon Style -- Support Thread

    Quote Originally Posted by skipper_2 View Post
    Thanks Steven, works a treat!
    You're welcome.

    Quote Originally Posted by skipper_2 View Post
    only thing I can't get to capitalise is the state field
    Just checked your site - works fine for me.

  4. #44
    Join Date
    Sep 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    Hi Steven,

    It does work fine when you use the login option or the my account option but if you put something in the basket and go through to the amazon style checkout, its that screen that doesnt do it, it must be using a different page?

  5. #45
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Checkout Amazon Style -- Support Thread

    Quote Originally Posted by skipper_2 View Post
    Hi Steven,

    It does work fine when you use the login option or the my account option but if you put something in the basket and go through to the amazon style checkout, its that screen that doesnt do it, it must be using a different page?
    Yes I think it does use a different page.

    I've checked both of your registration pages, the one from clicking Log In, and the one after the shopping cart. Both are working for me.

  6. #46
    Join Date
    Sep 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    So it does thats strange I could have sworn it didnt before, must be my eyesight!

    Thanks again for the help.

  7. #47
    Join Date
    Jul 2006
    Location
    Tallahassee, FL
    Posts
    6
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    Hello there. I want to say thanks for the efforts on this module.

    One question:

    What is the best way to remove the telephone field from the form? Forgive me if its been asked before, however I did not find it after a good look.

    Thanks,
    Onequickmemory

  8. #48

    Default Re: Checkout Amazon Style -- Support Thread

    I am using Zen Cart v1.3.8. and I recently changed templates and now my amazon, thing is all messed up! Sometimes it shows and sometimes it doesn't... It was working perfectly for months until I changed my template... I think it's bizzare. Would love some input as to what this might be. I don't have any other "check out" modules installed. http://uniquepcdesigns.com/store

  9. #49
    Join Date
    Oct 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    CJPinder - Thanks for the mod. Works great.

    joro2002 - nice idea on the Permanent Cart issue. I had a little trouble getting that to work, so I opted for Ajeh's solution, and turned off the permanent cart function. My customers tend to be one time shoppers.

    version Zen1.3.7.1

    in includes/modules/pages/checkout_login/header_php.php
    Find : $_SESSION['cart']->restore_contents();

    And replace it with:
    // restore cart contents
    // $_SESSION['cart']->restore_contents();
    // empty old cart products
    $_SESSION['cart']->cleanup();

    Don't forget to remove the 'Permanent Cart' language from the logoff screen and your welcome letter.
    includes/languages/english/logoff.php
    includes/languages/english/create_account.php

    Cheers - Winger
    Last edited by Winger1972; 15 Oct 2008 at 06:41 PM. Reason: Forgot to include filename

  10. #50
    Join Date
    Apr 2008
    Location
    Bainbridge Island, WA
    Posts
    16
    Plugin Contributions
    0

    Default Re: Checkout Amazon Style -- Support Thread

    I installed the Automatic Login then Checkout Amazon Style. Neither of these addons have files that conflict with each other. However, when I am a guest with no account and go to checkout, I get an error on the checkout_account page. The error is " The Confirmation Email must match your Email Address." What can I do to resolve this issue?

 

 
Page 5 of 8 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. v155 One-Page Checkout [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 3051
    Last Post: 19 Jun 2026, 03:34 PM
  2. v150 Carousel Featured Products (carouFresel style) [Support Thread]
    By kamelion0927 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 16 Oct 2023, 01:47 PM
  3. Amazon Exporter Support Thread
    By numinix in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 10 Feb 2010, 12:41 AM
  4. Support for Google Checkout and Amazon Payments?
    By jamesbo in forum Addon Payment Modules
    Replies: 2
    Last Post: 21 Sep 2009, 09:11 PM
  5. Amazon Style checkout problem
    By dupfies01 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Oct 2008, 09:11 PM

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