www.welcart.com/documents/manual/cart
カートの構成
cart.php/カート
商品詳細画面から「カートへ入れる」のボタンが押されたときに最初に表示されるページです。
購入しようとしている商品の一覧が表示されます。
カートで購入する数量を変更することができます。
customer_info.php/お客様情報入力画面
メールアドレスなどのお客様情報を記入してもらう画面が表示されます。
サブナビに表示される「清算する」項目をクリックしてもこのページに移動します。
delivery_info.php/発送・支払い方法入力画面
発送先・支払方法を選択する画面が表示されます。
発送先をお客様情報で記入した場所と同じところに送るか、別の場所に送るかを選択することができます。
confirm.php/内容確認画面
今まで入力してきた購入商品・お客様情報・発送先・支払方法を最終的に確認します。
completion.php/買い物完了画面
内容確認画面で「上記内容で注文する」ボタンを押した後に表示される画面です。
error.php/エラー画面
カート内でなんらかのエラーが生じた場合に表示される画面です。
cart.php/カート
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | $cart_table_footer = '</tbody> <tfoot> <tr> <th class = "num" > </th> <th class = "thumbnail" > </th> <th colspan= "3" scope= "row" class = "aright" > ' . __(' total items ',' usces ') . usces_guid_tax(' return ') . ' </th> <th class = "aright" > ' . usces_crform($this->get_total_price(), true, false, ' return ') . ' </th> <th class = "stock" > </th> <th class = "action" > </th> </tr> '; //税込み 追記 $total_price = usces_total_price( 'return' ) - usces_order_discount( 'return' ); $tax = $this -> getTax( $total_price ); $cart_table_footer .=' <tr> <td colspan= "5" class = "aright" > '.usces_tax_label(array(), ' return ').' </td> <td class = "aright" > '. usces_crform($tax, true, false,' return ').' </td> <td colspan= "2" > </td> </tr> <tr> <th colspan= "5" class = "aright" >税込合計<em class = "tax" >(税込)</em></th> <th class = "aright" >'. usces_crform(( $total_price + $tax ), true, false, 'return' ). '</th> <th colspan= "2" > </th> </tr> '; //ここまで $cart_table_footer .=' </tfoot> </table> '; |
これを追加 へんこう
参考
welcustom.net/consumption-tax-cart-page/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <?php if ( 'exclude' == $this ->options[ 'tax_mode' ] ): ?> <?php $total_price = usces_total_price( 'return' ) - usces_order_discount( 'return' ); $tax = $this -> getTax( $total_price ); ?> <tr> <td colspan= "5" class = "aright" ><?php _e( 'consumption tax' , 'usces' ); ?></td> <td class = "aright" ><?php echo usces_crform( $tax , true, false); ?></td> <td colspan= "2" > </td> </tr> <tr> <th colspan= "5" class = "aright" ><?php _e( 'total items' , 'usces' ); ?><em class = "tax" >(税込)</em></th> <th class = "aright" ><?php echo usces_crform(( $total_price + $tax ), true, false); ?></th> <th colspan= "2" > </th> </tr> <?php endif ; ?> |