This is a discussion on Google Checkout within the Google Checkout forums, part of the Payment Modules category; Google Checkout for Oscommerce: Anyone here tested this mod out? I have with oscmax and it's posting a number ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Google Checkout for Oscommerce: Anyone here tested this mod out? I have with oscmax and it's posting a number 1 where the google checkout button should be. I think it's cuz of BTS. It's located here: http://www.oscommerce.com/community/...oogle+checkout there's also a way better google checkout (API) for oscommerce that costs money here: http://www.graith.co.uk/google_checkout.php Hopefully someday this one will be free and oscmax could implement it since google checkout is going to be the future of ecommerce. Thanks, Ben |
|
#2
| |||
| |||
| Another commercial version. http://store.oscommerce-manager.com/ |
|
#3
| |||
| |||
| I've brought the price down and YES, it will be free in about six months (that's always been my intention). I downloaded OSCMax2 RC3 and updated the instructions for that, so Google Checkout Level 2 is now working properly with OSCMax. You even get the Customer telephone number with it. Brian Graith Internet |
|
#4
| ||||
| ||||
| Make sure to test your host for correct versions ofXMLDOm and curle http://www.graith.co.uk/test_google_functions.zip For example, I cannot run google checkout from Brian since my host different versions. In addition it will not work on PHP5 Later |
|
#5
| |||
| |||
| Hello... I am wondering if anyone has gotten the Google Checkout Level 2 contributions working on OscMax RC3? The install directions called for all changes to be made on shopping_cart.php, but BTS changes that. I think I might have something in the wrong place or somthing on the shopping_cart.tpl.php. Does anyone have this working and/or can help me navigate to the solution? I really want to get this working. Thanks, JonCLoud |
|
#6
| |||
| |||
| Does anybody have the Google Checkout Level 2 Contribution wiorking with OscMAX RC3? I have it completely installed according to instructions built for plain oscommerce. But as we all know, BTS changes some things. For the most part, I know how it works, but I am having a difficulty making the mods work on the shopping_cart.tpl.php/shopping_cart.php page/s. I'd really like to use this and take advatage of the Adwords savings it offers, but I need a brother to led me a hand, or a set of eyes to be sure. I just need someone to look at my page code and tell me what is wrong with it, for I am only a half-ass PHP guy. Here goes: The directions say: Quote:
Here is my code for that page: Code: <!--- Google Checkout Start--->
<?php require(DIR_WS_FUNCTIONS . 'GlobalAPIFunctions.php'); ?>
<?php require(DIR_WS_FUNCTIONS . 'CheckoutAPIFunctions.php'); ?>
<!--- Google Checkout End --->
<!-- body //-->
<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
if ($cart->count_contents() > 0) {
?>
<tr>
<td class="infoBoxHeading">
<?php
$info_box_contents = array();
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_REMOVE);
$info_box_contents[0][] = array('params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_PRODUCTS);
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_QUANTITY);
$info_box_contents[0][] = array('align' => 'right',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_TOTAL);
$any_out_of_stock = 0;
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Push all attributes information in an array
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
while (list($option, $value) = each($products[$i]['attributes'])) {
echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
//++++ QT Pro: Begin Changed code
$attributes = tep_db_query("select popt.products_options_name, popt.products_options_track_stock, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
where pa.products_id = '" . $products[$i]['id'] . "'
and pa.options_id = '" . $option . "'
and pa.options_id = popt.products_options_id
and pa.options_values_id = '" . $value . "'
and pa.options_values_id = poval.products_options_values_id
and popt.language_id = '" . $languages_id . "'
and poval.language_id = '" . $languages_id . "'");
//++++ QT Pro: End Changed Code
$attributes_values = tep_db_fetch_array($attributes);
$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
$products[$i][$option]['options_values_id'] = $value;
$products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];
$products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];
$products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];
//++++ QT Pro: Begin Changed code
$products[$i][$option]['track_stock'] = $attributes_values['products_options_track_stock'];
//++++ QT Pro: End Changed Code
}
}
}
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (($i/2) == floor($i/2)) {
$info_box_contents[] = array('params' => 'class="productListing-even"');
} else {
$info_box_contents[] = array('params' => 'class="productListing-odd"');
}
$cur_row = sizeof($info_box_contents) - 1;
$info_box_contents[$cur_row][] = array('align' => 'center',
'params' => 'class="productListing-data" valign="top"',
'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));
$products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
' <tr>' .
' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
if (STOCK_CHECK == 'true') {
//++++ QT Pro: Begin Changed code
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
$stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity'], $products[$i]['attributes']);
}else{
$stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
}
//++++ QT Pro: End Changed Code
if (tep_not_null($stock_check)) {
$any_out_of_stock = 1;
$products_name .= $stock_check;
}
}
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
$products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}
$products_name .= ' </td>' .
' </tr>' .
'</table>';
$info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
'text' => $products_name);
$info_box_contents[$cur_row][] = array('align' => 'center',
'params' => 'class="productListing-data" valign="top"',
'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));
$info_box_contents[$cur_row][] = array('align' => 'right',
'params' => 'class="productListing-data" valign="top"',
'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
}
//Google Checkout Start
include("Google_Item_Code.php");
//Google Checkout End
}
new productListingBox($info_box_contents);
?>
</td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td>
</tr>
<?php
if ($any_out_of_stock == 1) {
if (STOCK_ALLOW_CHECKOUT == 'true') {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td>
</tr>
<?php
} else {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td>
</tr>
<?php
}
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td>
<?php
$back = sizeof($navigation->path)-2;
if (isset($navigation->path[$back])) {
?>
<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>
<?php
}
?>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr></form>
<? //Google Checkout Start
include("Google_Button_Code.php");
//Google Checkout End
}
?>
</table></td>
</tr>
</table></td>
</tr>
<?php
else {
?>
<tr>
<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table> Now, as it is, it throws an error when you try to checkout: Quote:
Can anyone help me out, PLEASE? Pretty please with sugar on top? Thanks, JonCLoud [/quote] |
|
#7
| |||
| |||
| Google Checkout I looked at the module page but my version is 2.0 and I dont find the catalog folder under /store or /store/includes/language/english. I dont work with either OSCOMMERCE or OCSMAX 2.0 everyday. I was wondering if anyone had put into place the contribution listed here in the forum with 2.0? Thanks MrMikl |
|
#8
| |||
| |||
| Yes, I'm very interested in knowing whether the oscmax dev team is going to implement the recent level 2 google checkout module (located oscommerce.com) into the next releases. It would be a great addition to offer as a payment processor for those who don't have a merchant account. Can someone please post the status of this mod in conjunction to osmax future releases? Here's the link to the level 2 module contrib: http://www.oscommerce.com/community/...oogle+checkout |
|
#9
| |||
| |||
| michael_s created a zip file with the files to copy straight over see (Google Checkout Module?) but the problem is that it has errors. But this may help. I have asked for help on multiple occasions for this contribution but no luck so far, although a member called ropu is working on it at the moment see here (Issue 32 - google-checkout-oscommerce - Google Code) I hope this helps. If you get this one working that would be brill. I have attempted many installs like many others on this forum with no luck. This looks like one of those work in progress contributions with many faults at the moment, interest is growing in this contribution as far as I can see with the growing number of posts on this topic. Good luck |
|
#10
| ||||
| ||||
| AFAIK there are no errors in the google checkout module I packaged up. It works flawlessly for me and nobody has told me specifically where it is not working for them. Tell me exactly the issue and I can fix it... I just drop in the modified files into my stock osCMax 2 shop and it works 100% every time. No errors. No problems.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google-Analytics | dasmurphy | osCMax v2 Customization/Mods | 3 | 08-24-2006 09:02 AM |
| google checkout ? | louis1st | osCMax v2 Features Discussion | 1 | 06-29-2006 06:24 AM |
| Google Ads | battleaxe | osCMax v1.7 Discussion | 0 | 06-04-2004 01:21 PM |