Announcement

Collapse
No announcement yet.

URGENT: Wrong price tag

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

    URGENT: Wrong price tag

    This is seriously a grave problems that i think need to be changed asap. The price was displayed wrongly, for eg, this link: http://www.hst.com.sg/acatalog/egypt...ton-A165a.html and look for this, "Price per cm: US $0.33 / CAD 0.43 Price per metre: US $0.33 / CAD 43".

    Notice in CM: the price is $0.33; in Metre: the price is still $0.33. Thus, it was an error in the hardcoded version i guessed..Price Per Cm was generated by ACTINIC but Price per metre was hardcoded. However, i am not sure where those codes were written in? I am not sure of which template was added with that code. Someone please help. because these weren't done by me before. Where can i find those? I was loooking at Act_productline, Act_price but i couldnt find it.. sigh. Someone please help.
    Http://www.hst.com.sg

    #2
    Hi, somone pls help? I have also attached a notepad of Act_productline template.HOpe it can help u guys to guide me. Thanks.

    Edited: Anyone able to tell me what is the code that indicate the price display? is it NETQUOTEVAR: PRICEEXPLANATION? or PRICEPROMT? which one? where can i find it?
    Attached Files
    Http://www.hst.com.sg

    Comment


      #3
      Hi Ron

      Could I also see Act_ProductPrice.html?

      Comment


        #4
        Also, check there is nothing to do with prices embedded within your 'Full Description' field in the products.

        Comment


          #5
          Hi,


          If you mean by checking the individual product-In product detail/full description- it has nothing to do with price, no embedded msg there too. Its merely product details. Yup. Thank you in adv.


          Warmest Regards,
          Swee
          Attached Files
          Http://www.hst.com.sg

          Comment


            #6
            The bit of code in your ProductLine template which interests me is as follows:
            <b>NETQUOTEVAR:PRODUCTPRICE</b>
            <script language=JavaScript>
            <!--
            var mainprice = metreprice(thiscost);
            if ( mainprice) document.write('<br><b>' + mainprice + '</b>');
            //-->

            <!--
            var mainprice = usd(thiscost);
            if ( mainprice) document.write('<br><br><font color=808080>' + mainprice+ '</font>');
            //-->

            <!--
            var mainprice = euro(thiscost);
            if ( mainprice) document.write('<font color=808080>' + mainprice+ '</font>');
            //-->
            </script>
            Whoever set up your site has created a sophisticated JavaScript function to lay out the price in a variety of ways (price per metre, US price, Euro price). Somewhere, the 'metreprice', 'usd' and 'euro' functions are defined (check the <head> section of Act_Primary.html). I also need to see your Act_ProductPrice.html template to get more of an idea of what is happening there.

            To be honest Ron, I think you need to speak to the person who designed your site to find out what is happening. Your problem is not to do with Actinic functionality.

            Comment


              #7
              I think I helped with this over a year ago. The JavaScript is certainly based on some I wrote for you. Unfortunately the person who I was dealing with at your site then kept demanding more, more and more help directly from me.

              So I'm afraid I'm all burned out with regards to your site and won't be able to help for free other than to suggest you switch to a single currency (remove the CAN$ via Design / Optiopns / Miscellaneous / Also Display Prices In) as that was how your site originally worked.

              Norman
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Hi all,

                Haha..Norman, because we were Internship students and i had no contact with the previous interns either. Anyway, I'm sorry if we kept demanding questions, been so irking- my apologise..i would try to ask lesser and do it myself as much as i really really hope i can. =)

                yah, Cdicken, there's no problem with the functionality but i have a problem on where to locate the codes that he has added. As he and you guys are more familiarize with the software, i thougth it would be better for you guys to tell me.

                Norman, I have already disabled the CAN price temporarily. However, i would really wish to put it back. Thus, what do you suggest? Any ideas where can i spot those codes from?

                Thank you very much.

                Warmest Regards,
                Swee
                Attached Files
                Http://www.hst.com.sg

                Comment


                  #9
                  The changed templates are:-

                  Your Product Template (actual file name not known by me).

                  Act_ProductPrice.html

                  and the JavaScript that does most of the work is in

                  Act_Primary.html

                  As you see it works if you only display a single price. Someone will have to adapt the JavaScript to detect both prices from the metreprice function and to scale them up.

                  Norman
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Sorry Norman, i don't get what you mean? Would u simplify it. Thank you.
                    Http://www.hst.com.sg

                    Comment


                      #11
                      If you don't understand then a JavaScript programmer will. If you don't have anyone who understands JavaScript then you'll have to hire one (me perhaps). I've told them all the places to look for the changes to Actinic.

                      Norman
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #12
                        hahha..no no, i understnasd javascript. I learnt that already. what i mean is i dont understand what you mean? like what do you mean changed template?
                        Http://www.hst.com.sg

                        Comment


                          #13
                          Hey...Norman,

                          I found this code from Act_priLeft.html. Is this the function to calculate the Metre price in CAnada?

                          <script language=JavaScript>
                          <!--
                          function metreprice(thiscost) { // convert an actinic price string into 10 times it's value
                          var newprice = '';
                          thiscost = thiscost.replace(/&#46;/g,"."); // restore decimal points
                          var nums = thiscost.match(/(.*)(\d+)\.(\d)(\d)(.*)/); // pick out the fragment
                          if (nums != null)
                          {
                          newprice = 'Price per metre: US&nbsp;&nbsp;' + nums[1] + ((nums[2] * 100) + (nums[3] * 10 ) + (nums[4] - 0));
                          }
                          return newprice;
                          }

                          --> is it calculated wrongly. cos, it show this:
                          EXAMPLE:
                          Price per cm: US $0.33 CAN 0.43
                          Price per metre: US $33 CAN 0.43

                          Bolded one are wrong.
                          Http://www.hst.com.sg

                          Comment


                            #14
                            But Cant be. Its already commented off, isnt it. Sigh
                            Http://www.hst.com.sg

                            Comment


                              #15
                              Sorry. As I said earlier I've spent FAR too much time on your site to go into all this again for free. Your predecessor asked and got answered over 38 questions by me! If you want my help contact me off-forum for a quote.

                              Norman
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment

                              Working...
                              X