Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

    Using apostrophe within code

    I know there is a simple way to do this, but I can't remember how. Every time I need to insert my store name (Judy's Gems) I come up with this problem. I've been inserting Judys Gems for the time being thinking I would remember, but nooooo

    Will someone be kind enought to tell me the fix

    Thank you

    Judy

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using apostrophe within code

    What you are missing is an "escape" character ... the backslash ... example:
    define('PRODUCTS_PRICE_IS_FREE_TEXT','It\'s Free!');
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2006
    Posts
    41
    Plugin Contributions
    0

    Default Re: Using apostrophe within code

    I knew it was something simple!
    Thanks a million
    Judy (with a red face)

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using apostrophe within code

    Don't feel too bad ... there are days I have to check ... was that slash or backslash?! I am such a dyslexic at times ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 4
    Last Post: 25 Jul 2013, 09:53 PM
  2. Using an apostrophe in HEADER_SALES_TEXT
    By Hell Guapo in forum Basic Configuration
    Replies: 4
    Last Post: 7 Jul 2011, 12:52 PM
  3. Using html code in EZ-Page
    By dancindharma in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Sep 2008, 02:27 AM
  4. Replies: 1
    Last Post: 27 Oct 2006, 10:11 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