If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Payment Modules / Checkout by Amazon Zen Cart Plug-in

Checkout by Amazon Zen Cart Plug-in

Started by amazonpayments on 10 Aug 2010, 7:09 PM · Views: 135,750

Results 321 to 340 of 350
28 Aug 2013, 1:19 PM
#321
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Checkout by Amazon Zen Cart Plug-in

Did anyone ever get this working for a UK website?
At the moment it's still using amazon.com from what I can tell.
Someone else seems to have made a similar plugin at Webiprog (http://www.webiprog.co.uk/e-commerce-services/checkout-by-amazon-for-zencart).
It looks OK, has anyone else tried it?
Was there ever a solution found to this? Would I be best to just try to get google checkout to work instead or something?
Thank you.

28 Aug 2013, 2:06 PM
#322
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

DivaVocals:

Nope.. No one has ever had that "ah ha" moment and gotten this thing to work as it should.. You can go back to Amazon and ask for their help.. But you will find that Amazon doesn't support it (they SHOULD since they wrote it), and only points you back here so you can discover that this is a..

**DEAD... UNSUPPORTED.. NON-WORKING MODULE.. **

Good luck..^^^^As stated previously..
ellipsis:

Did anyone ever get this working for a UK website?
At the moment it's still using amazon.com from what I can tell.
Someone else seems to have made a similar plugin at Webiprog (http://www.webiprog.co.uk/e-commerce-services/checkout-by-amazon-for-zencart).
It looks OK, has anyone else tried it?
Best thing you can do is setup a test store, download this and test it out..
ellipsis:

Would I be best to just try to get google checkout to work instead or something?
Thank you.Google checkout is going away this year..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

24 Sep 2013, 6:28 PM
#323
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

DivaVocals:

Found that if I edited the following file as follows: checkout_by_amazon/checkout_by_amazon_constants.php

Find:

require_once('../checkout_by_amazon_constants.php');

> 
> Replace with:
> ```
require_once('checkout_by_amazon/checkout_by_amazon_constants.php');

This worked great, i'm just starting to look at this mess, are you still working on this?

What are you using as your success page ?

24 Sep 2013, 6:33 PM
#324
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

DivaVocals:

Short answer.. read back through the last few pages of this support thread..

Summary:
DEAD... UNSUPPORTED.. NON-WORKING MODULE..

DivaVocals:

Nope.. No one has ever had that "ah ha" moment and gotten this thing to work as it should.. You can go back to Amazon and ask for their help.. But you will find that Amazon doesn't support it (they SHOULD since they wrote it), and only points you back here so you can discover that this is a..

**DEAD... UNSUPPORTED.. NON-WORKING MODULE.. **

Good luck..

Nope......

djdavedawson:

This worked great, i'm just starting to look at this mess, are you still working on this?

What are you using as your success page ?

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

24 Sep 2013, 6:38 PM
#325
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

dlcohenzc:

I almost have Amazon Checkout working - just getting duplicate orders posted back. I saw a couple of other forum users had this issue, but no one noted any workaround/fix. Anyone?

What are you using as your success page ?

25 Sep 2013, 10:07 PM
#326
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Well, for anyone who's interested it this. I've got the plugin 80% working.

I realize that for most this is a dead module, but felt it necessary to post my progress.

Here are a few things i've found that help

#1 Callback Issue

This file ->AmazonMerchantClient.php should be updated this way

Find:

require_once('../checkout_by_amazon_constants.php');

Replace with:

require_once(DIR_FS_CATALOG . 'checkout_by_amazon/checkout_by_amazon_constants.php');

DIR_FS_CATALOG is important for some other pages that try to reference this file.

#2 Orders not appearing in Zencart

You have to specify the "Instant Order Processing Notification Settings:" in "Pipeline Settings" on Amazon Seller Central

https://www.yoursite.com/checkout_by_amazon.php

and "Order Reports Settings" to XML

#3 Orders have no date

This File -> IOPNXMLParser.php

Find:

function getOrderDate() {

		
		return 'now()';

Replace with:

function getOrderDate() {

		
		return "'now()'";

So like i said it's mostly working, Where i'm having trouble is adding shipping info or canceling to the order via their buttons in the order.

This is the error i get returned:

2006 MySQL server has gone away
in:
[insert into zen_amazon_order_history (amazon_order_id, orders_id, reference_id, created_on, status, operation, comments) values ('110-0939952-2236242', '18024', '', now(), '0', '1002', ' Carrier: USPS Shipping Service: 321 Shipment Tracking ID: 3213')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
2006 MySQL server has gone away
in:
[select count(*) as total from zen_sessions where sesskey = '0690d10412c05f08419a1a0b03be8653']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

If anyone has feedback, please post.

Thanks

~D

26 Sep 2013, 2:06 PM
#327
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Boggled:

The attribute problem has been an ongoing issue. With ours sometimes it would show up, sometimes it wouldn't.

I realize this was forever ago, but can you tell me about the attribute problem you describe here.

Are the attributes not being inserted into table -> zen_orders_products_attributes?

or

The attributes are not showing up on Amazons' order Detail in the Customers Amazon Account?

Thanks in Advance

26 Sep 2013, 4:38 PM
#328
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

Interesting what you find when you go back a page or two..

Whot:

Sorry to add to your dislike even more, but if your customer is making use of attributes on his products, then Amazon will not work for his situation. Amazon will not pass the attribute names. Amazon uses the md5 hash in its sku on the order page so it renders useless. Just thought I pass this along before you go crazy fixing everything.

DivaVocals:

Well I'm done with this module.. there are MANY issues with this module IMHO which make it pretty unusable.

  1. Bugfixes identified and documented in this support thread ARE NOT a part of the most recently submitted version of this mod (some of these bugfixes were acknowledged by the user known as AmazonPayments)
  1. The way this module manages customers is just flat out WRONG. Furthermore if you are using modules such as FEC, FEAC, or COWOA, you will find that you will be UNABLE to use this mod as it's customer management will eventually cause conflicts with these mods.
  1. The sheer number of issues reported with getting callbacks to work leads me to believe either this mod is flawed or the readme file fails to provide COMPLETE configuration instructions
  1. There is a distinct LACK of regular support by the community or even by Amazon for this module.

Bottomline there are other more popular/common/generally used payment methods available for Zen Cart (PayPal and Authorize.net for example) which do not require the amount of effort to configure and install that the Amazon Payments for Zen Cart module takes.. The Amazon Payments for Zen Cart module in it's current state is a module with little ROI IMHO.

IMHO, NO legit shop should be running with Amazon Payments as it's ONLY payment method. Unless and until there is much more widespread adoption and support (technical/community) of Amazon Payments as a payment method for ANY website, it can only serve as a secondary payment method on any website. The two days I spent monkeying around with this messy module and the SPEED in which I got Authorize.net module configured, tested, and launched finally convinced my client that there is NO gain to be had from a module that doesn't work out the box and has little technical/community support.

Don't expect much help from Amazon either.. They seem to like to point you back here as if the Amazon Payments for Zen Cart module doesn't work because of some Zen Cart issue for which they will refer you back to the Zen Cart admins.. :censored:

I wish anyone luck who dares to try and wrangle this thing into working.. Most of the posts by retched posted here will help, but even with his changes included, the issues I outlined at the beginning of this post still exist, and need to be addressed for this to be a RELIABLE payment module.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

26 Sep 2013, 5:26 PM
#329
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Amazon will not pass the attribute names.

The reason i'm asking is because I have placed orders with attributes on my test site and the attributes are getting inserted CORRECTLY into the db.

I don't see any issues with attributes, With the exception that ..

$THIS-> Amazons Checkout page and in the buyers control panel does not show them.

I'm trying to find out if $THIS is the issue that's been referred throughout this thread .. Which I have read.

I would like to know if others have had the attributes NOT insert into the DB.

All my tests have been successful.

Thanks ~D

26 Sep 2013, 5:51 PM
#330
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

Whot:

Sorry to add to your dislike even more, but if your customer is making use of attributes on his products, then Amazon will not work for his situation. Amazon will not pass the attribute names. Amazon uses the md5 hash in its sku on the order page so it renders useless. Just thought I pass this along before you go crazy fixing everything.

djdavedawson:

The reason i'm asking is because I have placed orders with attributes on my test site and the attributes are getting inserted CORRECTLY into the db.

I don't see any issues with attributes, With the exception that ..

$THIS-> Amazons Checkout page and in the buyers control panel does not show them.

I'm trying to find out if $THIS is the issue that's been referred throughout this thread .. Which I have read.

I would like to know if others have had the attributes NOT insert into the DB.

All my tests have been successful.

Thanks ~D

Amazon will not pass the attribute names = Amazons Checkout page and in the buyers control panel does not show them

the issue that's been referred throughout this thread = Amazon will not pass the attribute names

Amazon will not pass the attribute names = Attributes are fine on the Zen Cart side since this module makes no changes to attribute handling. It's AMAZON that's the issue

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

26 Sep 2013, 9:25 PM
#331
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Amazon will not pass the attribute names = Amazons Checkout page and in the buyers control panel does not show them

Thank you for clarifying this.

Issue #4 - Attribute Names not showing on Amazon Checkout Page

Issue #5 - Special Characters breaks Order Push

The following is a workaround for both Issues 4 & 5

Open file -> checkout_by_amazon/button_generator.php

Find This:

$xmlBuilder->Element('Description', substr(zen_get_products_description($item[id],1), 0, MAX_DESC_LEN));

Replace with this:

$attributes_array = $cd->GetItemCustomXml($item);	
			  			  
			  unset($attributes_result);			 
				
				foreach($attributes_array as $row)
				  {								  
					 if ($row['attributes']) {
					  
						 foreach($row['attributes'] as $k)
						 {
							   $attributes_result .= $k['options_name'] . ":  ";
							   $attributes_result .= $k['values_name'] . "  --  ";
						 }
					 }
				  } 
							  
			$xmlBuilder->Element('Description', $attributes_result . substr(preg_replace('/[^a-zA-Z0-9_ -]/s', '', strip_tags(zen_get_products_description($item[id],1))), 0, MAX_DESC_LEN));

This workaround simply puts the attribute names before the description at Amazons' Checkout Page when they are present.

This also strips all the html and special characters from the description when sent to Amazon.

~D

22 Oct 2013, 11:11 AM
#332
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Checkout by Amazon Zen Cart Plug-in

djdave, Nice job attempting to work the issues out.

Disregard the repetitious know it all naysayers.

22 Oct 2013, 1:59 PM
#333
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

Woodymon:

djdave, Nice job attempting to work the issues out.

Disregard the repetitious know it all naysayers.I just LOVE passive aggressive posts!!!

"repetitious know it all naysayers" eh?? riiiiight... funny..:laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

27 Oct 2013, 1:56 AM
#334
whot avatar

whot

New Zenner

Join Date:
Oct 2012
Posts:
13
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

djdavedawson:

Thank you for clarifying this.

Issue #4 - Attribute Names not showing on Amazon Checkout Page

Issue #5 - Special Characters breaks Order Push

The following is a workaround for both Issues 4 & 5

Open file -> checkout_by_amazon/button_generator.php

Find This:

$xmlBuilder->Element('Description', substr(zen_get_products_description($item[id],1), 0, MAX_DESC_LEN));

> 
> Replace with this:
> 
> ```php
$attributes_array = $cd->GetItemCustomXml($item);	
			  			  
			  unset($attributes_result);			 
				
				foreach($attributes_array as $row)
				  {								  
					 if ($row['attributes']) {
					  
						 foreach($row['attributes'] as $k)
						 {
							   $attributes_result .= $k['options_name'] . ":  ";
							   $attributes_result .= $k['values_name'] . "  --  ";
						 }
					 }
				  } 
							  
			$xmlBuilder->Element('Description', $attributes_result . substr(preg_replace('/[^a-zA-Z0-9_ -]/s', '', strip_tags(zen_get_products_description($item[id],1))), 0, MAX_DESC_LEN));

This workaround simply puts the attribute names before the description at Amazons' Checkout Page when they are present.

This also strips all the html and special characters from the description when sent to Amazon.

~D

This is a shock that someone had actually made progress to improve an aspect of this module. Do you know if its possible to include the attributes to show up on the buyer side Amazon seller central order screen? If this can be done, then I know of a few store owners who would make use of this module again as that is the biggest weakness to not use it.

4 Nov 2013, 6:19 PM
#335
djdavedawson avatar

djdavedawson

Zen Follower

Join Date:
Jul 2005
Location:
Orlando, Fl
Posts:
343
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Nice job attempting to work the issues out.

Thanks Woodymon

4 Nov 2013, 6:30 PM
#336
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

Whot:

This is a shock that someone had actually made progress to improve an aspect of this module. Do you know if its possible to include the attributes to show up on the buyer side Amazon seller central order screen? If this can be done, then I know of a few store owners who would make use of this module again as that is the biggest weakness to not use it.

While I might be the resident "repetitious know it all naysayer" I do agree with your thoughts..:yes: Yep.. the attributes and the other issues (not to mention the lack of Amazon's support) were among the many reasons my client opted to not implement this payment module for now.. It's nice to see someone make forward progress with it.. Hoping one day that I will be able to fully implement it for my client..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

11 Nov 2013, 12:56 PM
#337
dlcohenzc avatar

dlcohenzc

New Zenner

Join Date:
Sep 2011
Posts:
19
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

If anyone is interested in Amazon checkout, I actually believe I've figured out the duplicate orders issue. The cause, I'm pretty sure, was that Amazon sent two statuses at one time - PROCESSING and UNSHIPPED - setting up race condition so sometimes orders got duplicated and sometimes they did not in amazonorder.php. What I did was set up semaphore to allow only one process to execute the critical code at a given time.

This works for us:

In amazonorder.php, at start of NewIOPNOrders function:

// *********** locking
// Get the lock
$lockfile = 'cache/amazon_order.lock';
$lock = fopen($lockfile, 'a');
$ret = flock($lock, LOCK_EX);
// *********** locking

Then at end of NewIOPNOrders:

// *********** locking
// Release the lock
$ret = flock($lock, LOCK_UN);
fclose($lock);
// *********** locking

One thing I would like to see fixed is for shipping option to be presented on Amazon with lowest cost choice. I haven't been able to figure that out, as Amazon seems to randomly pick default even if I sent them in order.

26 Mar 2015, 11:32 AM
#338
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Checkout by Amazon Zen Cart Plug-in

Just announced - a new Pay by Amazon developed by a UK firm and announced by amazon - I don't know anything more about it but at least it should work. http://go.amazonservices.com/UKCBASPZencart.html

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

26 Mar 2015, 12:30 PM
#339
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

delia:

Just announced - a new Pay by Amazon developed by a UK firm and announced by amazon - I don't know anything more about it but at least it should work. http://go.amazonservices.com/UKCBASPZencart.html

The installation guide says the business address must be in UK, Germany or Luxemburg.

26 Mar 2015, 12:40 PM
#340
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Checkout by Amazon Zen Cart Plug-in

Well, that's a real irritation. You are right. I just let them know the rest of the world awaits.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo