If this is your first visit, check our documentation. To post, register or login.

Using % in text

Started by fukienman on 8 Nov 2011, 11:08 PM · Views: 1,081

Results 1 to 5 of 5
8 Nov 2011, 11:08 PM
#1
fukienman avatar

fukienman

Zen Follower

Join Date:
Oct 2011
Location:
Colorado Springs, CO
Posts:
114
Plugin Contributions:
0

Post #1 by fukienman

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 % ?

9 Nov 2011, 12:25 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

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!

9 Nov 2011, 2:24 AM
#3
fukienman avatar

fukienman

Zen Follower

Join Date:
Oct 2011
Location:
Colorado Springs, CO
Posts:
114
Plugin Contributions:
0

Post #3 by fukienman

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

9 Nov 2011, 2:25 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

You are most welcome ... thanks for the update that this worked for you ... :smile:

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!

9 Nov 2011, 2:31 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

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.