Zen Cart Logo
Forums / All Other Contributions/Addons / Checkout Amazon Style -- Support Thread

Checkout Amazon Style -- Support Thread

Views: 29,734

Results 41 to 60 of 74
12 Mar 2008, 11:31 PM
#41
skipper_2 avatar

skipper_2

New Zenner

Join Date:
Sep 2007
Posts:
48
Plugin Contributions:
0

Checkout Amazon Style -- Support Thread

I have attached the mod if you want to look at it, I tried changing the name of tpl_modules_create_account.php in the capitalise mod to tpl_checkout_account_default.php and putting it in templates in place of the amazon style tpl_checkout_account_default.php and it worked but i had no continue button and when I tried to add the button code it threw the page out.

Any ideas would be much appreciated.

Regards
Paul

13 Mar 2008, 1:14 AM
#42
steven300 avatar

steven300

Totally Zenned

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

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

<?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)..

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

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

13 Mar 2008, 10:17 AM
#43
skipper_2 avatar

skipper_2

New Zenner

Join Date:
Sep 2007
Posts:
48
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Thanks Steven, works a treat!:clap: 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

13 Mar 2008, 1:24 PM
#44
steven300 avatar

steven300

Totally Zenned

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

Re: Checkout Amazon Style -- Support Thread

skipper_2:

Thanks Steven, works a treat!

You're welcome.

skipper_2:

only thing I can't get to capitalise is the state field

Just checked your site - works fine for me.

13 Mar 2008, 1:28 PM
#45
skipper_2 avatar

skipper_2

New Zenner

Join Date:
Sep 2007
Posts:
48
Plugin Contributions:
0

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?

13 Mar 2008, 1:45 PM
#46
steven300 avatar

steven300

Totally Zenned

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

Re: Checkout Amazon Style -- Support Thread

skipper_2:

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.

13 Mar 2008, 2:53 PM
#47
skipper_2 avatar

skipper_2

New Zenner

Join Date:
Sep 2007
Posts:
48
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

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

Thanks again for the help.

18 Jun 2008, 1:08 PM
#48
onequickmemory avatar

onequickmemory

New Zenner

Join Date:
Jul 2006
Location:
Tallahassee, FL
Posts:
6
Plugin Contributions:
0

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

19 Sep 2008, 7:01 PM
#49
whispers143 avatar

whispers143

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

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

15 Oct 2008, 5:39 PM
#50
winger1972 avatar

winger1972

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

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

21 Nov 2008, 5:54 PM
#51
rory avatar

rory

New Zenner

Join Date:
Apr 2008
Location:
Bainbridge Island, WA
Posts:
16
Plugin Contributions:
0

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?

22 Dec 2008, 11:48 PM
#52
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Hi,

Checkout addon is great. Is there anyway to add a button beside the continue on checkout to link to Accountless Checkout?

23 Dec 2008, 12:30 AM
#53
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Ignore my comment. I got it sorted.

4 Jan 2009, 4:36 AM
#54
cpaulson avatar

cpaulson

Zen Follower

Join Date:
Jul 2007
Posts:
124
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

If I have already installed the COWA (checkout without account) mod, can I still use yours? I am just beginning, but I don't really like the checkout process even with the COWA. I'd like to see how yours works.

14 Apr 2009, 5:01 AM
#55
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

using 1.3.8a and installed this mod, but when a customer is at checkout...when the put in their billing information and click continue it brings them to "my account" when it should bring them to the shipping options? HELP ASAP!

28 Aug 2009, 8:03 AM
#56
mosigma avatar

mosigma

New Zenner

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

Re: Checkout Amazon Style -- Support Thread

I recently installed Zen Cart v1.3.8. I came across this add on and it seems to be one of the many things I want to add to my site.

However, after installing everything in the right places, my page is completely blank when I look at it. I began to remove files (one at a time) to pin point what caused the issue. The file turned out to be the config.checkoutlogin.php file located in the includes->auto loaders folder.

When I deleted off of the server, my website came back but with this file the site shows a blank screen.

My question: Is there an updated Amazon plugin that works with 1.3.8? Or is there a fix for this issue I am having?

4 Mar 2010, 3:52 AM
#57
traypup avatar

traypup

New Zenner

Join Date:
May 2007
Posts:
56
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Hi there,

I installed this mod in december 2008. It was working out great until just recently, although my client can't pinpoint exactly when. I only heard about it this week.

I'm using v. 1.3.8 and have been since it came out, but I'm wondering what may have happened to cause this mod to stop working. A php upgrade? I did the zen security patch last summer and that didn't seem to disturb your mod either.

I would love to get some feedback on this so I can decide what to do -- fix this or replace it with a different mod.

Thanks so much,
Tracey

4 Mar 2010, 9:21 AM
#58
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Hi,

traypup:

I'm using v. 1.3.8 and have been since it came out, but I'm wondering what may have happened to cause this mod to stop working. A php upgrade? I did the zen security patch last summer and that didn't seem to disturb your mod either.
What kind of problem is it that you are having? Can you tell me what the symptoms are.

What version of PHP are you using? (You can find out by clicking on Version in the Admin).

Regards,
Christian.

4 Mar 2010, 2:59 PM
#59
traypup avatar

traypup

New Zenner

Join Date:
May 2007
Posts:
56
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Hi Christian,

I'm using PHP Version: 5.2.11-pl1-gentoo (Zend: 2.2.0).

The problem is that when the user goes to check out, instead of having the choice to log in or to proceed without an account, they are forced to create an account. There's no other option like there used to be.

I checked the files and they are all there, exactly as I installed them. The only thing I think that has changed is the hosting company upgraded PHP.

Let me know what else you need from me. The client is freaking out (what else is new). :smile:

Traceyfile:///tmp/Checkout%20_%20AGC%20-%20New%20Mexico%20Building%20Branch%20,%20Shop.jpg

4 Mar 2010, 5:32 PM
#60
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Checkout Amazon Style -- Support Thread

Hi,

traypup:

The problem is that when the user goes to check out, instead of having the choice to log in or to proceed without an account, they are forced to create an account. There's no other option like there used to be.
The Mod doesn't actually give you the option to checkout without an account. The screen shot you posted looks exactly as I would expect.

Maybe there was some custom coding done after the mod was installed to add the checkout without account option? Or possibly the Checkout Amazon Style mod wasn't the one originally used. Could you have been using the Checkout Without Account (COWOA) mod instead?

Regards,
Christian.