Jump to content
Sign in to follow this  
mss

[Решено?..] Как вывести все данные на странице Success.tpl

Recommended Posts

Здравствуйте, не подскажите как вывести все данные на странице Success.tpl

Сумма:

Доставка:

Оплата:

 и т.д

Share this post


Link to post
Share on other sites

а можно подробнее?

извиняюсь. 

Share this post


Link to post
Share on other sites

<?php

class ControllerCheckoutSuccess extends Controller {

public function index() {

$w_order_id = "";

if (isset($this->session->data['order_id'])) {

$w_order_id = $this->session->data['order_id'];

$this->cart->clear();

unset($this->session->data['shipping_method']);

unset($this->session->data['shipping_methods']);

unset($this->session->data['payment_method']);

unset($this->session->data['payment_methods']);

unset($this->session->data['guest']);

unset($this->session->data['comment']);

unset($this->session->data['order_id']);

unset($this->session->data['coupon']);

}

$this->language->load('checkout/success');

$this->data['heading_title'] = sprintf($this->language->get('heading_title'), $w_order_id);

$this->data['breadcrumbs'] = array();

$this->data['breadcrumbs'][] = array(

'href' => $this->url->link('common/home'),

'text' => $this->language->get('text_home'),

'separator' => false

);

$this->data['breadcrumbs'][] = array(

'href' => $this->url->link('checkout/cart'),

'text' => $this->language->get('text_basket'),

'separator' => $this->language->get('text_separator')

);

$this->data['breadcrumbs'][] = array(

'href' => $this->url->link('checkout/checkout', '', 'SSL'),

'text' => $this->language->get('text_checkout'),

'separator' => $this->language->get('text_separator')

);

$this->data['breadcrumbs'][] = array(

'href' => $this->url->link('checkout/success'),

'text' => $this->language->get('text_success'),

'separator' => $this->language->get('text_separator')

);

$this->data['heading_title'] = sprintf($this->language->get('heading_title'), $w_order_id);

if ($this->customer->isLogged()) {

$this->data['text_message'] = sprintf($this->language->get('text_message'), $w_order_id, HTTPS_SERVER . 'index.php?route=account/account', HTTPS_SERVER . 'index.php?route=account/history', HTTP_SERVER . 'index.php?route=information/contact');

}

$this->data['button_continue'] = $this->language->get('button_continue');

$this->data['continue'] = $this->url->link('common/home');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {

$this->template = $this->config->get('config_template') . '/template/common/success.tpl';

} else {

$this->template = 'default/template/common/success.tpl';

}

$this->children = array(

'common/column_left',

'common/column_right',

'common/content_top',

'common/content_bottom',

'common/footer',

'common/header'

);

$this->response->setOutput($this->render());

}

}

?>

Share this post


Link to post
Share on other sites

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>

<div id="content"><?php echo $content_top; ?>

<div class="breadcrumb">

<?php foreach ($breadcrumbs as $breadcrumb) { ?>

<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>

<?php } ?>

</div>

<h1><?php echo $heading_title; ?></h1>

<div class="wrapper"><?php echo $text_message; ?></div>

<div class="buttons">

<div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>

</div>

<?php echo $content_bottom; ?></div>

<?php echo $footer; ?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.