Re: [解決済み] 「トップページへ戻る」ボタンでHTTP エラー 405

フォーラム 使い方全般 [解決済み] 「トップページへ戻る」ボタンでHTTP エラー 405 Re: [解決済み] 「トップページへ戻る」ボタンでHTTP エラー 405

#61296
nanbu
キーマスター

こんにちは。

templates/cart/completion.php 及びtemplates/member/completion.php を現在のテーマディレクトリに退避して対応していただけますでしょうか。修正箇所は次の通りです。

templates/cart/completion.php 48行目あたり

$html .= '<form action="' . get_option('home') . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">'."n";
$html .= '<div class="send"><input name="top" class="back_to_top_button" type="submit" value="'.__('Back to the top page.', 'usces').'" /></div>'."n";

$html .= '<form action="" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">'."n";
$html .= '<div class="send"><input name="top" class="back_to_top_button" type="submit" value="'.__('Back to the top page.', 'usces').'" /></div>'.'" onclick="location.href='' . get_option('home') . "n";

templates/member/completion.php 34行目あたり

<form action="' . get_option('home') . '" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">
<div class="send"><input name="top" type="submit" value="' . __('Back to the top page.', 'usces') . '" /></div>

<form action="" method="post" onKeyDown="if (event.keyCode == 13) {return false;}">
<div class="send"><input name="top" type="submit" value="' . __('Back to the top page.', 'usces') . '" onclick="location.href='' . get_option('home') . '" /></div>

退避方法はこちらをご覧ください。

https://www.welcart.com/community/archives/1283