Did you rename the YOUR_TEMPLATE folder
Printable View
If a customer tries to select Google Checkout as payment from the Step 2 - Payment Page, it will act like they were paying by check.
To fix this, you have to edit templates\tpl_checkout_confirmation_default.php page:
At the bottom of the page, replace the codewith the followingCode:<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
</div>
Code:<!----------- GOOGLE CHECKOUT --------------->
<?php
if ($GLOBALS[$class]->title == 'GoogleCheckout') {
?>
<br class="clearBoth" />
<div class="buttonRow forward">
<?php include(DIR_WS_MODULES . 'show_google_components.php'); ?>
</div>
<?php
}
else {
?>
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
<?php }
?>
<!----------- GOOGLE CHECKOUT --------------->
</div>
Attach is the modify file.
This file should be copy to
/includes/templates/YOUR_TEMPLATE/templates folder
Colo......
Can you tell me if the 1.0.4 should now work to pay for gift certificates? Or if not, will it ever be able to deal with them?
I setup GCerts a few days ago, was pulling my hair out trying to figure out what I had done wrong, flipped over to pay by paypal, and all was fine.
I assume this is something to do with GC not forcing a login prior to checkout, dunno.
I did test by logging into ZC first, then buy a GCert pay by GC, left with no GC in que, no email back to cust with GC number, etc....
My suspicion is this may not be an "easy" one with the way GC wants to work?
Thoughts?
Second question......if the above is out, then is it possible to setup products to only allow specific method of payment? ie; if cust. buys a GCert, they are only allowed to checkout with other than GC?
Dave.......
Does anyone know which file is trying to access? The install pack does not include any /admin/googlecheckout folder... there are errors in the log stating the about reference cannot be found.Quote:
/admin/googlecheckout/responsehandler.php
Help please!
I very much want to install this mod but have a few questions.
As I understand this, Google Checkout will bypass Zen's checkout system.
Will the customer still be regulated by checking off on "Terms and Conditions" or Privacy if we choose our store that way? This is very important to some stores.
I also would like to follow up with a repeated question- Is this working with the Gift Cert.?
is there anything specific that i have to rename the YOUR_TEMPLATE folder into?
Are you using a template overide system? If not you should and do it first before proceeding. You can name it anything you like such as "custom_template", or "whatever_you_want".
And use this template system when ever you make changes to files such as this mod would require.
If you need more info on templates, here is a place to start;
https://www.zen-cart.com/tutorials/i...hp?article=232
but if i weren't using a template override system, would i have to rename the YOUR_TEMPLATE folder for google checkout to work?