OsCommerce

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Kiefer

    #1

    OsCommerce

    Hi there

    Is there enyone in here that know something about OsCommerce?

    Because I am having a small problem. I would like to add decimals to my
    quantity but it won't work if I don't use a . (point). If I use a comma
    instead it does not work properly.

    But is it possible to change the point in the quantity in shopping basket
    to a comma instead of using the point?

    I have set the local setting to Danish with decimal point to a comma and a
    thousend separator to a point.

    Somehov I think a "setlocale(LC_A LL, 'da_DK');" is missing somewhere?

    --
    Best regards
    Martin Kiefer



  • Graham

    #2
    Re: OsCommerce

    Martin Kiefer wrote:
    [color=blue]
    > Hi there
    >
    > Is there enyone in here that know something about OsCommerce?
    >
    > Because I am having a small problem. I would like to add decimals to my
    > quantity but it won't work if I don't use a . (point). If I use a comma
    > instead it does not work properly.
    >
    > But is it possible to change the point in the quantity in shopping basket
    > to a comma instead of using the point?
    >
    > I have set the local setting to Danish with decimal point to a comma and a
    > thousend separator to a point.
    >
    > Somehov I think a "setlocale(LC_A LL, 'da_DK');" is missing somewhere?
    >
    > --
    > Best regards
    > Martin Kiefer
    > www.kiefer.dk[/color]

    I suggest you try asking here: http://forums.oscommerce.com/

    Comment

    • Martin Kiefer

      #3
      Re: OsCommerce


      "Graham" <nospam@spam.co m> skrev i en meddelelse
      news:nem4c.5150 6$QP.20037@twis ter.rdc-kc.rr.com...[color=blue]
      >
      > I suggest you try asking here: http://forums.oscommerce.com/[/color]

      I think they know a lot about setting up OsCommerce. But I am afraid that
      their php skills is not the bests. I did not recieve any reply on a similar
      post. That is why I tried asking here hoping that someone with better php
      skills could help me out.

      --
      Best regards
      Martin Kiefer



      Comment

      • Marian Heddesheimer

        #4
        Re: OsCommerce

        On Fri, 12 Mar 2004 17:57:48 +0100, "Martin Kiefer" <news1@kiefer.d k>
        wrote:
        [color=blue]
        >But is it possible to change the point in the quantity in shopping basket
        >to a comma instead of using the point?[/color]

        i had good results just replacing the comma with the point using
        str_replace()

        Just give it a try :-)

        Marian

        --
        Internet-Dienstleistunge n - von der Webseite bis zum Online-Shop
        http://www.heddesheimer.de mailto:marian@h eddesheimer.de

        Comment

        • Martin Kiefer

          #5
          Re: OsCommerce


          "Marian Heddesheimer" <120304.20.noli nk@spamgourmet. com> skrev i en
          meddelelse news:ia44501at8 djo7q9nu58ji3iu g42o4s0t9@4ax.c om...[color=blue]
          > i had good results just replacing the comma with the point using
          > str_replace()
          >[/color]

          Sound like a pretty good idea. But I can't see how it can be done. I have
          the value "1,25" and wish to replace the , with a . so the value changes to
          "1.25".

          How can I look into a string to replace a comma?

          --
          Mvh
          Martin Kiefer



          Comment

          • Henk Verhoeven

            #6
            Re: OsCommerce

            Hi Martin,

            I know nothing about OsCOmmerce, but u do know that Setting the number
            locale to support comma as number separator breaks automatic conversion
            of data retrieved from MySQL (unless you can make MySQL use the comma
            too). Maybe that's why they did not put in setlocale(LC_AL L, 'da_DK').

            Greetings,

            Henk Verhoeven,
            www.phppenuts.org,



            Martin Kiefer wrote:[color=blue]
            > Hi there
            >
            > Is there enyone in here that know something about OsCommerce?
            >
            > Because I am having a small problem. I would like to add decimals to my
            > quantity but it won't work if I don't use a . (point). If I use a comma
            > instead it does not work properly.
            >
            > But is it possible to change the point in the quantity in shopping basket
            > to a comma instead of using the point?
            >
            > I have set the local setting to Danish with decimal point to a comma and a
            > thousend separator to a point.
            >
            > Somehov I think a "setlocale(LC_A LL, 'da_DK');" is missing somewhere?
            >
            > --
            > Best regards
            > Martin Kiefer
            > www.kiefer.dk
            >
            >[/color]

            Comment

            • Hayden Kirk

              #7
              Re: OsCommerce

              Yes

              Goto Localization in the admin menu,

              Select your default and edit it.

              Change it in there...

              Hope this helps

              - Hayden Kirk
              iXon LTD


              "Martin Kiefer" <news1@kiefer.d k> wrote in message
              news:4051ebe7$0 $67468$edfadb0f @dtext02.news.t ele.dk...[color=blue]
              > Hi there
              >
              > Is there enyone in here that know something about OsCommerce?
              >
              > Because I am having a small problem. I would like to add decimals to my
              > quantity but it won't work if I don't use a . (point). If I use a comma
              > instead it does not work properly.
              >
              > But is it possible to change the point in the quantity in shopping basket
              > to a comma instead of using the point?
              >
              > I have set the local setting to Danish with decimal point to a comma and a
              > thousend separator to a point.
              >
              > Somehov I think a "setlocale(LC_A LL, 'da_DK');" is missing somewhere?
              >
              > --
              > Best regards
              > Martin Kiefer
              > www.kiefer.dk
              >
              >[/color]


              Comment

              • Martin Kiefer

                #8
                Re: OsCommerce


                "Hayden Kirk" <spam@spam.co m> skrev i en meddelelse
                news:jKx4c.1052 $u%1.166338@new s02.tsnz.net...[color=blue]
                > Yes
                >
                > Goto Localization in the admin menu,[/color]

                Allready done that. But this does not change the quantity field.

                --
                Mvh
                Martin Kiefer



                Comment

                • Marian Heddesheimer

                  #9
                  Re: OsCommerce

                  On Fri, 12 Mar 2004 23:00:26 +0100, "Martin Kiefer" <news1@kiefer.d k>
                  wrote:
                  [color=blue]
                  >Sound like a pretty good idea. But I can't see how it can be done. I have
                  >the value "1,25" and wish to replace the , with a . so the value changes to
                  >"1.25".[/color]

                  open application_top from /catalog/includes/ and find all relevant
                  lines in the switch branch "update_product " and "add_produc t"

                  then use str_replace like this:
                  $HTTP_POST_VARS['cart_quantity'][$i] = str_replace("," , ".",
                  $HTTP_POST_VARS['cart_quantity'][$i]);

                  this should do it.

                  Marian

                  --
                  Internet-Dienstleistunge n - von der Webseite bis zum Online-Shop
                  http://www.heddesheimer.de mailto:marian@h eddesheimer.de

                  Comment

                  • Martin Kiefer

                    #10
                    Re: OsCommerce


                    "Marian Heddesheimer" <120304.20.noli nk@spamgourmet. com> skrev i en
                    meddelelse news:95h5501bk4 40327882rpdnbhf eg6ktiuns@4ax.c om...[color=blue]
                    >
                    > open application_top from /catalog/includes/ and find all relevant
                    > lines in the switch branch "update_product " and "add_produc t"
                    >
                    > then use str_replace like this:
                    > $HTTP_POST_VARS['cart_quantity'][$i] = str_replace("," , ".",
                    > $HTTP_POST_VARS['cart_quantity'][$i]);
                    >[/color]

                    Oh boy was it that easy... Thank you so much for helping me out. I have been
                    looking at this for several days now :-)

                    --
                    Mvh
                    Martin Kiefer

                    Reply til min mail går til /dev/null


                    Comment

                    Working...