-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
In Modules > Payment > Google Checkout, I see listed under "Default Values for Real Time Shipping Rates" the following two items:
Per Item International
Per Item National
But I do not seen any controls to set the defaults for these two basic shipping options
So question again: Can I not use my one manual shipping method and must I use a third party shipping provider with Google Checkout?
If third party is required, why? If not, is there any straight forward process to make Google Checkout support very basic Zen Cart shipping operation?
Woody
Woody,
Do 'Per Item International' and 'Per Item National' exist in your shipping modules?
The shipping methods listed in the includes/modules/payment/googlecheckout.php file refer to shipping methods you have defined in your Admin>Modules>Shipping configuration.
As far as the default values, I have only had to set them for third-party (USPS, UPS, Fed-Ex, etc.) domestic shipping method (Priority Mail only, in my case). Flat-rate, table, etc, and international of any kind, does not seem to need default values. I think it's only needed where rates are looked up at the 'third=party' sites.
Third-party is definitely not required for GCO.
-
Re: Google Checkout module for Zen Cart (beta)
I was not able to figure out how to apply the "zone-based per item" shipping policy using the table rates shipping module. I spent hours in attempting to do so without success. Then Kim nicely clued me as to a streamlined shipping configuration for Zen Cart which I have been utilizing for awhile now with PayPal, etc. (ZC 1.23-1.37)
For reference, the "National and International Per Item Shipping" shipping mod available in the download area replicates the exact same shipping configuration steps I've employed. See here: http://www.zen-cart.com/index.php?ma...roducts_id=334
My two normally used shipping modules listed under "Modules > Shipping" are:
* Per Item International "iteminternational" (customer sees this as "USPS Airmail")
* Per Item National "itemnational" (customer sees this as "USPS Media Mail")
USA and subzones are only supported by "itemnational" module.
All other countries and zones are only supported by "iteminternational" module
In essence these two modules are simple hybrids of the per-item module, one supporting USA/sub-zones, the other supporting all other countries/zones. (zone-item basis, not based on weight).
With this method we can generate an EXACT shipping cost right in the shop and tell the customers in plain language, before they even add items to their shopping cart, what the basic shipping costs will be. This really helps limit the wonder about ship costs and reduces the time required to submit and process an order (easy on the customer and easy on the admin).
The reason to have two separate modules is to apply different "per-item shipping" and "per-order handling" charge, depending on if in national or international zone.
National Policy: $5 for single item and $3 each add'l item
thus: Shipping Cost 3.00 & Handling Fee 2.00
International: $10 for single item and $4 each add'l item
thus Shipping Cost 4.00 & Handling Fee 6.00
Of course we can do this as all the books we ship are very close to the same weight. Except for printed docs which we don't apply shipping or handling charge and instead apply "ALWAYS FREE SHIPPING" and integrate the shipping into the product cost for these items. (but that may have to change with stamps going up...again). And of course we don't apply a shipping charge to downloads (Side-note: Linda clued me into the point that downloads don't need to be marked "ALWAYS FREE SHIPPING", they are already defined that way internally).
I digress...How to make this ship policy work with Google Checkout, that is my present journey. (I thought getting Google Checkout to work on this shop would be much much easier when I initiated this journey).
Hopefully this info will help Ropu and other Google Checkout developers understand the dire need for more robust and transparent support for basic Zen Cart shipping module configuration.
It is possible that Ropu's "Shipping Method Generator" tool was intended for my situation. But I just don't understand how to apply it. See http://demo.globant.com/~brovagnati/..._generator.php
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Woody, I turned on split page login on our site temporarily, please check it out and tell me if it's behaving the way you want it to or not with regards to googlecheckout.
-
Re: Google Checkout module for Zen Cart (beta)
This is my tpl_shopping_cart_default.php. Please not that the placement of paypal express button is personal preference. I am going to be changing this button location when we start to display shipping estimate in the shopping cart instead of using estimate button.
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=shopping_cart.<br />
* Displays shopping-cart contents
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_shopping_cart_default.php 5414 2006-12-27 07:51:03Z drbyte $
*/
?>
<div class="centerColumn" id="shoppingCartDefault">
<?php
if ($flagHasCartContents) {
?>
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div class="forward"><?php echo TEXT_VISITORS_CART; ?></div>
<?php
}
?>
<h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?>
<div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php if (!empty($totalsDisplay)) { ?>
<div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?></div>
<br class="clearBoth" />
<?php } ?>
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
<tr class="tableHeading">
<th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
<th scope="col" id="scUpdateQuantity"> </th>
<th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
<th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
<th scope="col" id="scRemoveHeading"> </th>
</tr>
<!-- Loop through all products /-->
<?php
foreach ($productArray as $product) {
?>
<tr class="<?php echo $product['rowClass']; ?>">
<td class="cartQuantity">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
}
?>
</td>
<td class="cartQuantityUpdate">
<?php
if ($product['buttonUpdate'] == '') {
echo '' ;
} else {
echo $product['buttonUpdate'];
}
?>
</td>
<td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><div id="cartImage" class="back"><?php echo $product['productsImage']; ?></div><div id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></div></a>
<br class="clearBoth" />
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="cartAttribsList">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
}
echo '</ul>';
echo '</div>';
}
?>
</td>
<td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
<td class="cartTotalDisplay"><?php echo $product['productsPrice']; ?></td>
<td class="cartRemoveItemDisplay">
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_TRASH_ALT); ?></a>
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
</table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
<br class="clearBoth" />
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
} else { // don't show update button below cart
?>
<?php
} // show checkout button
?>
<!--eof shopping cart buttons-->
</form>
<br class="clearBoth" />
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
<?php
switch (true) {
case (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1'):
?>
<div class="buttonRow back"><?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
<?php
break;
case (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2'):
/**
* load the shipping estimator code if needed
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
<?php
break;
}
?>
<?php
} else {
?>
<h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY; ?></h2>
<?php
$show_display_shopping_cart_empty = $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);
while (!$show_display_shopping_cart_empty->EOF) {
?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
<?php
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
<?php
/**
* display the Special Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
<?php
/**
* display the New Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
}
?>
<?php
$show_display_shopping_cart_empty->MoveNext();
} // !EOF
?>
<?php
}
?>
<!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
<?php // only display EC option if cart contents >0 and value >0
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True' && $_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0) {
include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php');
}
?>
<!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
</div>
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
For reference, the "National and International Per Item Shipping" shipping mod available in the download area replicates the exact same shipping configuration steps I've employed. See here:
http://www.zen-cart.com/index.php?ma...roducts_id=334
My two normally used shipping modules listed under "Modules > Shipping" are:
* Per Item International "iteminternational" (customer sees this as "USPS Airmail")
* Per Item National "itemnational" (customer sees this as "USPS Media Mail")
I digress...How to make this ship policy work with Google Checkout, that is my present journey. (I thought getting Google Checkout to work on this shop would be much much easier when I initiated this journey).
Hopefully this info will help Ropu and other Google Checkout developers understand the dire need for more robust and transparent support for basic Zen Cart shipping module configuration.
It is possible that Ropu's "Shipping Method Generator" tool was intended for my situation. But I just don't understand how to apply it. See
http://demo.globant.com/~brovagnati/..._generator.php
Woody
I would hazard a guess that you can use something like:
PHP Code:
'itemnational' => array(
'domestic_types' =>
array( 'itemnational' => 'Per Item National'
),
'international_types' =>
array(
),
),
and
PHP Code:
'iteminternational' => array(
'domestic_types' =>
array(
),
'international_types' =>
array( 'iteminternational' => 'Per Item International'
),
),
Then for your GCO display you could add:
PHP Code:
'itemnational' => 'Media Mail',
'iteminternational' => 'Air Mail',
to the
PHP Code:
$this->mc_shipping_methods_names = array(
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Woody, I turned on split page login on our site temporarily, please check it out and tell me if it's behaving the way you want it to or not with regards to googlecheckout.
Yes yours is working good. Could you be kind enough to post (and maybe shop cart template file too)... purdy please ;-)
And excellent looking shop you have.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Woody, I turned on split page login on our site temporarily, please check it out and tell me if it's behaving the way you want it to or not with regards to googlecheckout.
When testing this, please keep in mind that when you're on the split login page what you see depends on whether you have an item in shopping cart with dollar value or not. Add a free item to shopping cart versus an item that have dollar value also affects the type of login page that is displayed.
Currently, googlecheckout does not display the button on the login page if there is no dollar value in the shopping cart when split login page is enabled (even if a free item that requires shipping is added). If split login page is not enabled, then googlecheckout button is displayed but greyed out.
-
Re: Google Checkout module for Zen Cart (beta)
Wow! Great support! Thanks Issac and Chain_man!
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Yes yours is working good. Could you be kind enough to post (and maybe shop cart template file too)... purdy please ;-)
And excellent looking shop you have.
Woody
I posted my shopping cart template a few posts above. Please keep in mind that the template I posted above is the one online right now. I actually I have three different versions. One that places PayPal button before googlecheckout button, one that places paypal button after the shipping estimator button and one that places paypal button after googlecheckout but before shipping estimator button which for when we are displaying the shipping estimates directly in the shopping cart.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Wow! Great support! Thanks Issac and Chain_man!
Woody
Just a little payback...
-
Re: Google Checkout module for Zen Cart (beta)
Isaac you beat posting your template before I could even ask ;-)
And Chain_man, appreciate the shipping configuration info.
I'm finally coming out of the fog now and think I have a clear map in front of me.
If I was a bettin' man I would think getting this payment mod up and running before hitting post #2000 is a distinct possibility ;-)
Thanks again,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Here's my tpl_checkout_payment_default.php
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=checkout_payment.<br />
* Displays the allowed payment modules, for selection by customer.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_checkout_payment_default.php 4332 2006-09-01 04:33:16Z ajeh $
* modified for both GoogleCheckout and PayPal Express checkout
*/
?>
<?php echo $payment_modules->javascript_validation(); ?>
<div class="centerColumn" id="checkoutPayment">
<?php echo zen_draw_form('checkout_payment', zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', ($flagOnSubmit ? 'onsubmit="return check_form();"' : '')); ?>
<h1 id="checkoutPaymentHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('redemptions') > 0) echo $messageStack->output('redemptions'); ?>
<?php if ($messageStack->size('checkout') > 0) echo $messageStack->output('checkout'); ?>
<?php if ($messageStack->size('checkout_payment') > 0) echo $messageStack->output('checkout_payment'); ?>
<?php
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_CONDITIONS; ?></legend>
<div><?php echo TEXT_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('conditions', '1', false, 'id="conditions"');?>
<label class="checkboxLabel" for="conditions"><?php echo TEXT_CONDITIONS_CONFIRM; ?></label>
</fieldset>
<?php
}
?>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
if (!$payment_modules->in_special_checkout()) {
// ** END PAYPAL EXPRESS CHECKOUT ** ?>
<h2 id="checkoutPaymentHeadingAddress"><?php echo TITLE_BILLING_ADDRESS; ?></h2>
<div id="checkoutBillto" class="floatingBox back">
<?php if (MAX_ADDRESS_BOOK_ENTRIES >= 2) { ?>
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>
<?php } ?>
<address><?php echo zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'); ?></address>
</div>
<div class="floatingBox important forward"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?></div>
<br class="clearBoth" />
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
}
// ** END PAYPAL EXPRESS CHECKOUT ** ?>
<fieldset id="checkoutOrderTotals">
<legend id="checkoutPaymentHeadingTotal"><?php echo TEXT_YOUR_TOTAL; ?></legend>
<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
?>
<?php $order_total_modules->output(); ?>
<?php
}
?>
</fieldset>
<?php
$selection = $order_total_modules->credit_selection();
if (sizeof($selection)>0) {
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
if ($_GET['credit_class_error_code'] == $selection[$i]['id']) {
?>
<div class="messageStackError"><?php echo zen_output_string_protected($_GET['credit_class_error']); ?></div>
<?php
}
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<fieldset>
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</fieldset>
<?php
}
}
?>
<?php
}
?>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
if (!$payment_modules->in_special_checkout()) {
// ** END PAYPAL EXPRESS CHECKOUT ** ?>
<fieldset>
<legend><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></legend>
<?php
if (SHOW_ACCEPTED_CREDIT_CARDS != '0') {
?>
<?php
if (SHOW_ACCEPTED_CREDIT_CARDS == '1') {
echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled();
}
if (SHOW_ACCEPTED_CREDIT_CARDS == '2') {
echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled('IMAGE_');
}
?>
<br class="clearBoth" />
<?php } ?>
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
?>
<p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
<?php
} elseif (sizeof($selection) == 0) {
?>
<p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?></p>
<?php
}
?>
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
// GoogleCheckout modification
if($selection[$i]['id'] == "googlecheckout")
continue;
// End GoogleCheckout mod
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
<?php
if (MODULE_ORDER_TOTAL_COD_STATUS == 'true' and $selection[$i]['id'] == 'cod') {
?>
<div class="alert"><?php echo TEXT_INFO_COD_FEES; ?></div>
<?php
} else {
// echo 'WRONG ' . $selection[$i]['id'];
?>
<?php
}
?>
<br class="clearBoth" />
<?php
if (isset($selection[$i]['error'])) {
?>
<div><?php echo $selection[$i]['error']; ?></div>
<?php
} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
?>
<div class="ccinfo">
<?php
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<label <?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : ''); ?>class="inputLabelPayment"><?php echo $selection[$i]['fields'][$j]['title']; ?></label><?php echo $selection[$i]['fields'][$j]['field']; ?>
<br class="clearBoth" />
<?php
}
?>
</div>
<br class="clearBoth" />
<?php
}
$radio_buttons++;
?>
<br class="clearBoth" />
<?php
}
?>
</fieldset>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
} else {
?><input type="hidden" name="payment" value="<?php echo $_SESSION['payment']; ?>" /><?php
}
// ** END PAYPAL EXPRESS CHECKOUT ** ?>
<fieldset>
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE_CHECKOUT, BUTTON_CONTINUE_ALT, 'onclick="submitFunction('.zen_user_has_gv_account($_SESSION['customer_id']).','.$order->info['total'].')"'); ?></div>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
</form>
</div>
-
Re: Google Checkout module for Zen Cart (beta)
And my tpl_shopping_cart_default.php:
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=shopping_cart.<br />
* Displays shopping-cart contents
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_shopping_cart_default.php 5414 2006-12-27 07:51:03Z drbyte $
*
* modified for both GoogleCheckout and PayPal Express checkout
*/
?>
<div class="centerColumn" id="shoppingCartDefault">
<?php
if ($flagHasCartContents) {
?>
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div class="forward"><?php echo TEXT_VISITORS_CART; ?></div>
<?php
}
?>
<h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?>
<div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php if (!empty($totalsDisplay)) { ?>
<div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?></div>
<br class="clearBoth" />
<?php } ?>
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
<tr class="tableHeading">
<th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th>
<th scope="col" id="scUpdateQuantity"> </th>
<th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th>
<th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
<th scope="col" id="scRemoveHeading"> </th>
</tr>
<!-- Loop through all products /-->
<?php
foreach ($productArray as $product) {
?>
<tr class="<?php echo $product['rowClass']; ?>">
<td class="cartQuantity">
<?php
if ($product['flagShowFixedQuantity']) {
echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
} else {
echo $product['quantityField'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];
}
?>
</td>
<td class="cartQuantityUpdate">
<?php
if ($product['buttonUpdate'] == '') {
echo '' ;
} else {
echo $product['buttonUpdate'];
}
?>
</td>
<td class="cartProductDisplay">
<a href="<?php echo $product['linkProductsName']; ?>"><div id="cartImage" class="back"><?php echo $product['productsImage']; ?></div><div id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></div></a>
<br class="clearBoth" />
<?php
echo $product['attributeHiddenField'];
if (isset($product['attributes']) && is_array($product['attributes'])) {
echo '<div class="cartAttribsList">';
echo '<ul>';
reset($product['attributes']);
foreach ($product['attributes'] as $option => $value) {
?>
<li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li>
<?php
}
echo '</ul>';
echo '</div>';
}
?>
</td>
<td class="cartUnitDisplay"><?php echo $product['productsPriceEach']; ?></td>
<td class="cartTotalDisplay"><?php echo $product['productsPrice']; ?></td>
<td class="cartRemoveItemDisplay">
<?php
if ($product['buttonDelete']) {
?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_TRASH_ALT); ?></a>
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
</table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
<br class="clearBoth" />
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
<?php
// show update cart button
if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) {
?>
<div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div>
<?php
} else { // don't show update button below cart
?>
<?php
} // show checkout button
?>
<!--eof shopping cart buttons-->
</form>
<br class="clearBoth" />
<?php
switch (true) {
case (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1'):
?>
<div class="buttonRow back"><?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SHIPPING_ESTIMATOR) . '\')">' .
zen_image_button(BUTTON_IMAGE_SHIPPING_ESTIMATOR, BUTTON_SHIPPING_ESTIMATOR_ALT) . '</a>'; ?></div>
<?php
break;
case (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2'):
/**
* load the shipping estimator code if needed
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
<?php
break;
}
?>
<?php
} else {
?>
<h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY; ?></h2>
<?php
$show_display_shopping_cart_empty = $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);
while (!$show_display_shopping_cart_empty->EOF) {
?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>
<?php
/**
* display the Featured Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>
<?php
/**
* display the Special Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>
<?php
/**
* display the New Products Center Box
*/
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>
<?php
if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS));
}
?>
<?php
$show_display_shopping_cart_empty->MoveNext();
} // !EOF
?>
<?php
}
?>
<!-- ** BEGIN PAYPAL EXPRESS CHECKOUT ** -->
<?php // only display EC option if cart contents >0 and value >0
if (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True' && $_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0) {
include(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php');
}
?>
<!-- ** END PAYPAL EXPRESS CHECKOUT ** -->
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
</div>
-
Re: Google Checkout module for Zen Cart (beta)
And my tpl_login_default.php:
PHP Code:
<?php
/**
* Page Template
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_login_default.php 5419 2006-12-28 05:56:39Z drbyte $
*
* Modified for both GoogleCheckout and PayPal Express checkout
*/
?>
<div class="centerColumn" id="loginDefault">
<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
<?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
<!--BOF PPEC split login- DO NOT REMOVE-->
<fieldset class="floatingBox back">
<legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
<?php if ($ec_button_enabled) { ?>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
<div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
<hr />
<?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_DIVIDER; ?>
<?php } ?>
<?php // ** END PAYPAL EXPRESS CHECKOUT ** ?>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_POST_INTRODUCTION_SPLIT; ?></div>
<?php echo zen_draw_form('create', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CREATE_ACCOUNT, BUTTON_CREATE_ACCOUNT_ALT); ?></div>
</form>
</fieldset>
<fieldset class="floatingBox forward">
<legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
<div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div>
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', 'size="18" id="login-password"'); ?>
<br class="clearBoth" />
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</form>
</fieldset>
<br class="clearBoth" />
<!--EOF PPEC split login- DO NOT REMOVE-->
<?php } else { ?>
<!--BOF normal login-->
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div class="advisory"><?php echo TEXT_VISITORS_CART; ?></div>
<?php
}
?>
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<fieldset>
<legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
<br class="clearBoth" />
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</form>
<br class="clearBoth" />
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
</form>
<!--EOF normal login-->
<?php } ?>
</div>
-
Re: Google Checkout module for Zen Cart (beta)
I've posted my 3 modified template files in the posts above for all to use. There are only minimal modifications to accommodate both GoogleCheckout and PayPal Express checkout.
These are zencart 1.3.7 version base files.
-
Re: Google Checkout module for Zen Cart (beta)
Hi Everyone,
Google has been working fine but recently (last few days) I have gotten a few "bad signature" type notices. I'm not sure what to do with these. When I click to find out more it shows me the whole xml cart that we sent them, and then a little xml they sent... not sure what to do with this.
Help appreciated. Thank you.
-
Re: Google Checkout module for Zen Cart (beta)
1. Regards to editing /modules/payment/googlecheckout.php
a. Made the edits as "hinted" by Doug for me to try out in this post:
http://www.zen-cart.com/forum/showpo...postcount=1006
Inserting code into both mc_ array lists:
mc_shipping_methods = array()
mc_shipping_methods_names = array()
b. After the edits above I observed in Modules > Payment > Google Checkout configuration under "Default Values for Real Time Shipping Rates":
Quote:
Per Item International
Per Item National
0 Per Item National
And noted a new form field adjacent to "Per Item National" with the number 0 displayed. But I have no idea as to it's function ;-). But there was no corresponding form field for "Per Item International". Strange, huh?
c. I then submitted another order to Google Checkout and observed same error as previous.
Code:
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
2. So for "testing" purposes I altered edited code in googlecheckout.php to:
Code:
'itemnational' => array(
'domestic_types' =>
array(
'itemnational' => 'Per Item National'
),
'international_types' =>
array(
'itemnational' => 'Per Item National'
),
),
'iteminternational' => array(
'domestic_types' =>
array(
'iteminternational' => 'Per Item International'
),
'international_types' =>
array(
'iteminternational' => 'Per Item International'
),
)
Note I added a domestic and international type for each array entry. Probably not correct but thinking maybe nothing in each array might be a problem and wanted to observe the effect of changing (won't hurt testing, afte all I'm playing in the sandbox).
And left in the following previously inserted code in mc_shipping_methods_names = array()
Code:
'itemnational' => 'Media Mail',
'iteminternational' => 'Air Mail',
And after making the above edits, I uninstalled the payment module and then reinstalled. I then observed under "Default Values for Real Time Shipping Rates" one form field for each of the following entry:
Quote:
iteminternationaliteminternational_VD:0,
itemnationalitemnational_VD:0
Not sure what the _VD:0 indicates.
And each form field displayed the numeral zero by default. Again I do not understand what this value represents.
And quite certain this config is not correct.
And to test the theory I then added an item to my shopping cart and submitted order to Google Checkout. But same error as previous.
Code:
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
So still at a loss on how to edit googlecheckout.php to match my needs. And I think this exercise might be barking up the wrong tree? (see points 6 and 7 below).
3. I have only three shipping modules installed:
- freeshipper
- iteminternational
- itemnational
4. Previously I did not have to worry about the sort order for the three ship modules. All were set for sort order 0 and everything still worked. But just in case I applied sort order of 3 to freeshipper and 1 and 2 to the other two respectively. Not sure if this makes any diff?
5. As a follow-up to Doug's question. In googlecheckout.php I do not observe any 'extra' FREE SHIPPING array entries in the mc_shipping_methods array. I do see one 'freeshipper' and one 'freeoptions'. Same observation applies to mc_shipping_methods_names array.
Related question: What does mc_ represent in the two array names?
6. And following up on something else Doug mentioned, editing the mc_ array code in googlecheckout.php may not be required in my situation since I'm not connecting to any third party shipper and thus no need for "real time shipping rates"?
7. However further down in googlecheckout.php I observe some commented out function code that I'm thinking now applies to my situation.
function getShippingType()
function getShippingPrice()
I have to think about this more thoroughly. And still need to follow-up on a more recent shipping configuration suggestion from Isaac.
Appreciate all the contributed ideas thus far. Keep 'em coming :wink2:
Thanks,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
OK I used Ropu's Shipping Generator to generate the following:
Code:
$this->mc_shipping_methods = array(
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
'freeshipper' => 'Free Shipper intl'
),
),
'itemnational' => array(
'domestic_types' =>
array(
'itemnational' => 'Per Item National'
),
'international_types' =>
array(
),
),
'iteminternational' => array(
'domestic_types' =>
array(
),
'international_types' =>
array(
'iteminternational' => 'Per Item International'
),
),
);
$this->mc_shipping_methods_names = array(
'freeshipper' => 'Free Shipper',
'itemnational' => 'USPS Media Mail',
'iteminternational' => 'USPS Air Mail',
);
And then I inserted into googlecheckout.php
(I think this is the same code as Doug previously offered up).
But still same error when submitting order:
Code:
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
I'm stumped.
I should add that no errors are showing up in response_error.log
But I figured out the answer to one of my previous trivia questions:
mc = merchant calculated
Doh! Now only if I could answer some of the more important questions. Such as where do I go from here? And why doe this mod not want to work for me?
Woody
-
Re: Google Checkout module for Zen Cart (beta)
For testing purposes I removed the 'freeshipper' references from both arrays. So the only references in the two arrays were 'itemnational' and 'iteminternational'.
Then I submitted an order. This time the order went through!
After logging into Google Checkout server with the buyers sandbox account, I observed 'itemnational' was the only ship method displayed in the shipping dropdown.
The amount of time for the shipping dropdown to render in the browser was unexpectedly long, and I almost clicked on the submit order button before the shipping dropdown was displayed...not sure of the effect had I done so.
So far, so fair.
However the shipping amount displayed in the dropdown and added to the total was $0.00. Should have been $5.
Also the dropdown did not display "USPS Media Mail" label as expected. Likely need to tweak my array configuration to solve this last one.
But the $0 shipping amount, and having to remove 'freeshipper', and the performance issues are problems.
And as always your ideas are welcome.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
And I was not get auto redirected back to the shop website as expected. Had to click the "Return to Shopping Center" link.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
For testing purposes I removed the 'freeshipper' references from both arrays. So the only references in the two arrays were 'itemnational' and 'iteminternational'.
Then I submitted an order. This time the order went through!
After logging into Google Checkout server with the buyers sandbox account, I observed 'itemnational' was the only ship method displayed in the shipping dropdown.
The amount of time for the shipping dropdown to render in the browser was unexpectedly long, and I almost clicked on the submit order button before the shipping dropdown was displayed...not sure of the effect had I done so.
So far, so fair.
However the shipping amount displayed in the dropdown and added to the total was $0.00. Should have been $5.
Also the dropdown did not display "USPS Media Mail" label as expected. Likely need to tweak my array configuration to solve this last one.
But the $0 shipping amount, and having to remove 'freeshipper', and the performance issues are problems.
And as always your ideas are welcome.
Woody
The $0 shipping was probably the default value you have in your GCO Admin module. It was probably displayed because the connection timed out - as indicated by the long rendering time. That's what the default value is for. I think you indicated in a previous post that you had a place to enter a default value for itemnational while editing the GCO module in admin. I think that the dropdown display not showing "USPS Media Mail" is for the same reason. On mine it pulls that label from the mc_shipping_methods_names = array.
The display of only itemnational is logical as the test account you used most likely has a US address. Offering international shipping would not make sense.
I wonder if your duplicate free shipping was because the names you used in the domestic portion and the international portion of the freeshipper array were the same? ie: the 'freeshipper' => entries.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
And I was not get auto redirected back to the shop website as expected. Had to click the "Return to Shopping Center" link.
Woody
I have the same action. I think it might be the normal behavior. Or it might be because it was the sandbox and not production...?
-
Re: Google Checkout module for Zen Cart (beta)
Woody,
Please list the shipping options that you'd like to offer that you currently have installed in admin-module-shipping. Please indicate if the shipping module is stock or a contribution installed.
I will test them for you on my end. I think you array is messed up the way it is constructed.
Isaac.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
The $0 shipping was probably the default value you have in your GCO Admin module. It was probably displayed because the connection timed out - as indicated by the long rendering time. That's what the default value is for. I think you indicated in a previous post that you had a place to enter a default value for itemnational while editing the GCO module in admin. I think that the dropdown display not showing "USPS Media Mail" is for the same reason. On mine it pulls that label from the mc_shipping_methods_names = array.
After I edited the array files to what was proposed by the shipping generator and also to match your previous post, and then removed freeshipper, no form field with a numeral zero or otherwise appeared adjacent to itemnational in the mod admin within Zen cart.
Quote:
Originally Posted by
chain_man
The display of only itemnational is logical as the test account you used most likely has a US address. Offering international shipping would not make sense.
Of course ;-) That was one thing that worked correctly. Thought I emphasized that.
Quote:
Originally Posted by
chain_man
I wonder if your duplicate free shipping was because the names you used in the domestic portion and the international portion of the freeshipper array were the same? ie: the 'freeshipper' => entries.
That's how freeshipper is configured in the stoick googglecheckout.php file and how the shipping gnerator output looked also. And most other arrays use the duplicate names for both the domestic and international types. And Zen Cart only knows the shipping mod name by 'freeshipper' as it is a shipping mod installed in Zen Cart by default, you should have it too, unless you uninstalled. Either way I need freeshipping to both national and international folks.
This kind of configuration stuff is very difficult to describe via the forum.
Thanks for all ideas,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Please list the shipping options that you'd like to offer that you currently have installed in admin-module-shipping. Please indicate if the shipping module is stock or a contribution installed.
I will test them for you on my end. I think you array is messed up the way it is constructed.
Quote:
Originally Posted by
Woodymon
3. I have only three shipping modules installed:
- freeshipper
- iteminternational
- itemnational
Those are the three I have and want installed. The first is a Zen Cart default. The other two are the same as from the mod below.
Quote:
Originally Posted by
Woodymon
Thanks for testing,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
I have the same action. I think it might be the normal behavior. Or it might be because it was the sandbox and not production...?
Doug, How does it behave in your production shop? Well I guess you would need to order something from yourself to test.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Further on up in googlecehckout.php ln 50-53
Code:
$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->ship_flat_ui = "Standard flat-rate shipping";
Maybe I need to edit these entries also?
Woody
-
Re: Google Checkout module for Zen Cart (beta)
How do you test Google Checkout international shipping? Does Google allow you to set-up a second Buyers sandbox account, using a fictional foreign address? Maybe a question for Google support but wondering how you all do it.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Has anyone been able to get international (USPS) shipping options working?
I want GC to be an option for my international customers.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Further on up in googlecehckout.php ln 50-53
Code:
$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
Maybe I need to edit these entries also?
Follow-up: I removed 'freeshipper' from the two array lists above and kept 'freeshipper' in the two mc_ arrays. And resumitted an order. Same error as before.
Code:
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
What we need is very clear step-by-step instructions/documentation on how to support a 'custom' shipping module. Since 'flexible' shipping module support is very new to the Google Checkout module, and the code framework is still being revised, I can understand why documentation takes second priority. But on the other hand how can we test if there is no documented procedures to follow? A paradigm if you will.
Maybe provide a clear step-by-step example for one or two shipping modules only. A good candidate for an example are the basic itemnational/iteminternational ship modules which I'm trying make work nice with Google Checkout :wink2:
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Doug, How does it behave in your production shop? Well I guess you would need to order something from yourself to test.
Woody
You're right...it's hard to test without buying something. Whatever the behavior, I would guess it's part of the Google end of things rather than the zen part.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Maybe provide a clear step-by-step example for one or two shipping modules only. A good candidate for an example are the basic itemnational/iteminternational ship modules which I'm trying make work nice with Google Checkout :wink2:
Woody
What an amazing coincidence!!
Quote:
Originally Posted by
Woodymon
Further on up in googlecehckout.php ln 50-53
Code:
$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'freeshipper', 'perweightunit', 'storepickup');
$this->ship_flat_ui = "Standard flat-rate shipping";Maybe I need to edit these entries also?
I don't know quite how these settings work. May ropu can enlighten us after he recovers from his holiday...
-
Re: Google Checkout module for Zen Cart (beta)
While continuing to troubleshoot my Google Checkout shipping config issues, I am also observing some peculiar order processing behaviors in ZC admin.
1. When I attempted to submit an order status "update" via ZC admin, with standard boilerplate text entered into the order comments box, and clicked the "update" button I observed error:
Code:
Error 400: Bad request. The parameters passed to the service did not match as expected. The exact error is returned in the XML response.
When I inserted a very brief three word comment the update submitted correctly.
I observe no errors in response_error.log.
However I observe in response_message.log
Code:
Messages cannot be longer than 255 characters.
Why the limitation?
My same boilerplate test works with other payment modules including PayPal.
2. The original order submission email was delivered to admin email address and to customer email address.
However the order "update" email message was not delivered to the admin address, only to the customer email address. I had both the 'Notify Customer" and "Append Comments' checkboxes checked. (copies of the order update emails should be delivered to admin address as well as to the customer, or at least an option provided to enable/disable delivery of order updates to admin email).
3. "Shipper Tracking Information" form field with tracking number and shipper type dropdown displays at bottom of orders page, even though not employing third party or MC type shipping. Would like to be able to disable the display of this info on admin orders form (so helpers won't get confused).
4. ALL Google Checkout server responses are displayed in the comments column. This info is accessible to customers via their MyAccount link (that is if they had a password initialized for them to allow them to log into Zen Cart). Thinking best if much of this info is displayed on the admin orders page (like PayPal IPN does) and not accessible to customer.
5. On a related note if no shipping tracking info is submitted in order status update this is info is indicated in server response comments.
Code:
04/03/2007 12:23:17 True Shipped
Shipping Tracking Data:
Carrier:
Tracking Number:
Would like option to be able to disable inclusion of this info in the server response messages/comments. We will manually include tracking info in order status update comments as needed.
6. Also the time in message above indicates time for web hosting provider. When possible would prefer time based on timezone location of shop be applied. Otherwise all the various order update comments get out of synch in listing on admin orders page. I will provide more detailed observations on this later.
7. What happens if customer creates a ZC account. And then later checks out though Google Checkout (not logged into ZC) and submits an order thru GC using the same email address which was used to register ZC account?
Is a second ZC account with that same email addy created in ZC admin? Will customer whom created the ZC account be able to login to ZC and view the details of the GC order?
And then vice versa, if no ZC account is created, customer submits order thru GC. This auto creates a ZC account (but customer would not have a password). and then later attempts to sign up for ZC account. Does the customer see a message that an account with that email addy already exists? Can i click password forgotten link on login page to retrieve a password for an account created by GC? What are the validation issues and what should be expected behaviors here?
8. If customer is logged into ZC account and clicks "Checkout" in main menu, browser is directed to step one page of standard ZC checkout procedure. That means they will miss opportunity to checkout via Google Checkout.
Just some casual observations. Even if GC is only suppose to be an "Express" checkout option for ZC, there are many interaction possibilities (permutations) between Zen Cart and Google Checkout to think about. Wrapping one's head around all the code and logic needed to deal with the possibilities must be mind numbing. I'm sure Ropu can infom us in detail.
Suggestions or comments on the above?
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Can someone help me out here? I thought I had everything working, but I just encountered a problem.
I believe this is related to installing the GC module, as I wasn't having this problem before installing it.
If going through the regular checkout process, on the second step I get this error:
Parse error: syntax error, unexpected T_ELSE in /includes/templates/classic/templates/tpl_checkout_payment_default.php on line 147
This is what I have in that part of the file
PHP Code:
<?php
if (sizeof($selection) > 1) {
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
And this is what the original ZC stock file has
PHP Code:
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
I really don't see what the problem is. However, when comparing the file to that posted here by chain_man, I see his doesn't have this line:
Do I need to delete this line?
Thanks.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
apinkpony11
Hi Everyone,
Google has been working fine but recently (last few days) I have gotten a few "bad signature" type notices. I'm not sure what to do with these. When I click to find out more it shows me the whole xml cart that we sent them, and then a little xml they sent... not sure what to do with this.
Help appreciated. Thank you.
Don't let the little guy get left in the dust!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
apinkpony11
Don't let the little guy get left in the dust!
Ropu is on vacation until next week. I'm suspecting your issue is not something specific to the ZC mod but to Google Checkout service (but don't take my word for it as I don't know much).
Are you seeing any relevant entries in either your response_error.log or response_message.log?
I don''t recommend posting the info in your logs as they can contain personal info. But if you do post relevant sections, be sure to "obfuscate" first.
You might want to try posting in Google Checkout support forums on Google Groups (see below). Also contact Google support directly.
Link is in your Sellers account help area. Also here:
http://checkout.google.com/support/sell/bin/request.py
(then select "Technical issues and integrating with Google Checkout")
Merchant Help Center
http://checkout.google.com/support/sell/
Merchant Forum
http://groups.google.com/group/googl...erchants-forum
Developers Forum
http://groups.google.com/group/googl...velopers-forum
(until ropu returns from holiday, posting in the last forum above may be your best bet.)
And as an extra bonus there is the "official" Google Checkout Blog
http://googlecheckout.##########################/
Good luck.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
If going through the regular checkout process, on the second step I get this error:
Below is what I'm using for that relevant portion of code and works fine:
Code:
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
// ** BOF Google Checkout **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** EOF Google Checkout **
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Hi, I've been asking in this thread about supporting "instant downloads". The responses I've received have appeared to indicate that Google Checkout does not support instant downloads
However I've been scanning through the Google Checkout forums for ideas, tips, solutions and workarounds. On the Merchants discussion forum I found this Q&A:
Quote:
Subject: How can I redirect?
Question: How can I redirect a buyer to a download page right after receiving a payment?
Answer: You have to use the XML API and use the <continue-shopping-url> tag.
So this appears to indicate Google Checkout supports "instant downloads", does it not?.
Ropu, I know you have much on your plate with supporting other Zen Cart/Google Checkout features. But is "instant downloads" support something you plan to eventually (soon) integrate into your mod? If you need a tester for such functionality please let me know.
Thanks,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
If you desire and request a feature in the Google Checkout for Zen Cart mod, sometimes it's good to know if such functionality is supported by Google Checkout.
Here's a posting board with the latest "wishlist".
New Feature Suggestions for Google Checkout
http://groups.google.com/group/googl...oogle-checkout
Note the URL is a long one...
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Below is what I'm using for that relevant portion of code and works fine:
Code:
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
// ** BOF Google Checkout **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** EOF Google Checkout **
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
Woody
Thanks :), that works too.
-
Re: Google Checkout module for Zen Cart (beta)
I am trying to get the button that says $10 on it to show up on my sites. I have Google checkout set up, but when I go to my Google account I only see sandbox. I do have customers who have bought from me and I am able to access Google checkout via the link from their purchase. Do I have it set up right?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
BlessIsaacola, how do you get the $10 bonus showing up on your GoogleCheckout button? Mine shows the regular button.
Quote:
Originally Posted by
BlessIsaacola
Are you using your production merchant account or sandbox? You need your production merchant account for the promo button to work.
Quote:
Originally Posted by
chain_man
It appears that the button style is determined by your merchant account. I have the exact same URL for my button as does BlessIsaacola (except for the merchant number) and my button does not display the $10 off style button.
BlessIsaacola, did you have to sign up with Google for any special promotions?
Here's an answer.
http://groups.google.com/group/googl...019e1e5c8ac29e
And ropu you are suppose to be on a one-week holiday. Not just a vacation from the Zen Cart community :wink2:
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ctcentralinfo
I am trying to get the button that says $10 on it to show up on my sites.
See post above. And only applies to production account.
Quote:
Originally Posted by
ctcentralinfo
I have Google checkout set up, but when I go to my Google account I only see sandbox.I do have customers who have bought from me and I am able to access Google checkout via the link from their purchase. Do I have it set up right?
It must be set-up for you to access real "live" purchase info. You have TWO "Sellers" accounts, one is the Live/Production account and one is the Sandbox account (for testing).
Login URL's are:
Sellers Sandbox: https://sandbox.google.com/checkout/sell
Sellers Live Account: http://checkout.google.com/sell
Hope this helps,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Woody,
Thanks for posting this. I didn't actually know that there are requirements but judging from the link you posted I can see why we are listed now. I just noticed that we are listed here as well http://www.google.com/checkout/m.html I am definitely glad to see us there. Interestingly enough, I looked in our log for this year for referrers and now I understand why 70% of our customers have chosen google checkout (because they came from that page).
By the way, sorry Woody I was unable to test for you today. One of our computer hard-drive crashed and I was doing data recovery before Dell shows up to replace it.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
I didn't actually know that there are requirements but judging from the link you posted I can see why we are listed now.
So it sounds like you did not request to have promotion and Google did not contact you? So they must be scanning sites on the lookout for sites that meet their "Buyers Experience" criteria and unilaterally applying the discount. It's great they are going your customers nice promotion but I would have thought they would have at the very least sent you a "courtesy" message indicating they have applied the promotion to your shop. next thing they will do is give away all your products for free without you knowing it :wink2:
Quote:
Originally Posted by
BlessIsaacola
II just noticed that we are listed here as well
http://www.google.com/checkout/m.html I am definitely glad to see us there. Interestingly enough, I looked in our log for this year for referrers and now I understand why 70% of our customers have chosen google checkout (because they came from that page).
Good info. And good to see that Google Checkout is working out well for you. Hopefully me too soon :wink2:
Quote:
Originally Posted by
BlessIsaacola
By the way, sorry Woody I was unable to test for you today. One of our computer hard-drive crashed and I was doing data recovery before Dell shows up to replace it.
Hope you get your system back up an running quickly. I now use Acronis True Image to image my personal workstation hard drives once a week (also an Enterprise version is available). I've had too much down time due to past disk failures. TI has saved me much time and frustration when HD's go down.
And no sweat about testing my shipping configuration. If you have the opportunity tand time hen cool. But if not don't worry about it. I'm doing much reading/digesting of material on the the Dev and API Forums and peaking in at OSC GC integration forum. As Doug stated shipping is number one GC integration issue.
GC is still Beta, and the API is still maturing, but overall is getting better.
Ropu is doing a great job with the integration effort, but there is still much work that needs done before Google Checkout competes with PayPal payment products (from both buyer and seller perspective and also in regards to shop cart integration). Thinking the free discount fees for this year, and the buyer promotions are not only a method to hopefully and quickly gain market share, but also a gesture/thanks for putting up with the ongoing Level 2 integration issues and for being a beta tester.
I've yet to compare Google Checkout integration with PayPal Express integration. After I get Google Checkout working half-way decently on ZC, testing PPE on ZC will be my next journey.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Regards to emails sent by Google Checkout to (both Buyer & Seller/admin). We do all our email in text (not HTML). The text email messages we receive back from Google Checkout are not well formatted messages and very difficult to read.
1. Adding simple line breaks to the email template would fix most of the text formatting issues.
2. Could the "From" and Reply-To email address for the messages sent out by Google be configured with our shop (sellers) email address? And then allow customers to respond to the email message. Stating "Please do not reply to this message." is VERY BAD customer service and will turn off our customers!!!
3. Also at the bottom of message I observe: "Have questions about this order? Contact SellerName".
Besides the SellerName it would also be good to include the sellers email address.
4. On the test "buyers" shipping status message which I received, I observe the address under "Purchased From" is only half correct. That is only street number but not the street name is included. (might be a problem with my account set-up at Google, will check into it).
5. Need a location for the buyer to enter "Attn To:" when submitting order, and then if entered by customer, display Attn To: within the "Ship to:: address.
6. Ability to remove "Shipping Tracking line" in the email message.
7. Method to include Shop (Zen Cart) order number as well as Google Order number.
8. Shipping Status label and the word Shipped are not adjacent to each other.
9. Itemize each ordered product on it's own item line (item qty, item price, total amt for the line).
Then a dashed line (separator)
Then a SUBTOTAL line.
Then a S&H line.
Then a Tax line (if applies...keep in mind some locales charge S&H before tax, others after tax).
Then a dashed line (separator)
Then the TOTAL line (Emphasize IN CAPS).
10. Remove "(includes Tax (State) $0.00)" from Total line and move to under SubTotal as above. And for locales that don't apply tax, remove Tax line altogether.
11. In email to buyers, add a URL link to Buyers Account login, adjacent to "Check the status of this order anytime in your Google Account".
12. Best to look at how Zen Cart formats customer and admin email messages (for both HTML and text formats). And check out how PayPal IPN does it and emulate. no need to reinvent the wheel here.
Below I've ADDED line breaks and improved formatting of the Order "Status" change email message which Buyers currently receive. Hopefully similar formatting can be incorporated into future GC ZC integration:
Purchased from:
FNAME LNAME
Street Address
City ST POSTALCODE
COUNTRY
Ship to:
FNAME LNAME
Street Address
City ST POSTALCODE
COUNTRY
Hello FNAME,
Great news! Your order has shipped, and should arrive soon. Your credit card has successfully been charged for this order.
Track USPS package #n/a
Order Details - DATE - TIME TZ-00:00
Google Order #123456789012345
Shipping Status:
Qty Item Price <<<< This line is out of sequence and needs moved down!!!!
Shipped
ITEM_QTY ITEM_NAME $ITEM_PRICE
Shipping & Handling (Shipping Method) : $SHIP_AMT
Total: $TOTAL_AMT (includes Tax (Zone) $TAX_AMT)
Check the status of this order anytime in your Google Account.
Have questions about this order? Contact SELLER_NAME
Need help? Visit the Google Checkout help center. Please do not reply to this message. ©2007 Google
--
Thanks,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
It's great they are going your customers nice promotion but I would have thought they would have at the very least sent you a "courtesy" message indicating they have applied the promotion to your shop. next thing they will do is give away all your products for free without you knowing it .Woody
Woody,
Google is paying the customer the $10. It doesn't cost us a dime. The customer checkout from our site and if they qualify, they get free $10 from Google. It was supposed to expire 3/31/07 but Google extended it to 5/15/07. Google should keep the promotion through 12/26/07 :cool:
We haven't let the limitation of this mod stop us from using it. We use manual process and online notification or email to deal with its limitation. It's not ideal but it appears that our customers are willing to put up with some of the nuances for free $10 from Google :)
Google Checkout is definitely not even close to being "there yet" but it has made a significant difference to our business. Usually January is a slow month for us but this year because of Google promotion, we had the best January ever.
Please send me via PM information about mitigating drive crashes that you mentioned. We do daily backups but definitely not everything we should back up so I am tighting things up a bit.
I think I am going to take a break a bit from "technology" my head is spinning.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Google is paying the customer the $10. It doesn't cost us a dime.
Of course and well understood. ;-)
The point I was making (or trying to make with a little humour) is Google added a significant feature to your service without any notification. Or at least it sounded like you were not informed.
Yes, please take a break for me too! I have too much more work to do before I get (deserve) hoilday.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Of course and well understood. ;-)
The point I was making (or trying to make with a little humour) is Google added a significant feature to your service without any notification. Or at least it sounded like you were not informed.
Yes, please take a break for me too! I have too much more work to do before I get (deserve) hoilday.
Woody
Ah I see your point! But honestly I don't mind the free traffic or added sales. I will take free traffic/sales any day without been notified. If the sale is too much that it's affecting operations, at least we will have money to hire help. It's about time google give something for free considering all the money I've spent on Google AdWords :)
The feature google added have no chance of negatively affecting the google button or our business (which perhaps may be the reason for Google not notifying us).
I was just thinking Yahoo charges $299 per year to list a site in their directory and google basically provided a link from a pagerank of 7 for free. Not a bad deal!
I can't wait until Google Checkout is fully functional...there is a good potential for GCO!
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BlessIsaacola
Ah I see your point! But honestly I don't mind the free traffic or added sales. I will take free traffic/sales any day without been notified. If the sale is too much that it's affecting operations, at least we will have money to hire help. It's about time google give something for free considering all the money I've spent on Google AdWords :)
The feature google added have no chance of negatively affecting the google button or our business (which perhaps may be the reason for Google not notifying us).
My premise was not about a benefit or a cost. All about communication. But you know that well by now ;-)
And I suspect the benefit applied probably had something to do with the AdWords investment, but Google would not want to say that ;-)
Apologies for straying off topic.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
I just upgraded from zen cart 1.3.5 to 1.3.7 and upgraded google checkout to the latest version and when I try to place an order I get a message that says oops.
Can anyone help me with this I have been unable to find the problem.
-
Re: Google Checkout module for Zen Cart (beta)
DragonLord, log in to your GC seller account>Integration>Settings. You should see more details about any errors there. "Oops" is not very helpful to pinpoint a problem.
-
Re: Google Checkout module for Zen Cart (beta)
I just logged into my google account and I seem to be getting the following error:
Duplicate shipping name Table Rate found.
-
Re: Google Checkout module for Zen Cart (beta)
I do not know what this error means
Duplicate shipping name Table Rate found.
Can someone please help me to figure this out
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
DragonLord
I do not know what this error means
Duplicate shipping name Table Rate found.
Can someone please help me to figure this out
Start about message 995 in this thread, where considerable discussion centers around troubleshooting this type of problem.
-
Re: Google Checkout module for Zen Cart (beta)
hi, I need some serious help here.
My shopping cart has GCO enabled with authentication over .htaccess
When I tried to check my responsehandler.php, I was asked for user name and password. Is this normal? Or I configured something wrong there. If I don't put in password or user name, I got this message.
Can somebody tell me what I did wrong here? Thanks
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-
Re: Google Checkout module for Zen Cart (beta)
spf, that's normal and it means it's working as it should. No one should have access to your googlecheckout folder unless authenticated.
The installation instructions need some serious rewriting. I know you probably think there's something wrong because the instructions say something like type ...responsehandler.php in your browser, if you see nothing proceed, if you get some error...
That's only true before you set authentication over .htaccess, in which case you will always be prompted for a user and password.
-
Re: Google Checkout module for Zen Cart (beta)
Thanks for the quick reply! Now, I am having another problem, the error log on my GCO account shows the following:
We encountered an error trying to access your server at https://yourstore/googlecheckout/responsehandler.php -- the error we got is: Sending failed with HTTP response code: 500. Response body was: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>500 Internal Server Error</TITLE> </HEAD><BODY> <H1>Internal Server Error</H1> The server encountered an internal error or misconfiguration and was unable to complete your request.<P> Please contact the server administrator, webmaster AT yourstore DOT com and inform them of the time the error occurred, and anything you might have done that may have caused the error.<P> More information about this error may be available in the server error log.<P> <P>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. <HR> <ADDRESS>Apache/1.3.37 Server at www.yourstore.com Port 443</ADDRESS> </BODY></HTML>
This is when I checkout using GCO from my website, my merchant calculated shipping didn't show up, nor does the coupon work. I am trying to figure out what have been broken.
BTW, my GCo was working fine. Until today I decided to try to install authorize.net module on my website, which went ok, then all of sudden the GCO starts having all kinds of issues.
-
Re: Google Checkout module for Zen Cart (beta)
OK, now I do need some serious help here.
I've started to get many sales with GC, yay [:)] (that's not the problem)
The problem is, I have the Low Order Fee implemented in ZenCart and GC is not taking this into account.
I charge a low order fee of $2 for orders less than $25.
I offer free shipping options for all orders, so the low order fee is to sort of cover shipping for small orders.
I sell items ranging from as little as $1 to over $1000.
I don't have a problem covering shipping for any orders $25 and up, but if someone places a small, for example $10 or less, and pays with GC, which has already happened, it's either a loss for me or I bare break even because GC is not charging the low order fee.
Ropu, or anyone, is there a way GC could charge the low order fee for orders less than $25?
Thanks
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
The problem is, I have the Low Order Fee implemented in ZenCart and GC is not taking this into account.
I was not even aware Low Order Fees were allowed by credit card companies (or minimum orders). I had always understood that was violation of the TOS. But I may be wrong.
I think I observed something on Google Checkout Merchants forum stating Low Order Fees were not supported. But I could be wrong.
But I did see on the wishlist URL I posted several days ago a statement that Minimum Order fees are not supported by Google Checkout.
You might want to post your feature request there.
http://groups.google.com/group/googl...oogle-checkout
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
spf
This is when I checkout using GCO from my website, my merchant calculated shipping didn't show up, nor does the coupon work. I am trying to figure out what have been broken.
BTW, my GCo was working fine. Until today I decided to try to install authorize.net module on my website, which went ok, then all of sudden the GCO starts having all kinds of issues.
Basic questions:
Are these errors occurring when your shop is setup with a Google Checkout sandbox account or a live/production account?
From your previous post regarding .htaccess issue it appears you are running PHP as CGI. Are you certain that is true? Your host can tell you.
If you are certain running PHP as CGI you can visit Ropu's site and use his generator to create an .htaccess file.
http://demo.globant.com/~brovagnati/tools/
When did your error occur? Immediately after you click the the GCO checkout image on your shop?
What does the error log report? response_error.php
What was the effect when you uninstalled authorize.net payment module? Any difference?
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
I was not even aware Low Order Fees were allowed by credit card companies (or minimum orders). I had always understood that was violation of the TOS. But I may be wrong.
I think I observed something on Google Checkout Merchants forum stating Low Order Fees were not supported. But I could be wrong.
But I did see on the wishlist URL I posted several days ago a statement that Minimum Order fees are not supported by Google Checkout.
You might want to post your feature request there.
http://groups.google.com/group/googl...oogle-checkout
Woody
Thanks Woodymon.
I sell true wholesale so profit margin is very small and I also offer free shipping on all domestic orders.
The low order fee is not for using a credit card to pay, but rather a convenience service fee for such a small order regardless of payment method.
I believe this is acceptable, I've literally seen thousands of merchants implementing something similar.
I did a few searches trying to find if this is a violation of the credit card companies' TOS, but I couldn't come up with anything. If you find something please let me know.
I hope ropu can come up with a solution. I'll leave it as it is for now, hopefully I won't get many small orders through GC and customers won't notice and abuse this loophole.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Basic questions:
Are these errors occurring when your shop is setup with a Google Checkout sandbox account or a live/production account?
From your previous post regarding .htaccess issue it appears you are running PHP as CGI. Are you certain that is true? Your host can tell you.
If you are certain running PHP as CGI you can visit Ropu's site and use his generator to create an .htaccess file.
http://demo.globant.com/~brovagnati/tools/
When did your error occur? Immediately after you click the the GCO checkout image on your shop?
What does the error log report? response_error.php
What was the effect when you uninstalled authorize.net payment module? Any difference?
Woody
Now, I got it fixed. After created .htaccess and .hpasswd file, I forgot to switch folder back from 777 to 644 permission. So my server reject GCO access to that folder.
I still don't know how the error happened in the first place. My system was working before, until I installed authorize.net AIM. Then, GCO start timing out when trying to access responsehandler.php. That's the reason my merchant calculated shipping and coupon didn't work. I don't know what I did to fix it, other than re-installing GCO from payment module. While doing that, I ended up having sever 500 error. Now, everything is back to normal.. Thanks
-
Re: Google Checkout module for Zen Cart (beta)
GCO UPS SHIPPING CALCUALTIONS NOT WORKING
Okay, 10 hours trying to implement this and reading every post from page 65 on, and I'm still just not getting it.
Here's my info: ZC 1.3.7, GCO v1.3RC1rev1, my host is definitely running PHP as CGI, and I am testing in the GCO Sandbox
I followed all instructions and installed GCO 1.3RC1rev1 manually updating files as instructed in the INSTALLATION file.
But in the README file, I do not understand the following:
"2. .htaccess Basic Authentication Mode with PHP over CGI? If your site is installed on a PHP CGI you must disable Basic Authentication over PHP. To avoid spoofed messages reaching responsehandler.php, set the .htaccess file with the script linked (http://your-site/admin/includes/htaccess.php). Set permission 777 for http://your-site/googlecheckout/ before running the script. Remember to turn back permissions after creating the files."
I found an earlier post that gave a link to Ropu's htaccess and htpasswd generators at http://demo.globant.com/~brovagnati/tools/htaccess.php
I entered my Merchant ID's and passwords, but I'm not sure what to enter at the:
"Absolute dir to googlecheckout/ : ( ie. /home/ropu/public_html/catalog/googlecheckout )"
I don't understand the example. So I entered http://www.mysite.com/googlecheckout and generated the files. I saved them in Notepad, changed the extensions to PHP, and then uploaded them to my /googlecheckout directory. Set the folder permissions at 777 before uploading them, then back to 744.
Here's what happens - I get the Google Checkout icon on my checkout page, I click it, log into the sandbox, and then the shipping goes to the default of 0.00. Using my normal checkout mode (manual processing of credit cards) instead of GCO, UPS rates calculate fine. FYI, I am only using UPS shipping, it is enabled in my payment modules, and I am pretty certain my error has to do with the htaccess and htpasswd files. Can someone please explain to me what directory to enter for the "Absolute directory", and exactly where to upload the htaccess and htpasswd files?
Sorry if this is a dumb question, but I just don't get it. Thanks for any help you can provide.
P.S. to Ropu -
In INSTRUCTIONS file, modification to tpl_checkout_payment_default.php file has the following lines:
// ** GOOGLE CHECKOUT **
// ** END GOOGLE CHECKOUT **
For some reason, these lines appear on the live customer Login page. I deleted them from the code and now they do not appear.
-
Re: Google Checkout module for Zen Cart (beta)
Another issue....
But first, I think I may have found the directory name I was looking for in my previous post --- in the error message I got below! I generated a new htaccess and htpasswd file with the new directory, uploaded them to my googlecheckout folder, but still get default shipping rates in the GCO Sandbox. By the way, I forgot to mention this in my previous post, but I did set my ".htaccess Basic Authentication Mode" to "TRUE." Any ideas on why UPS shipping works in my normal checkout method of manually processing credit cards, but not in GCO?
But here is the new problem. When I get to my GCO sandbox customer account and I see the incorrect shipping rates, I decide to cancel my order. In GCO I click "Edit Order" and I am returned to my Zen Cart website. I click on the trash can to delete the item from my cart and get the following error:
// ** GOOGLE CHECKOUT **
// ** END GOOGLE CHECKOUT ** // ** GOOGLE CHECKOUT **
Fatal error: Cannot redeclare selfurl() (previously declared in /home/XXXX/XXXX/type/googlecheckout/gcheckout.php:38) in /home/XXXX/XXXX/type/googlecheckout/gcheckout.php on line 42
(I replaced the actual directory names above with XXXX for security purposes)
Is this a related error, or something else I need to worry about?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jay42
but I'm not sure what to enter at the:
Absolute dir to googlecheckout/ : ( ie. /home/ropu/public_html/catalog/googlecheckout) I don't understand the example. So I entered
http://www.mysite.com/googlecheckout... Can someone explain to me what directory to enter for the "Absolute directory", and exactly where to upload the htaccess and htpasswd files?
It's very straightforward but yes it can get very confusing at the same time ;-)
1. The absolute path to your shop is listed in your /includes/configure.php
2. The readme says So generally if you can run htaccess.php in your web browser doing so should automatically generate .htaccess and .htpasswd in the /googlecheckout directory.
But if you generate those two files with another tool then you need to manually upload the htaccess and htpasswd to your /googlecheckout directory. If you uploaded the mod package correctly, this directory should be in your shop directory (aka shop root).
3. Note in the mod release the following three directories:
/admin
/includes
/googlecheckout
Did you upload all directories?
4. More detailed answer with example:
If your webroot directory is /home/account_name/public_html
And if you installed your shop directory in your webroot (this is typically standard location for most zen cart installs) then your shoproot directory would be /home/account_name/public_html/shop_name
(in this context 'catalog' and 'shop_name' and the shop root are synonymous. They just mean whatever directory you installed zencart into.)
BTW these directories above are referred to absolute directories as they describe the full "absolute" path from the root of your account, as opposed to a "relative" path. If this is still unclear, and you're not sure of the diff between an absolute vs. relative path, Google on the two terms. You will find simple explanations.
When you installed the Google Checkout mod, the googlecheckout directory should have been uploaded to the shop root. So you should have:
/home/account_name/public_html/shop_name/googlecheckout/
(this is an absolute path)
This is the directory which you should upload .htaccess and .htpasswd
if using Ropu's tool.
I agree that a bit more clarification in the readme of who should run /admin/htpasswd.php and who should run the provided tool on Ropu's site (and why the difference). And the readme should not include http:// to describe an absolute path.
Hope this helps.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Thanks Woody,
I tried again, still not working. Here's part of my configure.php file:
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/Jay42/type/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
I substituted Jay42 above for the real name for security purposes.
So in the "Absolute dir to googlecheckout" on Ropu's generator I entered:
/home/Jay42/type/googlecheckout
I pasted the code of each file in notepad, saved it as text, uploaded to my googlecheckout directory, renamed them to .htaccess and .htpasswd, and tested another sandbox order. Still, same problem....does not calculate UPS shipping, rather, uses default rates.
Did I get the directory name wrong? Or do something else wrong here?
Quote:
Originally Posted by Woodymon
3. Note in the mod release the following three directories:
/admin
/includes
/googlecheckout
Did you upload all directories?
Yes, I followed all the instructions in the README and INSTALLATION files. As I currently have an existing checkout method (Credit Cards, manually processed), I followed OPTION B and uploaded all files in Section I and manually updated the 4 files in Section II.
Everything works except the UPS shipping calculations. So I feel the install was done correctly. Any additional advice would be appreciated. Thanks again for your help.
-
Zen Cart and Jrox Affiliate Integration with Google
How do I make the below changes what files etc. I was referred back to Zen Cart for this information. I did the first part now I need help with the 2nd part.
Answer:
(This is a copy and paste from Jrox forum:)
actually, we've been approved for tracking.
In order to use JAM with Google Checkout, you need to contact Google and ask them to whitelist your domain.
Secondly, you will need to edit the shopping cart you are using with Google Checkout to add some XML code in it:
http://code.google.com/apis/checkout/developer/checkout_pixel_tracking.html
QUESTION: what file exactly to edit? Im using zen cart
Answer:
this is actually done on the shopping cart side, not JAM.
once we get more information on this, we'll post it.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jay42
define('DIR_FS_CATALOG', '/home/Jay42/type/');
So in the "Absolute dir to googlecheckout" on Ropu's generator I entered:
/home/Jay42/type/googlecheckout
I pasted the code of each file in notepad, saved it as text, uploaded to my googlecheckout directory, renamed them to .htaccess and .htpasswd, and tested another sandbox order. Still, same problem....
Appears you have knowledge of the proper absolute path. Thats all was trying to assist with. As to your mod issue will need to wait for ropu to chime in.
Good luck!
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Hi nabrown
i don'y really know the cause of the issue
but this should solve it
replace in googlecheckout/gcheckout.php 38
PHP Code:
function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
with this
PHP Code:
if (!function_exists('selfURL')) {
function selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
}
please send your feedbacks
hope this helps
ropu
After doing this I now get this error:
Fatal error: Cannot redeclare strleft() (previously declared in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php:44) in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php on line 44
:|
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Greyboy
ropu,
I just installed the 3RC1Rev1 version of GC and everything I am using is working perfectly. We have a site using CGI with the UPS shipping module installed. No defaults set for 1day air, 2day air and ground shipping and the calc callback is working great. Thanks so much for all your hard work. We are going live with this site this Thursday and I was starting to sweat.... Got the fix I needed just in the nick of time!
Thanks Again:clap:
BTW: Someone in this thread was asking if godaddy turbossl certs worked with GC. We have this cert and it works fine.
hi Greyboy
im happy to hear that!
:D
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I tried doing a if function on strleft and then it gave me this error:
Fatal error: Call to undefined function: strleft() in /home/wilmersc/public_html/store/googlecheckout/gcheckout.php on line 39
-
Re: Google Checkout module for Zen Cart (beta)
BTW, this happens when I add something to the cart and then remove it. At least that's where I've noticed it so far.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
tj1
After successfully testing on a test store, I tried to use it on a live store and I got this error when displaying the contents of the cart:
***************
Warning: main(admin/includes/configure.php) [function.main]: failed to open stream: No such file or directory in /public_html/googlecheckout/gcheckout.php on line 33
Fatal error: main() [function.require]: Failed opening required 'admin/includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/googlecheckout/gcheckout.php on line 33
**************
I think the cause of this error is that I, as any ZC user should as recommended for security, have renamed the admin directory.
Line 33 on googlecheckout/gcheckout.php reads:
require_once('admin/includes/configure.php');
I think the instructions should mention one should change this line if the one has renamed the admin directory.
Thx tj
added in the README file
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
ropu -
I hope you are enjoying a well-deserved holiday there in Argentina!!
I really appreciate all the hard work you have put into this module! And I'm overjoyed to say I have merchant calculated shipping and taxes working just fine on my site now in cohabitation with PayPal Express checkout!!
Well done!!
Hi chain_man!
in happy to hear that is working in an other Zencart e.commerce :D
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
It appears that the button style is determined by your merchant account. I have the exact same URL for my button as does BlessIsaacola (except for the merchant number) and my button does not display the $10 off style button.
BlessIsaacola, did you have to sign up with Google for any special promotions?
Thanks,
Chain, please have a look to this post, there is explained how to get that button
http://groups.google.com/group/googl...c198e410602d59
hope this helps
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Thanks Ropu -
I checked out that thread last week and made the suggested mods to my site. I guess it's up to Google now...
Welcome back!
-
Re: Google Checkout module for Zen Cart (beta)
Hi all
as u can see im back again!
im glad to see that now we have 100+ post since i've been off..
i've read them all and i'll try to answer all of them, but its not possible in just one day. so please little patience!
also thx a LOT to woddy, bless chain, tj, for helping with this contrib!
well, stop chit chat, and start to work :D
ropu
-
The order does not show in my Sandbox
My orders are showing up in the Customer Orders section and are listed as pending. When I log in to my sandbox account there are no orders there.
If I do https://www.mydomain.com/cart/google...nsehandler.php
I see the following:
Mon Apr 9 15:37:02 US Mountain Standard Time 2007:- Invalid
Is that causing the problem?
I'm in Michigan so the time should be eastern time; however, I do not see where to change it in the admin section.
Other than no orders showing up in my sandbox account everything else seems to be working great. I go through the order process and the confirmation email is sent to my test user.
Misc Information about my setup:
I am testing using the sandbox for googlecheckout with the latest versions of zen-cart and googlecheckout. (downloaded from Ropu's sig)
I have activated the sandbox account and set the Integration settings to the following:
API callback: https://www.mydomain.com/cart/google...nsehandler.php
Callback method: XML
Shopping cart post security checkbox is checked.
I do have SSL enabled.
I am on a shared windows server that has PHP4 and curl installed.
The MySQL 5 database is set to cache to the database.
Since I do not have the getallheaders function I had to comment out the security authentication checks. I did Ropu's recommendation of creating the .htaccess and .htpassword files.
I've checked for spaces in my merchant key and merchant ID and both look good. I got them from the sandbox account and double checked that I am not using my production keys.
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
Hi all. as u can see im back again! im glad to see that now we have 100+ post since i've been off.. i've read them all and i'll try to answer all of them, but its not possible in just one day. so please little patience! also thx a LOT to woddy, bless chain, tj, for helping with this contrib! well, stop chit chat, and start to work :D
ropu
Hi ropy. Hope you had a good holiday. A number of folks have posted shipping config issues which appear similar to those which I reported. But not sure if they are truly related. Please post as soon as you can when you know something new regards to shipping configuration issues/questions. Thanks for any new info.
Woody
-
Re: Google Checkout module for Zen Cart (beta)
I posted earlier with a problem with google checkout
I upgraded my zen cart from 1.3.5 to 1.3.7 and I also upgraded to the latest version of google checkout module.
My host runs php as cgi and I set up the htaccess files using the generator code supplied.
The problem is that when I place an order as a customer through google checkout I get an error screen that says "oops zencart has sent google a bad shopping cart."
When I go to my google checkout merchant account it in my integration issues it says " Duplicate shipping name Table Rate found."
In the xml there are 2 different lines that read
<flat-rate-shipping name="Table Rate">
I have not been able to find out what is causing this error. I have been looking through this thread for the last 2 days trying different suggestions but nothing seems to work.
Please help me
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
DragonLord
The problem is that when I place an order as a customer through google checkout I get an error screen that says "oops zencart has sent google a bad shopping cart."
When I go to my google checkout merchant account it in my integration issues it says " Duplicate shipping name Table Rate found."
In the xml there are 2 different lines that read
<flat-rate-shipping name="Table Rate">
I have not been able to find out what is causing this error. I have been looking through this thread for the last 2 days trying different suggestions but nothing seems to work.
Please help me
Can you post the $this->mc_shipping_methods section of your includes/modules/payment/googlecheckout.php file? That is probably where the error comes from. Unless you actually have two shipping methods defined as Table Rate in your Admin->Modules->Shipping...
-
Re: Google Checkout module for Zen Cart (beta)
Here is my code from googlecheckout.php
PHP Code:
$this->mc_shipping_methods = array(
'usps' => array(
'domestic_types' =>
array(
'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
'Parcel' => 'Parcel Post',
'BPM' => 'Bound Printed Material',
'Library' => 'Library'
),
'international_types' =>
array(
'GXG Document' => 'Global Express Guaranteed Document Service',
'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
'Express' => 'Global Express Mail (EMS)',
'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post',
'Airmail Parcel' => 'Airmail Parcel Post',
'Surface Letter' => 'Economy (Surface) Letter Post',
'Surface Post' => 'Economy (Surface) Parcel Post'
),
),
'fedex1' => array(
'domestic_types' =>
array(
'01' => 'Priority (by 10:30AM, later for rural)',
'03' => '2 Day Air',
'05' => 'Standard Overnight (by 3PM, later for rural)',
'06' => 'First Overnight',
'20' => 'Express Saver (3 Day)',
'90' => 'Home Delivery',
'92' => 'Ground Service'
),
'international_types' =>
array(
'01' => 'International Priority (1-3 Days)',
'03' => 'International Economy (4-5 Days)',
'06' => 'International First',
'90' => 'International Home Delivery',
'92' => 'International Ground Service'
),
),
'ups' => array(
'domestic_types' =>
array(
'1DM' => 'Next Day Air Early AM',
'1DML' => 'Next Day Air Early AM Letter',
'1DA' => 'Next Day Air',
'1DAL' => 'Next Day Air Letter',
'1DAPI' => 'Next Day Air Intra (Puerto Rico)',
'1DP' => 'Next Day Air Saver',
'1DPL' => 'Next Day Air Saver Letter',
'2DM' => '2nd Day Air AM',
'2DML' => '2nd Day Air AM Letter',
'2DA' => '2nd Day Air',
'2DAL' => '2nd Day Air Letter',
'3DS' => '3 Day Select',
'GND' => 'Ground',
'GNDCOM' => 'Ground Commercial',
'GNDRES' => 'Ground Residential',
'STD' => 'Canada Standard',
'XPR' => 'Worldwide Express',
'XPRL' => 'worldwide Express Letter',
'XDM' => 'Worldwide Express Plus',
'XDML' => 'Worldwide Express Plus Letter',
'XPD' => 'Worldwide Expedited'
),
'international_types' =>
array(
),
),
'zones' => array(
'domestic_types' =>
array(
'zones' => 'Zones Rates'
),
'international_types' =>
array(
'zones' => 'Zones Rates intl'
),
),
'fedexexpress' => array(
'domestic_types' =>
array(
'01' => 'FedEx Priority Overnight',
'03' => 'FedEx 2Day',
'05' => 'FedEx Standard Overnight',
'06' => 'FedEx First Overnight',
'20' => 'FedEx Express Saver'
),
'international_types' =>
array(
),
),
'fedexground' => array(
'domestic_types' =>
array(
'92' => 'FedEx Ground Service'
),
'international_types' =>
array(
),
),
'freeoptions' => array(
'domestic_types' =>
array(
'freeoptions' => 'Free Options'
),
'international_types' =>
array(
'freeoptions' => 'Free Options intl'
),
),
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
'freeshipper' => 'Free Shipper intl'
),
),
'perweightunit' => array(
'domestic_types' =>
array(
'perweightunit' => 'Perweight Unit'
),
'international_types' =>
array(
'perweightunit' => 'Perweight Unit intl'
),
),
'storepickup' => array(
'domestic_types' =>
array(
'storepickup' => 'Store Pickup'
),
'international_types' =>
array(
'storepickup' => 'Store Pickup intl'
),
),
'flat' => array(
'domestic_types' =>
array(
'flat' => 'Flat Rate Per Order'
),
'international_types' =>
array(
'flat' => 'Flat Rate Per Order intl'
),
),
'item' => array(
'domestic_types' =>
array(
'item' => 'Flat Rate Per Item'
),
'international_types' =>
array(
'item' => 'Flat Rate Per Item intl'
),
),
'table' => array(
'domestic_types' =>
array(
'table' => 'Vary by Weight/Price'
),
'international_types' =>
array(
'table' => 'Vary by Weight/Price intl'
),
),
);
$this->mc_shipping_methods_names = array(
'usps' => 'USPS',
'fedex1' => 'FedEx',
'ups' => 'UPS',
'zones' => 'Zones',
'fedexexpress' => 'Fedex Express',
'fedexground' => 'Fedex Ground',
'freeoptions' => 'Free Options',
'freeshipper' => 'Free Shipper',
'perweightunit' => 'Perweight Unit',
'storepickup' => 'Store Pickup',
'flat' => 'Flat Rate',
'item' => 'Item',
'table' => 'Table',
);
-
Re: Google Checkout module for Zen Cart (beta)
Hi, im working to answer all this issues.
one of the biggest later was the shipping methods one
for that i coded something that will try to generate $this->mc_shipping_methods and $this->mc_shipping_methods_names using Zencart's Shipping class
here is the link
http://demo.globant.com/~brovagnati/tools/ -> Zencart Automatic Shipping Method Generator
Have a look to the README. But should be a unzip and work...
any doubts please feel free to ask.
ropu
-
Re: Google Checkout module for Zen Cart (beta)
I've searched the forum and I can't find this error:
Error parsing XML; message from parser is: Invalid value for body of allowed-areas in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping/address-filters: Must be a U.S. 2-letter postal code or state name
What am I missing?
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
DragonLord
Here is my code from googlecheckout.php
PHP Code:
$this->mc_shipping_methods = array(
'usps' => array(
'domestic_types' =>
array(
'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
'Parcel' => 'Parcel Post',
'BPM' => 'Bound Printed Material',
'Library' => 'Library'
),
'international_types' =>
array(
'GXG Document' => 'Global Express Guaranteed Document Service',
'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
'Express' => 'Global Express Mail (EMS)',
'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post',
'Airmail Parcel' => 'Airmail Parcel Post',
'Surface Letter' => 'Economy (Surface) Letter Post',
'Surface Post' => 'Economy (Surface) Parcel Post'
),
),
'fedex1' => array(
'domestic_types' =>
array(
'01' => 'Priority (by 10:30AM, later for rural)',
'03' => '2 Day Air',
'05' => 'Standard Overnight (by 3PM, later for rural)',
'06' => 'First Overnight',
'20' => 'Express Saver (3 Day)',
'90' => 'Home Delivery',
'92' => 'Ground Service'
),
'international_types' =>
array(
'01' => 'International Priority (1-3 Days)',
'03' => 'International Economy (4-5 Days)',
'06' => 'International First',
'90' => 'International Home Delivery',
'92' => 'International Ground Service'
),
),
'ups' => array(
'domestic_types' =>
array(
'1DM' => 'Next Day Air Early AM',
'1DML' => 'Next Day Air Early AM Letter',
'1DA' => 'Next Day Air',
'1DAL' => 'Next Day Air Letter',
'1DAPI' => 'Next Day Air Intra (Puerto Rico)',
'1DP' => 'Next Day Air Saver',
'1DPL' => 'Next Day Air Saver Letter',
'2DM' => '2nd Day Air AM',
'2DML' => '2nd Day Air AM Letter',
'2DA' => '2nd Day Air',
'2DAL' => '2nd Day Air Letter',
'3DS' => '3 Day Select',
'GND' => 'Ground',
'GNDCOM' => 'Ground Commercial',
'GNDRES' => 'Ground Residential',
'STD' => 'Canada Standard',
'XPR' => 'Worldwide Express',
'XPRL' => 'worldwide Express Letter',
'XDM' => 'Worldwide Express Plus',
'XDML' => 'Worldwide Express Plus Letter',
'XPD' => 'Worldwide Expedited'
),
'international_types' =>
array(
),
),
'zones' => array(
'domestic_types' =>
array(
'zones' => 'Zones Rates'
),
'international_types' =>
array(
'zones' => 'Zones Rates intl'
),
),
'fedexexpress' => array(
'domestic_types' =>
array(
'01' => 'FedEx Priority Overnight',
'03' => 'FedEx 2Day',
'05' => 'FedEx Standard Overnight',
'06' => 'FedEx First Overnight',
'20' => 'FedEx Express Saver'
),
'international_types' =>
array(
),
),
'fedexground' => array(
'domestic_types' =>
array(
'92' => 'FedEx Ground Service'
),
'international_types' =>
array(
),
),
'freeoptions' => array(
'domestic_types' =>
array(
'freeoptions' => 'Free Options'
),
'international_types' =>
array(
'freeoptions' => 'Free Options intl'
),
),
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
'freeshipper' => 'Free Shipper intl'
),
),
'perweightunit' => array(
'domestic_types' =>
array(
'perweightunit' => 'Perweight Unit'
),
'international_types' =>
array(
'perweightunit' => 'Perweight Unit intl'
),
),
'storepickup' => array(
'domestic_types' =>
array(
'storepickup' => 'Store Pickup'
),
'international_types' =>
array(
'storepickup' => 'Store Pickup intl'
),
),
'flat' => array(
'domestic_types' =>
array(
'flat' => 'Flat Rate Per Order'
),
'international_types' =>
array(
'flat' => 'Flat Rate Per Order intl'
),
),
'item' => array(
'domestic_types' =>
array(
'item' => 'Flat Rate Per Item'
),
'international_types' =>
array(
'item' => 'Flat Rate Per Item intl'
),
),
'table' => array(
'domestic_types' =>
array(
'table' => 'Vary by Weight/Price'
),
'international_types' =>
array(
'table' => 'Vary by Weight/Price intl'
),
),
);
$this->mc_shipping_methods_names = array(
'usps' => 'USPS',
'fedex1' => 'FedEx',
'ups' => 'UPS',
'zones' => 'Zones',
'fedexexpress' => 'Fedex Express',
'fedexground' => 'Fedex Ground',
'freeoptions' => 'Free Options',
'freeshipper' => 'Free Shipper',
'perweightunit' => 'Perweight Unit',
'storepickup' => 'Store Pickup',
'flat' => 'Flat Rate',
'item' => 'Item',
'table' => 'Table',
);
Nothing jumps out at me on this one. Maybe ropu can solve it when he catches up. I found that cleaning out the shipping methods I don't use helps considerably. I have a sample posted a few pages back. Mine started like yours...
What shipping methods have you activated in Admin?
-
Re: Google Checkout module for Zen Cart (beta)
Regards to the rendering and display of text and objects on the Google Checkout "Review and place order" page...
The main order details promptly appears along with a "Total" and a "Place your order now" button.
However after that, it often takes a long while (30-60secs) for the following to appear:
- S&H
- Pay with:
- Ship to address
Because of this delay is it is HIGHLY likely that the customer would not wait for the above text to appear (including updated total with S&H included), and instead would click the "Place Your Order now" button as soon as it appears.
This would not be good.
Is there any method to create a "Please wait..." message at the top of the page and NOT render the "Place your order now" button UNTIL AFTER all other objects have been rendered and AFTER the true shipping and handling has been calculated and added to the final total.
I will mention issues we continue to observe specific to our shops shipping configuration in another post.
Thanks,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Hi ropu and all,
I've downloaded your shipping configurator v0.1. Very cool indeed!
However the shipping array output for our shop by the generator is the same or similar to the array I hand/custom coded while you away (thanks to some help from both Doug and Isaac). Employing either the generated code or the hand coded solution the two generated arrays has yet to display (for us) the correct shipping info on the Google Checkout page.
For instance, for a book item with price $12, it should cost $5 for shipping and handling in the USA and display "USPS Media Mail" as the ship method (as processed by the "itemnational" payment module in Zen Cart). But Google Checkout instead displays the following in the "Shipping & Handling" dropdown:
Quote:
Per Item National ($0.00)
Note that no shipping and handling is added to the product price. (Total displayed is $12.00)
I'm unclear as to why Google Checkout is listing "Per Item National" in the S&H dropdown. Instead should be listing "USPS Media Mail" in the dropdown as is noted in the two arrays that follow. (two array's output by the the shipping generator v.0.1, code which produced the above result):
Code:
$this->mc_shipping_methods = array(
'itemnational' => array(
'domestic_types' =>
array(
'itemnational' => 'USPS Media Mail',
),
'international_types' =>
array(
),
),
'iteminternational' => array(
'domestic_types' =>
array(
),
'international_types' =>
array(
'iteminternational' => 'USPS Air Mail',
),
),
);
$this->mc_shipping_methods_names = array(
'itemnational' => 'Total Shipping & Handling (USA)',
'iteminternational' => 'Total Shipping & Handling (Intl)',
);
Also below are two additional arrays and related code further up in in googlecheckout.php that have significance:
Code:
$this->shipping_support = array("flat", "item", "table", 'freeoptions', 'perweightunit', 'storepickup');
$this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'perweightunit', 'storepickup');
$this->ship_flat_ui = "Standard flat-rate shipping";
The code above is default code. Is this correct?
It appears that Google Checkout is not properly referencing the info from the above array, but is acquiring info elsewhere. For example the "Per Item National" payment module name reference. Google Checkout is listing in it's S&H dropdown the name of the Zen Cart payment module, not the label in the array.
The following is the exact listing on our Zen Cart 1.37 Payment modules page:
Quote:
FREE SHIPPING! freeshipper 2
Per Item International iteminternational 1
Per Item National itemnational 0
Hope this is enough info to help us pinpoint our ship config issue in the Google Checkout mod.
Thanks for your assistance,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
I have ZenCart 1.3.7 and Google Checkout 1.0.4r installed
The transaction works fine and I have tables set for shipping.
GC creates a Customer and an order with totals and even tax but I still do not have any product added to the database.
As it stands now I have to manually add the items purchased from my GC Inbox.
Does anyone one have a fix/forum post for this? I've searched the 1000+ posts here and have yet to find a detailed explanation.
Thanks all...
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
GlobalVillage
I have ZenCart 1.3.7 and Google Checkout 1.0.4r installed
The transaction works fine and I have tables set for shipping.
GC creates a Customer and an order with totals and even tax but I still do not have any product added to the database.
As it stands now I have to manually add the items purchased from my GC Inbox.
Does anyone one have a fix/forum post for this? I've searched the 1000+ posts here and have yet to find a detailed explanation.
Thanks all...
Hi global
have u tried with newer releases?
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Thanks Chainman. I missed seeing that in ropu's 1.3RC1 announce last Friday.
http://www.zen-cart.com/forum/showpo...&postcount=941
Now I see the last item listed:
Thanks Ropu!
However when I scanned thru the "Progam Policies and Guidles" at
http://checkout.google.com/seller/policies.html#4
I'm uncertain how to interpret "Google Checkout must be available as a checkout option at least 95% of the time". This is vague and ambiguous. In this regard how is "time" defined.
I can say about 75% of out items are physical goods and the other 25% are downloads. So would this disqualify us?
However, I can say in regards to total historical shop "sales" the downloads amount to less than 5% in both dollar purchases and unit volume. So would this qualify?
If not I guess this rules us out! Argh.
An unrelated question. If the GC for ZC mod is installed, where does the "checkout" link in Zen Cart main menu (in the header) point to?
Woody
woddy, im not sure about how to interpret those terms, if u want i can double check with jacob, or u can port in http://groups.google.com/group/googl...velopers-forum
regarding the link in the header, it points to regular checkout if logged, or login page if not
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
Thank you Ropu for updated 1.30RC1rev1 mod and the included helpful readme and install documentation.
Good to see the payment module install only requires the merging (replacing) of five clearly defined code snippets into four Zen Cart files (/admin/orders.php and three template files). Makes for a straight forward installation.
Some questions/comments regards to a few entries in each doc.
I. README:
A. I'm a little confused by the organization of the section below. Does this info apply ONLY to those whom are running PHP as CGI? Or does the "spoofed messages" issue apply to everyone?
B. The following item is listed in the "Common Mistakes" section but I don't see this step listed previously in the readme step-by-step process. Is this set in Google Checkout account on the Google server or in the Zen Cart payment module admin?
C. The following entry in the readme toubleshooting section references "see above fix" Not sure what that "above fix" is?
II. INSTALLATION
A. Regards to "Option B" for merging code.
I suspect the path below:
should be:
Thanks!
Woody
woddy
A. spoofed messages apply to anyone that enables this feature. because this basically disables PHP check for Basic Authentication, this is why .htaccess must be added so apache validates it.
B. That must be setted in the Settings->Integrarion section of you Google Checkout Merchant page.
C. changed to "fixed in v1.0.5"
II. Docs fixed
Thx again Woody
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
I would like to see a self-calculating substitute for this file that just reads the Shipping module entries and automatically uses them for GCO setup. This file is the most vulnerable part of this add-in, in my opinion.
I hope this helps.
chain, that was the main idea when starting codign the module.
but Zencart spec are not so strict when defining shipping quotes. The only way is calling the method quotes(), setting the order, the address, etc etc. and u are not certain to get all the methods. Also spending the time it take to calculate them
so i decided to "hardcoded" in the googlecheckout class. i try to create a standard structure and easy(?) to scale...
to make this easier i coded the http://demo.globant.com/~brovagnati/tools/ -> Zencart Automatic Shipping Method Generator
hope this helps
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Hi ropu,
Many of my posts while you were away on holiday, regarding documentation and such, were suggestions intended for your review and hopefully incorporate relevant edits into documentation. Myself I am past those questions. I was just presenting those points as they were/are confusing to me so I assumed would be confusing to others/noobs.
My main issue is getting past the shipping configuration problem I have posted on. If you have any recommendations or solutions regards to the issue presented in my last post 1090, that is my most pressing need.
Were you able to install the simple shipping mod (itemnational/iteminternational) which I previously (several times) posted the download link to in this support thread? I'm hoping to know soon if Google Checkout for Zen Cart will be compatible with that very basic shipping configuration.
Thanks,
Woody
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
chain_man
Here's my tpl_checkout_payment_default.php
Quote:
Originally Posted by
chain_man
And my tpl_shopping_cart_default.php:
Quote:
Originally Posted by
chain_man
And my tpl_login_default.php:
chain. really thx for thees code, indeed...
i'll double check them, and added in next revision
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Woodymon
OK I used Ropu's Shipping Generator to generate the following:
Code:
$this->mc_shipping_methods = array(
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
'freeshipper' => 'Free Shipper intl'
),
),
'itemnational' => array(
'domestic_types' =>
array(
'itemnational' => 'Per Item National'
),
'international_types' =>
array(
),
),
'iteminternational' => array(
'domestic_types' =>
array(
),
'international_types' =>
array(
'iteminternational' => 'Per Item International'
),
),
);
$this->mc_shipping_methods_names = array(
'freeshipper' => 'Free Shipper',
'itemnational' => 'USPS Media Mail',
'iteminternational' => 'USPS Air Mail',
);
And then I inserted into googlecheckout.php
(I think this is the same code as Doug previously offered up).
But still same error when submitting order:
Code:
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
I'm stumped.
I should add that no errors are showing up in response_error.log
But I figured out the answer to one of my previous trivia questions:
mc = merchant calculated
Doh! Now only if I could answer some of the more important questions. Such as where do I go from here? And why doe this mod not want to work for me?
Woody
woddy, there is an issue im trying to figure out when ONLY flat rates are used.
i'll update tomorrow, and continue trying to cathc up with all the post, im missing JUST 80 :D
ropu
-
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
chain. really thx for thees code, indeed...
i'll double check them, and added in next revision
ropu
Glad to help, Ropu!
-
Re: usps shipping calculation failed
Quote:
Originally Posted by
Jefflam
Hi Ropu,
Thank you for your help.
Here is my test result:
XML We Sent:Authorization: Basic XXXXXX:XXXXXX
Content-Type: application/xml;charset=UTF-8
Accept: application/xml;charset=UTF-8
X-Origin-IP: xx.xxx.xxx.xxx
XML We Received:SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)
Time to response: 0.77490711212158 segs
Ropu, Can you clarify my problem? Do I need to find a good SSL?
Jefflam
I'm having the same problem, but I did successfully install the SSL certificate and have dedicated IP on shared host. When I run the Responsehandler Test for URL https://www.diamondsonthesolesofhers...nsehandler.php,
I get:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)
[FONT=Verdana]I'm not sure why this is because I have verified the integrity of the certificate in more than one browser.[/FONT]
The most peculiar thing though, is that if i test an order and enter a coupon code, it is now working almost, the coupon can now be applied (it couldn't verify before I had installed SSL) HOWEVER, there is no discount --> the discount remains at $0.00 even though I have it set up to take 20% off. :frusty:
I tried creating more coupons to test with but get the same result everytime if i make the coupon based on % discount. If i make it based on $ off, I get this:
Invalid coupon code Retry
The minimum order total for this coupon is $40.00 (tester)
Incidentally, i'm using google-checkout-osc-v1.2RC3rev1 contribution for the coupon support - and got this from http://code.google.com/p/google-checkout-oscommerce/
I also looked at error logs in the google merchant checkout account (at integration settings) but I am no longer getting errors there (I was when I didn't have the certificate)... and this point bring me back to my first note that responsehandler says there's a certificate problem... ??? something seems wrong with the script, Ropu.
Any ideas what I can do? ~thanks for your consideration
-
Re: Google Checkout module for Zen Cart (beta)
Hi Ropu,
Welcome back...hope you had a nice vacation!
I wrote a couple of posts a few days ago, and Woody helped me out a bit, but I am still having the same problem - GCO does not give the UPS shipping rates and uses the default rates instead. My host is running PHP as CGI so I have created the ht files as indicated. I have set my API callback according to the instructions. Here is the error message I get:
Quote:
We encountered an error trying to access your server at
http://www.jay42.com/googlecheckout/responsehandler.php -- the error we got is: Sending failed with HTTP response code: 403. Response body was: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /googlecheckout/responsehandler.php on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
Any suggestions to correct this would be appreciated. Thanks.