Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Google Checkout Module Warning!

    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.

  2. #2
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default commenting chunks of mix php&html code

    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.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: commenting chunks of mix php&html code

    What exactly are you wanting to do? Are you wanting to identify parts of the code or disable it?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: commenting chunks of mix php&html code

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

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: commenting chunks of mix php&html code

    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
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: commenting chunks of mix php&html code

    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.

  7. #7
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default 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. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: commenting chunks of mix php&html code

    Quote Originally Posted by ebaobao View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Google Checkout - Replacing Code

    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.

  10. #10
    Join Date
    Aug 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: commenting chunks of mix php&html code

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Frustrated, why is is so hard to customise?
    By logicalstep in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 26 Jan 2011, 11:51 AM
  2. Replies: 1
    Last Post: 19 Oct 2010, 01:00 PM
  3. Google Checkout: Why 777 for *.log files ???
    By neckwood in forum Addon Payment Modules
    Replies: 1
    Last Post: 26 May 2009, 08:27 PM

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