Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Googlecheckout contrib for osc v2.2 rc2 please


Guest

Recommended Posts

Hello Everyone,

 

Before posting this I have scroured the forum looking for answers. I am running OSCv2.2 RC2 and I am looking for a Googlecheckout contribution.

In mrchains contribution from 31st JAN 2008 it asks you to change the following code:-

 

 

----------------------------------------------------------------------------

6. /catalog/shopping_cart.php LINE 197

============================================================================

REPLACE:

 

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

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

?>

 

But I don't have this code I have:-

 

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

</table></td>

</tr>

</table></td>

</tr>

<?php

$initialize_checkout_methods = $payment_modules->checkout_initialization_method();

 

if (!empty($initialize_checkout_methods)) {

?>

 

Can somebody please point me in the right direction.

 

Many Thanks

Darren

Link to comment
Share on other sites

Hi all,

Really simple one this.

I've just downloaded the google cart contrib and want to install it, however in the install guide it tells me to copy files to the OSC directory and the OSC/Catalogue directory, which I don't have.

My file structure is simply

public_html/osshop/

and from here you can go into admin, download, ext, images, includes or pub

so I don't understand where to put the first sets of files.

Any help would be appreciated.

Thanks

Jon

Link to comment
Share on other sites

Hi all,

Really simple one this.

I've just downloaded the google cart contrib and want to install it, however in the install guide it tells me to copy files to the OSC directory and the OSC/Catalogue directory, which I don't have.

My file structure is simply

public_html/osshop/

and from here you can go into admin, download, ext, images, includes or pub

so I don't understand where to put the first sets of files.

Any help would be appreciated.

Thanks

Jon

 

Basically you are just coping the files to whatever directory you have your shop in.

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Link to comment
Share on other sites

I had the same problem and was able to get help figuring this out.

 

try this out just replace the code with this

 

<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>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
// ** GOOGLE CHECKOUT **
// Checks if the Google Checkout payment module has been enabled and if so
// includes gcheckout.php to add the Checkout button to the page
if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {
?>
  <tr>
	<td>
<?php
  include_once('googlecheckout/gcheckout.php');
?>
	</td>
  </tr>
<?php
}
// ** END GOOGLE CHECKOUT **

$initialize_checkout_methods = $payment_modules->checkout_initialization_method();

if (!empty($initialize_checkout_methods)) {
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td align="right" class="main" style="padding-right: 50px;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></td>
  </tr>
<?php
  reset($initialize_checkout_methods);
  while (list(, $value) = each($initialize_checkout_methods)) {
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td align="right" class="main"><?php echo $value; ?></td>
  </tr>
<?php
  }
}
 } else {
?>

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...