Order number at Checkout Successful Page

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeOrder number at Checkout Successful Page

This topic has been marked as not resolved.

Hi,

After long wait, finally I upgrade to Opencart v1.5.5.1 & Shoppica v2.2.2.

I notice that Checkout Successful Page (/index.php?route=checkout/success) no longer shows order number like in version v2.2. How to put it back?

April 20, 2013 at 7:50 am #22307

Hi,

Can you attach a screenshot with a mark, what exactly is missing?

Generally, this seem to be an OpenCart change, rather that a Shoppica one. Are these numbers missing, when using the default theme?

Best,
ThemeBurn team

April 22, 2013 at 5:26 pm #22411

Hi,

Previously, when a customer complete an order, the will be an order number stated in in Checkout Successful Page something like “Your Order Number #123 Has Been Processed!” instead of “Your Order Has Been Processed!” only.

I’m not trying on default theme yet because this live store.

April 23, 2013 at 6:55 am #22432

Hi;

The problem is with Opencart they change the code, you can test the default theme to see that.

So to make it do that :
1) – Open this file : catalog/language/english/checkout/success.php
and fin this code :

$_['text_customer'] = '<p>Your order has been successfully processed!</p><p>You can view your order history by going to the <a href="%s">my account</a> page and by clicking on <a href="%s">history</a>.</p><p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>Thanks for shopping with us online!</p>';

change it like this:

$_['text_customer'] = '<p>Your order <a href="%s">#%s</a> has been successfully processed!</p><p>You can view your order history by going to the <a href="%s">my account</a> page and by clicking on <a href="%s">history</a>.</p><p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>Thanks for shopping with us online!</p>';

2) – Open this file : catalog/controller/checkout/success.php

and find this code:

$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));

change it like this :

$this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/order/info&order_id=' . $this->session->data['last_order_id'], '', 'SSL'), $this->session->data['last_order_id'], $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));

and you will get the order number in success message.
Note this will note change the header title with the order number.

Best regards.
Sam

 samdz
April 24, 2013 at 2:31 pm #22481

Thanks for the help, Sam. This should work just fine :)

Best,
ThemeBurn team

April 26, 2013 at 4:34 pm #22603
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.