Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Escaping { in custom module code
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 10-15-2014, 07:36 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Red face Re: Escaping { in custom module code

Okay, getting really close! New output:

(snip) publisher:& # 039; (snip)
How do I make flexy not encode my quotes into & # 039; ? (spaces added so it won't encode here)
__________________
X-Cart Business 5.1.6
Reply With Quote
  #12  
Old 10-15-2014, 08:16 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,430
 

Default Re: Escaping { in custom module code

Aw, you should call your getShareCode() method in template like this {getShareCode():h} as Flexy encodes special chars by default. :h modifier disables such encoding.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
haleystudio (10-15-2014)
  #13  
Old 10-15-2014, 09:05 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Default Re: Escaping { in custom module code

Aha! That worked great. The code for the Newsletter (MailChimp) section looks like it's working like it should.

One last tiny thing. I have the code looking great in the source view. But the icons are not displaying on the site (they are drawn by the script).
EDIT: they are showing up in Safari, not Firefox or IE (all on PC). But the links don't seem to work well on Safari. /EDIT

Site: https://7sorrowsrosaries.com/ -- section is "Share this page" on the bottom of the left column.

I put the exact same code on a test page, here: (no compiler, this is straight html) http://haleystudio.com/script-test.html and it works fine (links work too).

AND -- get this -- when I saved the page from 7sorrowsrosaries.com as "save as full web page" and then previewed it, without changes, in the same browser, NO PROBLEM. Can't tell if the links are working from there... but at least the icons are displaying. Here's the screenshot.

http://haleystudio.com/images/clients/share-gif.gif
__________________
X-Cart Business 5.1.6
Reply With Quote
  #14  
Old 10-15-2014, 11:55 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Escaping { in custom module code

I think the buttons do not display, because you have included an http: reference to the script, and the link to the page above is https.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
haleystudio (10-15-2014)
  #15  
Old 10-16-2014, 05:13 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Default Re: Escaping { in custom module code

Okay! Thank you all SO MUCH.

It's still not working great -- but from here on I think it's a Javascript thing vs. an X-Cart thing, so I'll take those troubles elsewhere!
__________________
X-Cart Business 5.1.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:52 AM.

   

 
X-Cart forums © 2001-2020