Zen Cart Logo
Forums / Addon Payment Modules / Checkout by Amazon Zen Cart Plug-in

Checkout by Amazon Zen Cart Plug-in

Views: 135,599

Results 41 to 60 of 350
2 Sep 2010, 9:53 AM
#41
chaos_factor avatar

chaos_factor

New Zenner

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

Checkout by Amazon Zen Cart Plug-in

Reinstalled it and now all of a sudden it works......at least so far. I wonder if the verbal abuse had anything to do with it! :shocking::D

2 Sep 2010, 10:15 PM
#42
ella33 avatar

ella33

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

Everything is set up and working perfectly in firefox, however, when I use IE to checkout as soon as I hit add to cart everything freezes. To test the problem I disabled amazon checkout and tried again and there was no freeze. Once enabled, back to freezing.

Any ideas?

3 Sep 2010, 5:41 AM
#43
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

ella33:

Everything is set up and working perfectly in firefox, however, when I use IE to checkout as soon as I hit add to cart everything freezes. To test the problem I disabled amazon checkout and tried again and there was no freeze. Once enabled, back to freezing.

Any ideas?

It could be the javascript that is being included or the bunched CSS script that is autoloaded in a header file.

3 Sep 2010, 11:57 AM
#44
amazonpayments avatar

amazonpayments

New Zenner

Join Date:
Oct 2009
Posts:
52
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

ella33:

Everything is set up and working perfectly in firefox, however, when I use IE to checkout as soon as I hit add to cart everything freezes. To test the problem I disabled amazon checkout and tried again and there was no freeze. Once enabled, back to freezing.

Any ideas?

we did the testing with IE 8, FF 3.6, Safari 5.0. we could not reproduce the issue. In which IE version are you facing this issue?

3 Sep 2010, 1:14 PM
#45
ella33 avatar

ella33

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

I have IE 7 that I am testing with, and still this morning it just freezes when I hit "add to cart".

3 Sep 2010, 1:16 PM
#46
ella33 avatar

ella33

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

Ok I somewhat take that back, I just did it now on IE7 and it took about 3 minutes for it to get to the payment page but it went there. On firefox, it goes instantly.

3 Sep 2010, 2:11 PM
#47
amazonpayments avatar

amazonpayments

New Zenner

Join Date:
Oct 2009
Posts:
52
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

ella33:

I have IE 7 that I am testing with, and still this morning it just freezes when I hit "add to cart".

is it "add to cart" or is it checkout with amazon button in the shopping cart?

ella33:

Ok I somewhat take that back, I just did it now on IE7 and it took about 3 minutes for it to get to the payment page but it went there. On firefox, it goes instantly.

we did check on IE 7 and it works fine for your site.

3 Sep 2010, 3:27 PM
#48
ella33 avatar

ella33

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

I hope you are right that its working fine on yours and just not mine. The issue from my end is from the amazon checkout because when I disable it, IE acts normal and takes me right to checkout. It is only when the amazon checkout is enabled that I have a problem with IE.

3 Sep 2010, 3:30 PM
#49
fmckinnon avatar

fmckinnon

New Zenner

Join Date:
Jul 2006
Posts:
84
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Any clue why on some orders, our seller SKU is shown on the order in ZenCart (which is our products_model), and other times it's not?

In most cases, the purchased product (products_model) displays in the ZenCart order ... however, many times, it does not - we have to copy the product title and paste it into our front-page search to find the product in our store, and view the actual Model shown on the Product detail page. (yeah, we don't know all the product SKU's by heart!)

3 Sep 2010, 10:25 PM
#50
fmckinnon avatar

fmckinnon

New Zenner

Join Date:
Jul 2006
Posts:
84
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Followup to my question above:

How can I get our ZenCart Order # to also be reflected in the Order details given at SellerCentral? Is this possible?

4 Sep 2010, 7:29 PM
#51
ella33 avatar

ella33

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

IE and Checkout.. I have now tested my website on a few other computers with IE and it freezes as soon as I click on "add to cart". If I disable the amazon checkout, it goes right through. I have no idea what is causing the freeze. I even tried to disable the css for explorer and that did not work. Any help?

6 Sep 2010, 3:05 AM
#52
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

I am running into three problems.

  1. Running the Cron script every 5 minutes generates a 500 Server Error message. Checking the script error logs and ZenCart logs and I see that I'm giving a "XMLParser" class not found and given a reference to amazonorder.php. Looking into this:
      $xmlparser = $orders->fields['xmltype'] . "XMLParser";

I'm not sure if I'm causing the error or something is causing the error.

  1. All orders are added with a misaligned customer details, that could be my fault since I was using a customer with a middle initial being used. But is there anyway that a first name and second name could be used?

  2. Each time an order is added, it has a date of 11/2/2036. in additioneach time a order is added, on admin home, I see a blank line of text. Can anyone assist?

6 Sep 2010, 8:04 AM
#53
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

I have fixed issue three above. For some reason, the mysql function now() wasn't working, so I uncommented it and started to use the commented out code. And made some adjustments so that the server is returning the results in my time.

Also fixed the error regarding the no date next to the customer's name. Evidently, AmazonPayments wasn't including the date the account was created, which is what is looked for on the index page. So therefore, I made the following change to /checkout_by_amazon/amazonorder.php:

Look for

'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION

Add a comma after AUTHORIZATION and afterward on a line, if desired, add:

'customers_info_date_account_created' => $data->getOrderDate(),
7 Sep 2010, 6:02 AM
#54
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Checkout by Amazon Zen Cart Plug-in

retched:

I have fixed issue three above. For some reason, the mysql function now() wasn't working, so I uncommented it and started to use the commented out code. And made some adjustments so that the server is returning the results in my time.

Also fixed the error regarding the no date next to the customer's name. Evidently, AmazonPayments wasn't including the date the account was created, which is what is looked for on the index page. So therefore, I made the following change to /checkout_by_amazon/amazonorder.php:

Look for

'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION

> ```php
'customers_info_date_account_created' => $data->getOrderDate(),

DISREGARD THIS POST.

Evidently, this wasn't what caused the script to finally work, but something else did.

7 Sep 2010, 11:22 AM
#55
amazonpayments avatar

amazonpayments

New Zenner

Join Date:
Oct 2009
Posts:
52
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

ella33:

IE and Checkout.. I have now tested my website on a few other computers with IE and it freezes as soon as I click on "add to cart". If I disable the amazon checkout, it goes right through. I have no idea what is causing the freeze. I even tried to disable the css for explorer and that did not work. Any help?

Hi ella33,
when you clicked on "add to cart" button, it freezes. when the page loaded, do you see any errors? we could not try as it is has been disabled in your site. Please enable it and let us know via PM.

retched:

I am running into three problems.

  1. Running the Cron script every 5 minutes generates a 500 Server Error message. Checking the script error logs and ZenCart logs and I see that I'm giving a "XMLParser" class not found and given a reference to amazonorder.php. Looking into this:
  $xmlparser = $orders->fields['xmltype'] . "XMLParser";
> 
> I'm not sure if I'm causing the error or something is causing the error.
> 
> 2) All orders are added with a misaligned customer details, that could be my fault since I was using a customer with a middle initial being used.  But is there anyway that a first name and second name could be used?
> 
> 3) Each time an order is added, it has a date of 11/2/2036. in additioneach time a order is added, on admin home, I see a blank line of text. Can anyone assist?

1. you should not get this error if your PHP has built-in XML support. can you paste the full error message ?
2. First name and last names got from the amazon order report are mapped with the zencart first name and last name. any customization on that should be handled by yourself.
3. Look at <http://www.zen-cart.com/forum/showthread.php?t=162847> for date corrections

> **retched:**
>
> DISREGARD THIS POST.
> 
> Evidently, this wasn't what caused the script to finally work, but something else did.

could you explain how you got it working? this will help other merchants to get it fixed. if its a code bug, we will also get it patched.
7 Sep 2010, 4:12 PM
#56
bpryor avatar

bpryor

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

Here's the solution to the problem marcopolo was trying to solve in his post and AmazonPayments gave part of the answer. This does need to be changed as it is not correct as supplied and Amazon should be doing this in their code.

The complete solution follows in the code below if you're using IOPN. If you're not you probably have to put this code where $shipping_label is being set earlier in the file.

marcopolo:

Shipping - UPS Ground - 7.43: 7.43

How can I have it only say just: UPS Ground
Shipping - UPS Ground - 7.43:
what is in bold is not needed price is populated twice one in the name colum and another is it's own colum, I ask becasue this prints on my invoices and does not look good.

AmazonPayments:

  1. You can change that value while the order in zencart system being created by createOrders method in amazonorder.php file. you can search for** $shipping_label **variable and modify it to suit your needs

In amazonorder.php you need to search for "overwrite the shipping label for IOPN".

Existing code:

/* overwrite the shipping label for IOPN*/
	  if(!isset($shipping_label)){
		$shipping_label = $data->getOrderFulfillmentShippingLabel();
	  }

Changed code:

/* overwrite the shipping label for IOPN*/
	  if(!isset($shipping_label)){
		$shipping_label = $data->getOrderFulfillmentShippingLabel();
		
		/* LBP 9-7-10 strip price off end of shipping label */
		$shipping_label = substr($shipping_label, 0, strrpos($shipping_label, '-'));
	  }

I'd also like to see the prices that are concatenated on to the shipping methods not being rounded and also have the currency symbol in front of them. I haven't looked yet to see if this code is in the plug-in so I can change it, but if not Amazon should fix it.

BTW, I am using Super Orders and everything is working correctly with Super Orders without any modifications.

7 Sep 2010, 4:30 PM
#57
bpryor avatar

bpryor

New Zenner

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

Re: Checkout by Amazon Zen Cart Plug-in

bpryor:

Here's the solution to the problem marcopolo was trying to solve

I just noticed that this only fixes this issue in the order admin in Zen Cart but does not remove it from the order confirmation e-mail to the customer. If AmazonPayments can give a clue as to where that might be so it can be changed too, that would be great.

Also, another question. I have the return URL blank and it correctly returns to my home page, but some of the time an Amazon window opens with an order confirmation and link to the order and sometimes it does not. If I have to I will make a custom return page, but I like the window opening behavior if it can be made consistent, but I'd also need access to the text of the window to modify it, which I haven't looked for yet.

Thanks.

7 Sep 2010, 7:10 PM
#58
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Checkout by Amazon Zen Cart Plug-in

Has any one got this working with Ceon URI Mapping?

If I turn URI mapping off it works great, turn it on you can complete the order but fails when amazon tries to return to your site.

Keith

7 Sep 2010, 8:05 PM
#59
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: Checkout by Amazon Zen Cart Plug-in

thanks bpryor for that fix!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14

7 Sep 2010, 8:14 PM
#60
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: Checkout by Amazon Zen Cart Plug-in

Editing an order that has tax will erase the tax from the order, any idea as to why?

I know it is not something that’s done often but since I'm testing everything it’s a issue that needs to be addressed. Logically If I give a refund to a customer the zen cart order will have to be adjusted to reflect it, so this will happen to others if they try to edit an Amazon Order. I'm using "Edit Orders" module.

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14