###前提・実現したいこと
ここに質問したいことを詳細に書いてください
予約システムで料金表示をカスタムしています。
現在
人数×料金=人数合計料金
宿泊数×料金=宿泊合計料金
ここまでは問題なく表示できていますが、
総合計の表示で
人数合計料金+宿泊合計料金
になっています。
こちらを
人数合計料金×宿泊数=総合計
にしたいのですが
わかる方いらっしゃいますでしょうか。
###発生している問題・エラーメッセージ
エラーメッセージ
###該当のソースコード
private function _confirming_form_bill($opflag) { $bill = $this->make_bill();// 人数料金の表示 $bill2 = $this->make_bill();// 宿泊数の表示 ob_start(); ?> <fieldset id="booking-confirm-bill"> <legend><?php echo apply_filters('booking_form_bill_title', 'ご請求', 'confirm_bill') ?></legend> <table> <tr> <th class="bill-th">明細</th> <td class="bill-td"> <table class="bill-details"> <?php // 予約料金の表示 if (0 < $bill->basic_charge) { $name = apply_filters('booking_form_charge_booking', $bill->article_name . ' 料金', 'confirm_bill'); $this->_outconfirm_bill_row($name, 1, $bill->basic_charge); } // 人数料金の表示 foreach (array('adult', 'child') as $type) { if ($bill->number->$type != 0) { $name = apply_filters('booking_form_charge_count', $bill->article_name . ' ', 'confirm_bill') . apply_filters('booking_form_count_label', __(ucwords($type), $this->domain), 'confirm_bill'); $this->_outconfirm_bill_row($name, $bill->number->$type, $bill->amount->$type); } } // 宿泊数の表示 foreach (array('baby') as $type) { if (0 < $bill2->number) { $name = apply_filters('booking_form_charge_count', $bill2->article_name . ' ', 'confirm_bill') . apply_filters('booking_form_count_label', __(ucwords($type), $this->domain), 'confirm_bill'); $this->_outconfirm_bill_row($name, $bill2->number->$type, $bill2->amount->$type); } } // オプション料金の表示 if ($opflag) { foreach ($bill->option_items as $item) { $this->_outconfirm_bill_row($item['name'], $item['number'], $item['price']); } } ?> </table> </td> <tr> <?php if (0 < $this->charge['tax_notation']) : ?> <th class="bill-th">合計</th> <td class="bill-td"><div class="bill-total"><?php echo $this->money_format($bill->get_total()) ?></div></td> </tr> <tr> <th class="bill-th"><?php echo $this->charge['tax_notation'] == 1 ? '内' : '' ?>消費税(<?php echo $bill->tax ?>%)</th> <td class="bill-td"><div class="bill-tax"><?php echo $this->money_format($bill->get_amount_tax($this->charge['tax_notation'] == 1)) ?></div></td> </tr> <tr><?php endif; ?> <th class="bill-th">総合計</th> <td class="bill-td"><div class="bill-total"><?php echo $this->money_format($bill->get_total() ) ?></div></td> </tr> </table> </fieldset>
###試したこと
###補足情報(言語/FW/ツール等のバージョンなど)