Page 102 of 394 FirstFirst ... 25292100101102103104112152202 ... LastLast
Results 1,011 to 1,020 of 3932
  1. #1011
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default 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

  2. #1012
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default 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_ADDRESSBUTTON_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_CHECKOUTBUTTON_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>

  3. #1013
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default 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">&nbsp;</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">&nbsp;</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_TRASHDIR_WS_TEMPLATE$current_page_base,'images/icons'). '/' ICON_IMAGE_TRASHICON_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_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a>'?></div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPINGBUTTON_CONTINUE_SHOPPING_ALT) . '</a>'?></div>
    <?php
    // show update cart button
      
    if (SHOW_SHOPPING_CART_UPDATE == or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATEICON_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_ESTIMATORBUTTON_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() > && $_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>

  4. #1014
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default 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_ACCOUNTBUTTON_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_LOGINBUTTON_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_LOGINBUTTON_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_SUBMITBUTTON_SUBMIT_ALT); ?></div>
    </form>
    <!--EOF normal login-->
    <?php ?>
    </div>

  5. #1015
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

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

  6. #1016
    Join Date
    Aug 2006
    Posts
    111
    Plugin Contributions
    0

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

  7. #1017
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default 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":

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

    Thanks,
    Woody

  8. #1018
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default 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

  9. #1019
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default 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
    Last edited by Woodymon; 4 Apr 2007 at 02:23 PM.

  10. #1020
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default 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

 

 

Similar Threads

  1. v155 BETA feedback for Responsive-Classic in v155-beta
    By picaflor-azul in forum Addon Templates
    Replies: 51
    Last Post: 5 Mar 2016, 09:14 PM
  2. Google Checkout module support for ZC 1.5.0?
    By Woodymon in forum Addon Payment Modules
    Replies: 2
    Last Post: 21 Jan 2012, 03:18 AM
  3. Google Checkout - is there a module for 1.3.9g?
    By cchan in forum Addon Payment Modules
    Replies: 0
    Last Post: 9 Jan 2011, 05:04 AM
  4. Update Google Checkout Module or Custom Google Checkout?
    By pacificmanagment in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 May 2010, 09:40 AM
  5. Replies: 1
    Last Post: 31 May 2009, 02:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR