Re: Checkout by Amazon Zen Cart Plug-in
I'm running this with ZC 1.5.0 and it seems to work but the orders don't make it back to ZC admin because I can't figure out what the heck I'm supposed to put for Merchant URL or Integrator URL. The "What's this" text is meaningless. Can someone help out?
Re: Checkout by Amazon Zen Cart Plug-in
Hey I figured out what to put for Merchant URL and Integrator URL on my own site, and everything seems to be working well--orders are showing up in ZC admin area, etc.
So now that I have it working I'm installing it on my dad's site (not live yet) and when I try to checkout using Amazon I get this message: "We're sorry, but there's a problem with this order. Please contact the merchant directly for assistance in completing this order." I'm using Advanced Shipper by CEON--I think I remember seeing some people asking about that module upthread... could that be the problem? It's ZC 1.5.0.
Also, separate issue: on my site (I use USPS shipping plugin) Amazon checkout automatically chooses USPS Express, which is the most expensive shipping. I want it to default to the cheapest method--is there a way to do that?
Re: Checkout by Amazon Zen Cart Plug-in
The "problem with the order" issue seems to have gone away on its own, but now I have a question about managing orders.
I placed an order to test it... and it went through... but I wanted to refund it because I don't want to lose the money, obviously, nor do I want the item. I couldn't find anything in the ZC order admin area that told how to refund an order. I decided to try "delete" and it deleted the order...but I have no idea if that refunded my money or not. I can't find anything at SellerCentral either...
Re: Checkout by Amazon Zen Cart Plug-in
I have another issue--the Amazon cart/invoice/packing slip/etc doesn't list my model number. It has a space for it, but it's empty. Why isn't this being passed along? I need to know the model numbers of the items that are being purchased--it's essential.
Re: Checkout by Amazon Zen Cart Plug-in
I am still testing this by sending in test orders... of the last 3 test orders I've placed, two of them have an order date of "11/30/1999 00:00:00"... does anyone know what might cause that?
Re: Checkout by Amazon Zen Cart Plug-in
Quote:
Originally Posted by
WebKat
I am still testing this by sending in test orders... of the last 3 test orders I've placed, two of them have an order date of "11/30/1999 00:00:00"... does anyone know what might cause that?
I think the person who was developing this module has abandoned it.
Re: Checkout by Amazon Zen Cart Plug-in
I have been going back and forth trying to figure stuff out with the Amazon help people. One of the things I'm trying to do is have Amazon default to selecting the cheapest shipping option--right now it lists them in this order:
USPS - Express Mail (1 - 2 days) - 13.95
USPS - Priority Mail (2 - 3 days) - 6.2
USPS - First-Class Mail (2 - 5 days) - 2.95
And it's preselected Express Mail, the most expensive option. The message I got back from Amazon was: "They have informed us that to know how shipping rates are displaying, please refer <zencart>/checkout_by_amazon/amazoncallback.php and refer "CalculateShippingRates" method."
So I looked and found that, and here it is... but I don't know php well enough to know what to change. Can anyone help?
PHP Code:
function CalculateShippingRates($weight, $country_code,$postal_code,$weight,$country_id,$zone_id){
global $order, $shipping_weight, $shipping_num_boxes, $total_weight, $shipping, $cart;
$shipping_weight = $weight;
$total_weight = $weight;
$shipping_num_boxes = 1;
$order = new zencartorder();
$order->delivery['country']['iso_code_2'] = (string)$country_code;
$order->delivery['country']['id'] = $country_id;
$order->delivery['postcode'] = $postal_code;
$order->delivery['zone_id'] = $zone_id;
if((int)SHIPPING_ORIGIN_COUNTRY != (int)$country_id){
$this->PreDefinedRegion="WorldAll";
}else{
$this->PreDefinedRegion="USAll";
}
writelog("PreDefinedRegion -> " . $this->PreDefinedRegion);
$shipping = new shipping();
$quotes_all = $shipping->quote();
/* Setting the shipping method */
$costArray = array();
$quoteArray = array();
$cnt = 0;
for ($j = 0; $j < count($quotes_all); $j++) {
$quotes=$quotes_all[$j];
$cnt = $cnt + count($quotes['methods']);
for ($i = 0; $i < count($quotes['methods']); $i++) {
$method = $quotes['methods'][$i];
$cost = (float)$method['cost'];
$shipping_id = $method['id'];
array_push($costArray,$cost);
array_push($quoteArray, strtoupper($quotes['id']) . " - " . $method['title'] . " - " . $cost);
}
}
/* sort the cost in values */
asort($costArray);
$shippingMethodsArray = array();
$shippingMethodArray = array();
$shippingMethodsArray['ShippingMethod'] = array();
$MAX_SHIPPING_METHODS = 24;
$standard = 8;
$expedited = 15;
$oneday = 20;
$twoday = 25;
$cnt = count($costArray);
$id = 1;
if($cnt > $MAX_SHIPPING_METHODS) {
$standard = round(7 * $cnt / $MAX_SHIPPING_METHODS) + 1;
$expedited = round(7 * $cnt / $MAX_SHIPPING_METHODS) + 1 + $standard;
$oneday = round(5 * $cnt / $MAX_SHIPPING_METHODS) + 1 + $expedited;
$twoday = $cnt - ($standard + $expedited + $oneday) + 1;
}
$servicelevel = "Standard";
foreach ($costArray as $key => $cost) {
switch($id) {
case ($id < $standard):
$servicelevel = "Standard";
break;
case ($id < $expedited):
$servicelevel = "Expedited";
break;
case ($id < $oneday):
$servicelevel = "OneDay";
break;
case ($id < $twoday):
$servicelevel = "TwoDay";
break;
}
$shippingMethodArray['ShippingMethodId'] = "ship-method-" . $id;
$shippingMethodArray['ServiceLevel'] = $servicelevel;
$shippingMethodArray['Rate']['ShipmentBased']['Amount'] = $cost;
$shippingMethodArray['Rate']['ShipmentBased']['CurrencyCode'] = $this->CurrencyCode;
$shippingMethodArray['IncludedRegions']['PredefinedRegion'] = $this->PreDefinedRegion;
$shippingMethodArray['DisplayableShippingLabel'] = $quoteArray[$key];
array_push($shippingMethodsArray['ShippingMethod'],$shippingMethodArray);
$id = $id + 1;
}
if($shippingMethodsArray){
ob_writelog("Got shipping amount from shipping carrier: ", $shippingMethodsArray);
return $shippingMethodsArray;
}else{
writelog("Shipping Carrier and Shipping Override are None. Please change in Checkout by Amazon 2.0 Payment module");
}
}
Re: Checkout by Amazon Zen Cart Plug-in
Has anyone actually got this working on a UK Zen Cart site? from what I have been reading its a very flakey module :(
Re: Checkout by Amazon Zen Cart Plug-in
I couldn't get it working and it cost me a client. Though I do struggle to understand why you'd want to push people from your own site through Amazon to get ripped off with 12% charges...
But what do I know...
Re: Checkout by Amazon Zen Cart Plug-in
I thought it was something like 30cents per sale plus 2% or something--where are you getting 12% from?