Announcement

Collapse
No announcement yet.

xe.com currency coverter and & sign %A3 firefox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    xe.com currency coverter and & sign %A3 firefox

    Hello Good Buddies,

    I've just put xe.com currency converter on my checkout pages as per the instructions in the AUG and on the xe.com website
    http://www.xe.com/ecc/shoppers/

    When i go to the checkout in IExplorer all is fine. The 'convert' field in the xe.currency converter uses the NETQOUTEVAR:TOTAL without problem, the £ sign being displayed correctly, and thus the currency conversion works fine.

    However, if i visit the shopping cart using firefox, the 'convert' field, instead of showing the £sign, shows;'%A3' so when you press 'go' the result is wrong. (a 3 is added to the front of the price giving a conversion hundreds of dollars out)

    Am i being a monkey?
    Is this just a browser issue?
    I've tried changing the character encoding on firefox to every option, but none seem to render the £ sign correctly.

    Could anyone have a look in IE and Firefox and tell me what they see?

    http://arka-shop.co.uk

    Thanks,
    Feemish

    I thought this thread might be relevant... but now i dont... and its for v8 anyway
    http://community.actinic.com/showthr...light=currency
    Arka Tribal Jewellery

    #2
    I was going to suggest NETQUOTEVAR:COST however that also puts in the pound sign and it gets converted.
    Peblaco

    Comment


      #3
      Hi louise, thanks for looking anyway
      Arka Tribal Jewellery

      Comment


        #4
        Any Clues anyone?

        Xe.com wont offer any support for the currency converter.
        Is there a way to take the pound sign off the NETQOUTEVAR:TOTAL

        http://www.arka-shop.co.uk

        Feemish
        Arka Tribal Jewellery

        Comment


          #5
          It might a browser issue, the XE site says;
          Unfortunately, only Microsoft Internet Explorer currently allows embedded frames
          Or are you using the independent floating window version?
          http://www.bowstock.co.uk

          Comment


            #6
            Hi,
            I'm using the embedded <IFrame>
            The fram is embedded fine in firefox, its just the pound sign thats interfering with the calculation.

            If you go to my site, put something in the basket and go to checkout, you'll see what i mean.

            http://www.arka-shop.co.uk
            Arka Tribal Jewellery

            Comment


              #7
              I think you may need some js to strip out the pound sign before passing it.

              Comment


                #8
                HHmm.. any clues on how to do that... Unfortunately i know no JavaScript.
                Arka Tribal Jewellery

                Comment


                  #9
                  Code:
                  <script type="text/javascript">
                  function XE() {
                  var find = "£";
                  var repl = "";
                  var find = "%A3";
                  var repl = "";
                  var page = document.body.innerHTML;
                  while (page.indexOf(find) >= 0) {
                  var i = page.indexOf(find);
                  var j = find.length;
                  page = page.substr(0,i) + repl + page.substr(i+j);
                  document.body.innerHTML = page;
                  }
                  }
                  </script>
                  £ should be & # 1 6 3 ; (without spaces, the community converts it).

                  With an onload for the body tag:
                  Code:
                  <body onload="XE()">
                  Strangely, when I use the xe.com converter code it works in Firefox without this Javascript. Could it be a server character set issue?.
                  Peblaco

                  Comment


                    #10
                    Originally posted by peblaco
                    ....

                    Strangely, when I use the xe.com converter code it works in Firefox without this Javascript. Could it be a server character set issue?.
                    Odd - it doesn't work for me in FF only in IE.

                    Comment


                      #11
                      Add to cart at [EDIT: Old link removed] are you getting a pound sign in the XE converter "Convert" field? I am. I've got Firefox version 2.0.0.7.
                      Peblaco

                      Comment


                        #12
                        Add to cart at [EDIT: Old link removed] are you getting a pound sign in the XE converter "Convert" field? I am. I've got Firefox version 2.0.0.7.
                        I'm also using firefox 2.0.0.7
                        when i visit your test site and go to checkout it all works fine, the correct value is displayed... but there is no £ (pound) sign in the 'convert' field... odd

                        Also, strangely, the format and appearance of the embedded converter has changed today ! to the ligh blue xe personal currency assistant... and now the value in my 'convert' field on my site no longer has the %A3 but just '3' added to the front of the total!!
                        Very confusing.

                        http://www.arka-shop.co.uk
                        Arka Tribal Jewellery

                        Comment


                          #13
                          Hey Louise

                          we're both using exactly the same code... i just checked... and yet if i go to checkout using firefox at your store it works.. whereas at mine it doesnt.
                          Why on earth should that be?
                          Whats the server character set issue? Could it be that i wonder?

                          Havent tried the javascript yet.... but thanks for that, i'll try it if i get nowhere else

                          http://www.arka-shop.co.uk
                          Arka Tribal Jewellery

                          Comment


                            #14
                            Originally posted by feemish
                            Hey Lisa,
                            You can't get away with that edit matey, I caught ya.

                            Originally posted by feemish
                            Whats the server character set issue?
                            It's the set of characters installed on the server. Well you'll need a new Javascript now since they changed the code and you're only left with a number 3.
                            Peblaco

                            Comment


                              #15
                              You can't get away with that edit matey, I caught ya.
                              Whoops..


                              Code:
                              <IFRAME SRC="http://www.xe.net/ecc/input.cgi?Template=se&Amount=NETQUOTEVAR:TOTAL&From=GBP" WIDTH=600 HEIGHT=150 NAME="Currency" FRAMEBORDER=0 SCROLLING=NO>
                              
                                <TABLE WIDTH=550 CELLPADDING=0 CELLSPACING=0 BORDER=0 BGCOLOR=#F0C090><TR><TD><TABLE WIDTH=100% CELLSPACING=1 CELLPADDING=0 BORDER=1><TR><TD WIDTH=15% BGCOLOR=#000000 ALIGN=CENTER VALIGN=MIDDLE ALIGN=CENTER>
                              <A HREF="javascript:CurrencyPopup('Amount=NETQUOTEVAR:TOTAL&From=GBP')"><IMG SRC="http://www.xe.com/currency/illegal2copy.gif" HEIGHT=45 WIDTH=45 BORDER=0 ALT="UCC" ALIGN=TEXTTOP></A></TD><TD bgcolor=#FFFFC0 VALIGN=MIDDLE><TABLE CELLPADDING=3 CELLSPACING=0 BORDER=0><TR><TD VALIGN=MIDDLE>   </TD><TD><FONT COLOR=#000000 face="Arial,Helvetica"><FONT SIZE=+1><b>Shopper's Currency Converter</B>™</FONT><FONT SIZE=-1>by XE.com<BR><B>Your browser does not support embedded frames. <A HREF="javascript:CurrencyPopup('Amount=NETQUOTEVAR:TOTAL&From=GBP')">Click here</A> to pop open a floating Shopper's Currency Converter™ window.</B></FONT></FONT></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>
                              </IFRAME>
                              Well thats the code on my page.... its the same as yours i think.

                              http://www.arka-shop.co.uk
                              Arka Tribal Jewellery

                              Comment

                              Working...
                              X