Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    62
    Plugin Contributions
    0

    Default Trying to change copy/text on PHP on checkout page and getting an error

    I'm trying to change this:
    PHP Code:
    define('HIDEREGISTRATION_COWOA''<p>Proceed to checkout, and you will have a chance to create an account in the next step.</p>'); 
    To this:
    PHP Code:
    define('HIDEREGISTRATION_COWOA''<p>Don't have an account yetCreate one now or simply checkout as a guestWith an account you can: </p>'); 

    I'm getting multiple syntax errors though when I do this. My text editor is highlighting the "?", "or" and "</p>" in blue. I don't understand why.

    I'm a novice php guy btw.

    Cheers

  2. #2
    Join Date
    Jan 2012
    Posts
    62
    Plugin Contributions
    0

    Default Re: Trying to change copy/text on PHP on checkout page and getting an error

    Figured it out. I removed the apostrophe from "Don't" and the php passed. How come it does this though????

  3. #3
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Trying to change copy/text on PHP on checkout page and getting an error

    Quote Originally Posted by bigstore View Post
    Figured it out. I removed the apostrophe from "Don't" and the php passed. How come it does this though????
    Since apostrophes are used in the coding itself, you need to escape them if you want to use them for text. Like this:

    Don\'t.

  4. #4
    Join Date
    Jan 2012
    Posts
    62
    Plugin Contributions
    0

    Default Re: Trying to change copy/text on PHP on checkout page and getting an error

    great thanks!

 

 

Similar Threads

  1. v150 Customers getting error when trying to checkout
    By coucho in forum General Questions
    Replies: 20
    Last Post: 13 Nov 2012, 04:05 AM
  2. Newbie getting this php error when trying to setup
    By Eddie French in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 23 Nov 2009, 11:39 PM
  3. Replies: 2
    Last Post: 3 Aug 2008, 03:51 PM
  4. Replies: 2
    Last Post: 25 Mar 2008, 07:24 PM
  5. Replies: 3
    Last Post: 15 Aug 2006, 10:23 AM

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