Forums: osCommerce カスタマイズ (Thread #19103)

ペイパル日本語ページに飛ばしたい (2008-06-21 02:09 by Anonymous #37284)

osc初心者です。
ペイパルで支払う時に英語のペイパルページに飛んでしまうのですが、日本語のペイパルに行くようにするにはどうしたら良いでしょうか。catalog/includes/modules/payment/paypal.phpにペイパル関連の情報を見つけたのですが、ここではないみたいですが良くわかりません。

それと、日本語だからでしょうか、ペイパルページの商品名が出る場所(とおもわれるところ)が文字化けというか記号”%”しか出ていません。どうやったら治りますでしょうか。

宜しくお願いします。

Reply to #37284×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ペイパル日本語ページに飛ばしたい (2008-06-21 12:19 by Anonymous #37288)

paypal.phpで合ってると思う。

日本語は

tep_draw_hidden_field('lc', 'JP')

かと。

商品名が入るような箇所は見当たらず、
何言ってるのかわからない。
Reply to #37284

Reply to #37288×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ペイパル日本語ページに飛ばしたい (2010-06-20 01:11 by Anonymous #51423)

関係ないかもしれませんが、PayPalのトップページで右上の言語選択を英語にしたままウインドウを閉じた後だと、別のサイトからカートなどを利用した際に英語になるみたいです。クッキーに残っているのでしょうか。自分の作ったサイトで支払い画面が英語になってしまい、かなり試行錯誤したのですが、自分がPayPalのトップページで日本語を選択した後だとすんなり日本語で表示されました。
Reply to #37284

Reply to #51423×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: ペイパル日本語ページに飛ばしたい (2010-11-20 11:28 by Anonymous #54284)

商品名でなくてサイト名です。

includes/modules/payment/paypal.php
Line105位の return $process_button_string;の前に

$process_button_string =
'<script language="javascript" type="text/javascript" defer="defer"> ' .
'document.checkout_confirmation.acceptCharset="UTF-8"; ' .
'document.checkout_confirmation.onsubmit = function(){ ' .
'document.charset = "UTF-8"; submitonce(); } </script>' .
tep_draw_hidden_field('charset','UTF-8') . $process_button_string;

と書き込んで文字化けが消えましたよ
Reply to #37284

Reply to #54284×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login