How can I edit the success page to show
"Your order number is ___________________"
And
"To view and print your invoice click here." (with a link to the invoice of this transaction)
I found where to edit the actual text, but how do I display the order number and a link to the correct invoice?
"Your order number is ___________________"
And
"To view and print your invoice click here." (with a link to the invoice of this transaction)
I found where to edit the actual text, but how do I display the order number and a link to the correct invoice?
1. EDIT: catalog/controller/checkout/success.php
2. FIND:
3. BEFORE, ADD:
4. EDIT: catalog/view/theme/YOURTHEME/template/common/success.tpl
5. FIND:
6. BEFORE, ADD:
2. FIND:
Code: Select all
$this->cart->clear();
Code: Select all
$this->session->data['success_order_id'] = $this->session->data['order_id'];
5. FIND:
Code: Select all
<div class="buttons">
Code: Select all
<?php if (isset($this->session->data['success_order_id'])) { ?>
<h3>Your Order Number is: <a href="<?php echo $this->url->http('account/invoice&order_id=' . $this->session->data['success_order_id']); ?>"><?php echo $this->session->data['success_order_id']; ?></a></h3>
<?php unset($this->session->data['success_order_id']); ?>
<?php } ?>
ok i got it,
i put this code at step 6 and now its working good.
<div class="middle"><?php $str = "Your Order ID is: "; echo $str; echo $this->session->data['success_order_id']; ?>
<?php unset($this->session->data['success_order_id']); ?>
thanks Qphoria for the hints
i put this code at step 6 and now its working good.
<div class="middle"><?php $str = "Your Order ID is: "; echo $str; echo $this->session->data['success_order_id']; ?>
<?php unset($this->session->data['success_order_id']); ?>
thanks Qphoria for the hints
Remove
Modified to show the normal,catalog/view/theme/YOURTHEME/template/common/success.tpl
Code: Select all
$this->url->http()
Code: Select all
<?php if (isset($this->session->data['success_order_id'])) { ?>
<h3>Your Order Number is: <a href="<?php echo 'index.php?route=account/invoice&order_id=' . $this->session->data['success_order_id']; ?>"><?php echo $this->session->data['success_order_id']; ?></a></h3>
<?php unset($this->session->data['success_order_id']); ?>
<?php } ?>
Who is online
Users browsing this forum: No registered users and 112 guests