Announcement

Collapse
No announcement yet.

Changing the default currency symbol in Kermy's minicart

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

    Changing the default currency symbol in Kermy's minicart

    I downloaded Kermy's mini-cart for V8 and had no problems with installing it, it's a lovely little piece of work

    My question however is can anyone point me in the right direction to go about changing the currency symbol from pounds to "$"? I searched through the script and found a line that read:
    my $defaultCur="£";

    so I thought I could be clever and just change that to:
    my $defaultCur="$";

    but this made the whole Actinic shopping cart including the main cart fall over and break Does anyone know how to switch the currency symbols?

    #2
    Since $ is used by Javascript to identify variables ($defaultCur?) try pacing an escape character before the $, so that line becomes

    my $defaultCur="\$";
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      did it work tama chan?

      Comment


        #4
        Thanks for the suggestion! I did think it might have something to do with all the "$"'s in the coding.....

        I'm watching Actinic spin its way through a slow snapshot at the moment, but I'll give it a try after that and let you know

        Comment


          #5
          Chang the line from

          my $defaultCur="$";

          to

          my $defaultCur='$';

          and it should be fine.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X