Announcement

Collapse
No announcement yet.

Dual currency, cart display problem

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

    Dual currency, cart display problem

    ok, just playing with v7 templates and dual currencies.

    I have the currency setup to display as "£1.00 / E1.00" and this works ok in the product display, but in the basket display it put's it on a new line (see attachment)

    I view the source code bu it just looks like this -
    Code:
    document.write("Items&#58;&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
    document.write("Value&#58;&nbsp;" + getCartItem(1));
    which seems ok.

    Any idea where the new line is coming from?

    And if Normans watching - will this be fixed when I add norprice?
    Attached Files
    John

    #2
    That cell seems big enough for that second currency to show on the same line. But that's not what's happening.

    The format you're using for the second currency has a space before and after the /. This allows browsers to break text on these spaces to make lines fit the cell.

    You can try changing the format for a more compact one or adding some tags around the JavaScript to select smaller font. You can also use the nowrap tag withing the table cell that this is displayed in.

    If you use NorPrice to display the second currency it can use &nbsp; as the separator with a tiny bit of tweaking. However you may need to leave quite a lot of room as there are many currencies available that are thousands to the £, leading to rather long numbers.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      well in design ops/misc there is an option of a '/' with no spaces but it looks kind of messy. lke you said there is plenty of roomso it shouldn't be splitting the line.

      But I guess I'll wait until I install norprice and worry about it then. still deciding whether to use v6 or v7... 8)

      and only going to use Euro's and pounds so shouldn't be too many extra digits (for now anyway )
      John

      Comment


        #4
        I just amended my post above to mention the nowrap tag. That may help. You may also want to temporarily add some background colour to that table cell to see what's happening.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X