Announcement

Collapse
No announcement yet.

Looking for help on perl

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

    Looking for help on perl

    Hi. On my website, I need to get the cart detail content at the end of the checkout (list or product with code, name and price stored in the basket). I think that this information is stored in the online session file and the OrderScript perl file (os000001.pl) extracts it via a code.
    So I'm looking for somebody to write me a add on to get this information.
    Norman, the perl specilist is overbooked : hope that he is not the only one to understand perl on the forum !
    Thanks in advance
    Didier
    www.supreme.fr
    _____________________
    Saint Malo. France

    #2
    you'd be better off telling us why you want the data and how you want to use it. there is probably a MUCH better way of doing this.

    Comment


      #3
      I think Didier is after some PSP integration. See http://community.actinic.com/showthread.php?t=37083
      Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

      Comment


        #4
        Yes it is right. I would like to add a new PSP on my website. Everything is ready, we created an interface in php between actinic and the bank to send the information. Every thing works correctly and we can send the order number, order amount and information about the client. Just need to get the basket content (reference, name and price for the all the products on the basket).
        This information is stored in the online session file and I need a "perl specialist" to write this part of the interface.
        Didier
        www.supreme.fr
        _____________________
        Saint Malo. France

        Comment


          #5
          Hi, if everything is written in PHP and you need only the cart content then why don't you extract this from the session file on the server? You only need the session ID what is stored in a cookie. Once you got it you can read the session file what is just a plain XML file and you can extract the information you need.
          Zoltan
          Actinic Software
          www.actinic.co.uk

          Comment


            #6
            Thank you Zoltan. Seems to be very simple ! Just to know how to find the cookie and read it.
            If someone can help me, it would be great!
            Thanks
            Didier
            www.supreme.fr
            _____________________
            Saint Malo. France

            Comment


              #7
              Use PHP variables/functions to get the content of the ACTINIC_CART cookie. The retrieved string will be the same of the session file name (just add .session extension and open it). The session file is a plain XML file. I believe the XML format is verbose enough to understand without very deep documentation. :-)
              I believe anyone who did the PHP file for you should be able to implement this for you.
              Zoltan
              Actinic Software
              www.actinic.co.uk

              Comment


                #8
                Thank you Zoltan. I give all these informations to the people who make the php file and will et you know.
                Thanks again
                Didier
                www.supreme.fr
                _____________________
                Saint Malo. France

                Comment


                  #9
                  Thanks Zoltan I got the cookie variables Ok

                  but where would the session files be stored ? can't find them

                  Thanks

                  E.
                  Didier
                  www.supreme.fr
                  _____________________
                  Saint Malo. France

                  Comment


                    #10
                    They are in the acatalog folder. Just add a .session extension to the session ID what you have extracted from the cookies.
                    Zoltan
                    Actinic Software
                    www.actinic.co.uk

                    Comment


                      #11
                      Thanks, we're almost there

                      just one thing : in order to read the session file, I had to modify permissions of the session file

                      chmod(644)

                      has anyone heard of any impact of such n order on the session file ?

                      Thanks
                      Didier
                      www.supreme.fr
                      _____________________
                      Saint Malo. France

                      Comment


                        #12
                        Just do what the perl scripts are doing. I.e. change permissions to make the file readable, read the file then restore the original permissions.
                        Zoltan
                        Actinic Software
                        www.actinic.co.uk

                        Comment

                        Working...
                        X