Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Totals
- $this->load->model('setting/extension');
- $totals = array();
- $taxes = $this->cart->getTaxes();
- $total = 0;
- // Because __call can not keep var references so we put them into an array.
- $total_data = array(
- 'totals' => &$totals,
- 'taxes' => &$taxes,
- 'total' => &$total
- );
- $data['totals'] = array();
- foreach ($totals as $total) {
- $data['totals'][] = array(
- 'title' => $total['title'],
- 'text' => $this->currency->format($total['value'], $this->session->data['currency'])
- );
- }
- $data['column_left'] = $this->load->controller('common/column_left');
- $data['column_right'] = $this->load->controller('common/column_right');
- $data['content_top'] = $this->load->controller('common/content_top');
- $data['content_bottom'] = $this->load->controller('common/content_bottom');
- $data['footer'] = $this->load->controller('common/footer');
- $data['header'] = $this->load->controller('common/header');
- print_r($totals['0']); // Array ( [code] => shipping [title] => Курьерская доставка по москве [value] => 0 [sort_order] => )
- print_r($data['totals'][0]); // Array ( [title] => Курьерская доставка по москве [text] => 0 ₽ )
- $this->response->setOutput($this->load->view('checkout/cart', $data));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement