Announcement

Collapse
No announcement yet.

Changing Paypal Payment screen to English

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

    Changing Paypal Payment screen to English

    PLease could someome help me.
    I have looked up this subject and found a few answers but im still not sure how to go about it.

    I am based in Spain but i need my paypal payments pages to be in English and they are showing in Spanish.
    Paypal has given me this info>
    (((To have the language display in English, the "lc" or local country variable could be passed and set it to a value of an English default country (i.e. US, UK, Canada, etc.). If a customer selects Spain from the drop-down, the page would then revert back to Spanish.)))
    I have no idea what this means.
    I have looked up on previous threads for this and found the following

    Around line 92 you'll see the following code:
    AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
    Just after it insert:
    AddPostValues ('&', 'lc', 'FR', $ALWAYS, $NOENCODE);
    AddPostValues ('&', 'country', 'FR', $ALWAYS, $NOENCODE);


    This is for french but get the idea but could someone please tell me were in actinic do i need to go in step by step easy terms on how to insert this code?
    Do i go into one of the checkout pages to look at the code or what? im not sure were to look?
    Bit of a novice at this so any help would be very helpful.

    I also found this>
    AddPostValues ('&', 'lc', 'EN', $ALWAYS, $NOENCODE); # hard code the language to English

    to the Required Paypal fields in the OCCPayPalTemplate.pl did do the trick.
    Many thanks to Actinic Support solving this problem for me !!!


    How do i get into the occpaypal Template.pl and where do i find it?

    #2
    You can find the OCCPaypalTemplate.pl file in:
    C:\Documents and Settings\USERNAME\My Documents\Actinic v8\Sites\SITENAME\CommonOCC

    Assuming you have a standard installation:
    Replace USRNAME and SITENAME with your PC username and SITENAME with SIte1 (if you only have one site otherwise use the specific site name)

    Back the file up before making any changes.

    Then as mentioned.

    Around line 92 you'll see the following code:

    Code:
    AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
    Just after it insert:
    Code:
    AddPostValues ('&', 'lc', 'EN', $ALWAYS, $NOENCODE);
    AddPostValues ('&', 'country', 'EN', $ALWAYS, $NOENCODE);
    I think that's all, give it a try.

    Comment


      #3
      HI thank you for your help,
      but forgive me for being a complete novices here, but how do i get into see that code to find line 92?
      The only code i seem to see are the layout codes and don't know were to go to find the actinic codes
      Ive never had to enter coding into actinics coding before so if you could tell were were i go to find it i would be most grateful to you.

      Many thanks

      Comment


        #4
        Originally posted by Onestopfoodsuk View Post
        HI thank you for your help,
        but forgive me for being a complete novices here, but how do i get into see that code to find line 92?
        The only code i seem to see are the layout codes and don't know were to go to find the actinic codes
        Ive never had to enter coding into actinics coding before so if you could tell were were i go to find it i would be most grateful to you.

        Many thanks
        ow i see it now, it comes up in note pad? when you goto were you said to go.
        Can i change the code in here?
        Also which one do it need to change as there are loads of different files in there

        Comment


          #5
          The filename is at the top of earlier post.

          Make copy of it before changing anything!!

          Open that file in notepad, find the correct place, make the changes and save it.

          Comment


            #6
            Originally posted by drounding View Post
            The filename is at the top of earlier post.

            Make copy of it before changing anything!!

            Open that file in notepad, find the correct place, make the changes and save it.
            Ok did all that, found the code, pasted the code were you said to put it, saved as as the same file name to overwrite the previous, then i backed up the site again and then updated the live website.

            I then did a test payment and the paypal pages still comming up in spanish.
            Is there something i have missed?
            Here is the code ive now put in on the note pad.

            # Required PayPal fields - these values are hard coded based on the options that work best with Actinic
            #
            AddPostValues ('?', 'cmd', '_xclick', $ALWAYS, $NOENCODE); # required "command" value
            AddPostValues ('&', 'undefined_quantity', 0, $ALWAYS, $NOENCODE); # make the quantity editable - I'm just going to leave it hard coded to one
            AddPostValues ('&', 'no_shipping', 1, $ALWAYS, $NOENCODE); # don't use paypal's shipping calculator
            AddPostValues ('&', 'no_note', 1, $ALWAYS, $NOENCODE); # don't allow entry of a payment note
            AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
            AddPostValues ('&', 'lc', 'EN', $ALWAYS, $NOENCODE);
            AddPostValues ('&', 'country', 'EN', $ALWAYS, $NOENCODE);
            # Merchant ID
            #

            Comment


              #7
              Not sure but per the Paypal reply to you try UK instead of EN.

              Comment


                #8
                If anyone remembers the hungarian fiasco, it become clear then that paypal doesn't use standard country abreviations.

                To fix PPP where all other PSPs use UK paypal uses GB (or visa versa) however i don't know if this bizarre behaviour extends to language codes too.

                Out of interest when you hardcoded EN in, what was there before?

                Comment


                  #9
                  Originally posted by drounding View Post
                  Not sure but per the Paypal reply to you try UK instead of EN.
                  Tried that and still nothing. Have i put the code in the correct place?
                  also will it work instantly when i up date to the live site?

                  C:\Documents and Settings\User\My Documents\Actinic v8\Sites\Site1\CommonOCC

                  OCCPayPalTemplate.pl

                  # Required PayPal fields - these values are hard coded based on the options that work best with Actinic
                  #
                  AddPostValues ('?', 'cmd', '_xclick', $ALWAYS, $NOENCODE); # required "command" value
                  AddPostValues ('&', 'undefined_quantity', 0, $ALWAYS, $NOENCODE); # make the quantity editable - I'm just going to leave it hard coded to one
                  AddPostValues ('&', 'no_shipping', 1, $ALWAYS, $NOENCODE); # don't use paypal's shipping calculator
                  AddPostValues ('&', 'no_note', 1, $ALWAYS, $NOENCODE); # don't allow entry of a payment note
                  AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
                  AddPostValues ('&', 'lc', 'uk', $ALWAYS, $NOENCODE);
                  AddPostValues ('&', 'country', 'uk', $ALWAYS, $NOENCODE);
                  # Merchant ID
                  #

                  Have i put it in correctly, dose it need (#) at the start of the code?

                  Comment


                    #10
                    Originally posted by pinbrook View Post
                    If anyone remembers the hungarian fiasco, it become clear then that paypal doesn't use standard country abreviations.

                    To fix PPP where all other PSPs use UK paypal uses GB (or visa versa) however i don't know if this bizarre behaviour extends to language codes too.

                    Out of interest when you hardcoded EN in, what was there before?
                    This is how is looked before i added the new code as advised.


                    # Required PayPal fields - these values are hard coded based on the options that work best with Actinic
                    #
                    AddPostValues ('?', 'cmd', '_xclick', $ALWAYS, $NOENCODE); # required "command" value
                    AddPostValues ('&', 'undefined_quantity', 0, $ALWAYS, $NOENCODE); # make the quantity editable - I'm just going to leave it hard coded to one
                    AddPostValues ('&', 'no_shipping', 1, $ALWAYS, $NOENCODE); # don't use paypal's shipping calculator
                    AddPostValues ('&', 'no_note', 1, $ALWAYS, $NOENCODE); # don't allow entry of a payment note
                    AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
                    #
                    # Merchant ID
                    #
                    AddPostValues ('&', 'business', $sMerchantID, $ALWAYS, $REDIRECT); # the merchant email address or business PayPal ID
                    #
                    # Pack some additional values on the authorization URL

                    Comment


                      #11
                      Originally posted by pinbrook View Post
                      If anyone remembers the hungarian fiasco, it become clear then that paypal doesn't use standard country abreviations.

                      To fix PPP where all other PSPs use UK paypal uses GB (or visa versa) however i don't know if this bizarre behaviour extends to language codes too.

                      Out of interest when you hardcoded EN in, what was there before?
                      ok i tried the above codes with GB instead of EN but still no affect..

                      Comment


                        #12
                        Originally posted by Onestopfoodsuk View Post
                        ok i tried the above codes with GB instead of EN but still no affect..
                        OK think i found the problem, yes you were right about the Uk thing. I added US and it seemed to work.
                        Also i think there was a # missing on the next line under the new bit of code.
                        the code now looks like this for anyone els that mite be having this problem.

                        AddPostValues ('?', 'cmd', '_xclick', $ALWAYS, $NOENCODE); # required "command" value
                        AddPostValues ('&', 'undefined_quantity', 0, $ALWAYS, $NOENCODE); # make the quantity editable - I'm just going to leave it hard coded to one
                        AddPostValues ('&', 'no_shipping', 1, $ALWAYS, $NOENCODE); # don't use paypal's shipping calculator
                        AddPostValues ('&', 'no_note', 1, $ALWAYS, $NOENCODE); # don't allow entry of a payment note
                        AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
                        AddPostValues ('&', 'lc', 'US', $ALWAYS, $NOENCODE);
                        AddPostValues ('&', 'country', 'US', $ALWAYS, $NOENCODE);

                        #
                        # Merchant ID

                        This seems to now be working and thank you to everyone's help on this.

                        I still have an issue with paypal, as all this code dose is set the country of origin to paypal to United States. so when you are passed over to paypal, it is in English.
                        But When the customer then fills in there card information, they firstly need to select there correct country.
                        If they live in Spain, Germany or France, and select one of these as their country of origin, the pages then change to the language of that country.

                        Has anyone ells had this problem and if so, is there a way round this or something to stop paypal from doing this?

                        Thanks

                        Comment


                          #13
                          Same Problem

                          I am having similar problem in V9. English website, and has been working fine with English PayPal, suddenly people are getting FRENCH paypal. I have tried the above solution:

                          #
                          AddPostValues ('?', 'cmd', '_xclick', $ALWAYS, $NOENCODE); # required "command" value
                          AddPostValues ('&', 'undefined_quantity', 0, $ALWAYS, $NOENCODE); # make the quantity editable - I'm just going to leave it hard coded to one
                          AddPostValues ('&', 'no_shipping', 1, $ALWAYS, $NOENCODE); # don't use paypal's shipping calculator
                          AddPostValues ('&', 'no_note', 1, $ALWAYS, $NOENCODE); # don't allow entry of a payment note
                          AddPostValues ('&', 'bn', 'ActinicCat_Cart_ST', $ALWAYS, $NOENCODE); # hard code the provider
                          AddPostValues ('&', 'lc', 'US', $ALWAYS, $NOENCODE);
                          AddPostValues ('&', 'country', 'US', $ALWAYS, $NOENCODE);
                          #
                          # Merchant ID

                          Reloaded, but still comes up in FRENCH.

                          Help please!

                          Comment

                          Working...
                          X