Thread: Using % in text

Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Location
    Colorado Springs, CO
    Posts
    105
    Plugin Contributions
    0

    Default Using % in text

    I am trying to change what is said in the Welcome Guest message on main page. I know where to add it, but it does not like what I want. I want to use the statement, "20 % off if you register" HTML does like the use of the %. What do I need to type in order to use the % ?

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

    Default Re: Using % in text

    Use for the % the, without the spaces:
    & # 3 7 ;
    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
    Oct 2011
    Location
    Colorado Springs, CO
    Posts
    105
    Plugin Contributions
    0

    Default Re: Using % in text

    Ajeh,
    That did it!!!
    Thanks, your great

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

    Default Re: Using % in text

    You are most welcome ... thanks for the update that this worked for you ...
    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!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Using % in text

    Ajeh's suggestion is perfectly valid.
    A double-percent-sign would also work, ie: %%

    (If you want to understand the technical stuff behind it, this is because the PHP sprintf() function that's used there is using the % symbol as an instruction argument. The double %% tells it you want to actually use a common % sign ... ref: http://www.php.net/manual/en/function.sprintf.php )
    .

    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.

 

 

Similar Threads

  1. v151 Can't paste text using CKEditor
    By ttmb33 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 7 Aug 2013, 07:24 PM
  2. Text Alignment using Patriot Template
    By Stixx in forum Addon Templates
    Replies: 2
    Last Post: 5 Jul 2011, 01:13 AM
  3. Text format using Text Editor
    By saminca in forum Customization from the Admin
    Replies: 3
    Last Post: 23 Apr 2011, 12:48 AM
  4. using images instead of text
    By shwag in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Sep 2008, 03:59 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