Announcement

Collapse
No announcement yet.

&nbsp appearing when logged in...

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

    &nbsp appearing when logged in...

    On my product screen the price is displayed as follows -

    £44.65
    (£38.00+VAT)

    But when I log in as a customer it displays -

    £44.65 &nbsp
    (£38.00+VAT)
    £44.65 &nbsp
    (£38.00+VAT)

    "ahah!" I thought, some careless oaf has left the semi-colon off... So, I managed to track down the offending &nbsp in design|text (id:219) and added a semi-colon. But now it displays -

    £44.65  
    (£38.00+VAT)
    £44.65  
    (£38.00+VAT)

    DOH! What's causing that?
    John

    #2
    Can't say why it's showing but have you thought of deleting it?

    (but make a note of it somewhere in case you decide later on that you want it).

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      strange. I deleted it and then the whole price disappeared (at least when not logged in, didn't try it when logged in)!

      btw. this is the code produced which explains why it's displayed on the screen like that -
      Code:
      <span class="actxlarge"><B>&#163;30&#46;55&#32;&#38;nbsp&#59;</B></span>
      - the & has been replaced by the code for an & - but why?
      John

      Comment


        #4
        great the board translated the code so the post makes no sense, I will try again... grrrr.... it won't do it! ok, here is the line but imagine it without the spaces....

        <span class="actxlarge"><B> & #163 ; 30 & #46; 55 & #32; & #38; nbsp & #59; </B></span>
        John

        Comment


          #5
          Go back to Design | Text, ID:219 and click on 'Restore Default', that should fix it.

          Kind regards,
          Bruce King
          SellerDeck

          Comment


            #6
            ah. the default is " (Including: %s)" which displays -

            "£100.00 (Including: VAT at 17.5%)"

            But I just want it to display "£100.00".

            I just tried leaving it blank but then it doesn't display anything... and the &nbsp; works fine until logged in then gives the original error...

            So how do I get it to just display the price?
            John

            Comment


              #7
              Have you tried using a single space character? That seems to be what we've got at that particular ID, although unfortunately I can't vouch for how well it works with customer accounts.

              Comment


                #8
                ah yes, that seems to work ok for both - thanks!
                John

                Comment


                  #9
                  Those %s values can cause problems at a later stage if missing. The better way would be to delete everything but the %s and place tags around it so it has a space and then <!--%s-->.

                  Kind regards,
                  Bruce King
                  SellerDeck

                  Comment


                    #10
                    Originally posted by Bruce
                    Those %s values can cause problems at a later stage if missing. The better way would be to delete everything but the %s and place tags around it so it has a space and then <!--%s-->.
                    Ah, that's interesting. I purged quite a few of the design text entries from the database when trying to get rid of redundant markup, which could explain a few of the issues I've seen on the site lately.

                    Thanks for that info, Bruce.

                    Comment


                      #11
                      Hi Rob,
                      I just noticed your post here.
                      Your button label issue may well be because of some missing %s in the design text as Bruce has indicated.

                      Do you recall how many or even which ones you have removed?
                      Fergus Weir - teclan ltd
                      Ecommerce Digital Marketing

                      SellerDeck Responsive Web Design

                      SellerDeck Hosting
                      SellerDeck Digital Marketing

                      Comment


                        #12
                        Hi Fergus,

                        I was just thinking the same thing. Most of the entries I removed tended to be out of necessity since they were affecting my templates, but I can't promise that I haven't removed something vital.

                        I'll have a go at restoring some of the default values in the morning to see if that helps matters.

                        Comment


                          #13
                          Originally posted by Bruce
                          Those %s values can cause problems at a later stage if missing. The better way would be to delete everything but the %s and place tags around it so it has a space and then <!--%s-->.
                          LOL, ok I did that but now when logged in it says -
                          £70.50 <!-- VAT at 17.5% -->
                          There's just something weird in the 'logged in' code...
                          John

                          Comment


                            #14
                            Bruce, can you explain what the templates are doing here?

                            As far as I can tell, using debug code, the price code is called up from the product page like so - NETQUOTEVAR:PRODUCTPRICE

                            The actual code that displays the price appears to be ACT_ProductPrice.html - however, this only displays one price. When logged in it displays 2 prices (retail and member price), but it appear to do this by being called twice with different values (as opposed to most other templates which have everything listed, but only call the relavent stuff).

                            There is also something weird going on in this process where all html code is turned into &# codes, which is why the <!-- comment --> and &nbsp; are displayed as text on the page.

                            So what is going on and how do we fix it?
                            John

                            Comment


                              #15
                              OR, as an alternative, where do I change the text in %s?

                              £10.00 (including: VAT at 17.5%) is just too long, but I could probably live with £10.00 (inc VAT)

                              In other words, how do I lose the "at 17.5%"?
                              John

                              Comment

                              Working...
                              X