Zen Cart Logo
Forums / Addon Payment Modules / Google Checkout why so hard?

Google Checkout why so hard?

Locked

Views: 2,073

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
7 Aug 2008, 10:40 PM
#1
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Google Checkout why so hard?

I'm in the middle of installing google checkout module. However, I find that some of the installation instructions may mislead some people. There is a section in their installation instructions for Option B step 5 that says to replace a certain line of code in tpl_login_default.php Line 55. The problem however is that the line you are about to replace doesn't exist. So the user is stuck

I found out the reason it didn't exists is probably due to the COWOA module that I put in, because there is that code that embeds itself between the code starting on Line 55. I think I'll be able to get it working but this is just a warning for people who might not know.

8 Aug 2008, 2:05 AM
#2
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Google Checkout why so hard?

Hello,
Does anyone know how to comment chunks of mix php&html code? I looked everywhere on the web but there doesn't seem to be a concrete answer on what works or if its even possible.
Thanks.

8 Aug 2008, 3:57 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: Google Checkout why so hard?

What exactly are you wanting to do? Are you wanting to identify parts of the code or disable it?

8 Aug 2008, 4:30 AM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Google Checkout why so hard?

The short answer is yes, but as Kim pointed out, more information is needed about what you're trying to do.

8 Aug 2008, 7:24 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,693
Plugin Contributions:
56

Re: Google Checkout why so hard?

If it's between a PHP start and end tag you can use two slashes for a one line comment:

// this is a comment

or /* and */ to enclose a multiline comment

/* This block
... is a comment.
*/

If it's outside of a PHP block and you're in html code, you can use HTML style commenting for single or multiple lines

<!-- this is a comment --> <!-- this block is a comment -->

Good luck,
That Software Guy

8 Aug 2008, 5:08 PM
#6
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Google Checkout why so hard?

I'm currently installing the google checkout module and it requires that huge chunks of code which has mix php&html be replaced. I usually don't like to just replace codes and rather comment them out in case anything goes wrong I can go back. It would take a long time to comment those chunks of code that are mixed php & html if I had to use mix commenting lines.

8 Aug 2008, 5:42 PM
#7
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Google Checkout why so hard?

Why is the google checkout module so hard to install? I mean with all the coding changes and modifications to the files. I have COWOA installed and now when I install googlec I need to replace code that doesn't have COWOA code embedded inside. But the files I'm modifying has COWOA inside so I have to weed out the right things to replace and the right thing to keep. Why don't zen cart make the googlec module as easy to install as the paypal modules. This googlec thing is making me scared of messing up code. does anyone know of any tips for me to do this integration easy?

8 Aug 2008, 5:52 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Google Checkout why so hard?

ebaobao:

I'm currently installing the google checkout module and it requires that huge chunks of code which has mix php&html be replaced. I usually don't like to just replace codes and rather comment them out in case anything goes wrong I can go back. It would take a long time to comment those chunks of code that are mixed php & html if I had to use mix commenting lines.

That's why one makes backups.

8 Aug 2008, 6:11 PM
#9
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Google Checkout why so hard?

Hi,
I'm desparately trying to get googlec installed. When I get to the section that says to replace code in orders.php, I'm stuck. The instructions are telling me to replace code that doesn't exists. I mean not that they don't exists, its just that they have been modified slightly by another module. So how am I going to do this replace to codes that have been modified slightly by another module?
Thanks.

8 Aug 2008, 7:06 PM
#10
ebaobao avatar

ebaobao

Zen Follower

Join Date:
Jul 2008
Posts:
495
Plugin Contributions:
0

Re: Google Checkout why so hard?

Hi DrByte,
I was wondering if you could give me some advice on how to approach the googlec checkout module. The problem is when the installation directions tell me to replace codes that have been slightly modified by other modules. What is the best approach to tackle this problem?
Thanks.

8 Aug 2008, 7:15 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Google Checkout why so hard?

WinMerge is your best friend when it comes to combining contents of two files.