Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default ampersand in slogan

    Our company slow has an ampersand(&) in it. When I type it out in the store config I put the actual symbol but it automatically translates it to the html code & which is fine if you send html mail but I prefer plain text. Is there a way around this or must I write out 'and' rather than &?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: ampersand in slogan

    Although it seems funky based on the setting's title, navigate to your admin's Configuration :: Email Options and edit the setting Convert currencies for Text emails. The default value is
    Code:
    £,£:€,€:®,®:™,™
    and you'll add the conversion for the ampersand:
    Code:
    £,£:€,€:®,®:™,™:&,&

  3. #3
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    Quote Originally Posted by lat9 View Post
    Although it seems funky based on the setting's title, navigate to your admin's Configuration :: Email Options and edit the setting Convert currencies for Text emails. The default value is
    Code:
    £,£:€,€:®,®:™,™
    and you'll add the conversion for the ampersand:
    Code:
    £,£:€,€:®,®:™,™:&,&
    I had come across that trying to self-help and felt like it wasn't the right setting based on the wording. Thanks!

  4. #4
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    hm. Still shows the code rather than the symbol. To be clear, this is the subject line from the contact us form.

    "Website Inquiry from Pure Good Health & Wellness"

  5. #5
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    See I think the problem is that when I type the symbol from the code, the text field or code parsing thereafter is already converting the ampersand to & so the code you supplied looks like this before:

    Code:
    :&,&
    but like this after:
    Code:
    ;amp;,&;

    So I suspect I need to escape the character in the text field of the setting.

  6. #6
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    I can't seem to get this to work.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: ampersand in slogan

    Quote Originally Posted by plc613 View Post
    I can't seem to get this to work.
    admin (over)sanitization, again. If you're comfortable using your site's phpMyAdmin, you can enter the following in the SQL tab:
    Code:
    UPDATE configuration SET configuration_value = '£,£:€,€:®,®:™,™:&,&' WHERE configuration_key = 'CURRENCIES_TRANSLATIONS' LIMIT 1;

  8. #8
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    Quote Originally Posted by lat9 View Post
    admin (over)sanitization, again. If you're comfortable using your site's phpMyAdmin, you can enter the following in the SQL tab:
    Thanks Lat9. Backed up the db ran the patch and tested. Oddly (or not), in the admin it looks right in that the & is being shown as thought it will convert to a symbol yet the test using the contact for still doesn't show the symbol in the subject of the email!?


    Website Inquiry from Pure Good Health & Wellness

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: ampersand in slogan

    Quote Originally Posted by plc613 View Post
    Thanks Lat9. Backed up the db ran the patch and tested. Oddly (or not), in the admin it looks right in that the & is being shown as thought it will convert to a symbol yet the test using the contact for still doesn't show the symbol in the subject of the email!?


    Website Inquiry from Pure Good Health & Wellness
    Right, the change you made to that other setting affects the body of the message, not the subject.

    In a similar manner (using phpMyAdmin), you could run the following SQL:
    Code:
    UPDATE configuration SET configuration_value = 'Pure Good Health & Wellness' WHERE configuration_key = 'STORE_NAME' LIMIT 1;

  10. #10
    Join Date
    Apr 2014
    Location
    Canada
    Posts
    249
    Plugin Contributions
    0

    Default Re: ampersand in slogan

    Quote Originally Posted by lat9 View Post
    Right, the change you made to that other setting affects the body of the message, not the subject.

    In a similar manner (using phpMyAdmin), you could run the following SQL:
    Code:
    UPDATE configuration SET configuration_value = 'Pure Good Health & Wellness' WHERE configuration_key = 'STORE_NAME' LIMIT 1;
    I should have reiterated I was referring specifically to the subject line, sorry.

    Applied the new code and voila!

    Website Inquiry from Pure Good Health & Wellness

    Thanks!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. problem changing slogan and congrat text
    By vivianso in forum Basic Configuration
    Replies: 3
    Last Post: 23 Jun 2011, 07:09 AM
  2. Page Title and Slogan
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Apr 2010, 09:02 AM
  3. Ampersand in Product Name
    By FarmGrrl in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 22 Mar 2007, 01:40 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR