Post by tingwing » Sun Oct 20, 2019 11:46 am

hi
in successful order page,how to make the "history"'s link to the current order detail page,not that order history page?
as I would not like to see the current order detail ,by having to click twice ,first "history"-> second "view".
thanks

please take a look at the attached images for the successful order page and order history page

Attachments

orderhistory2.png

orderhistory2.png (45.94 KiB) Viewed 149 times

orderhistory1.png

orderhistory1.png (49 KiB) Viewed 149 times


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by letxobnav » Sun Oct 20, 2019 12:08 pm

in catelog/controller/checkout/success.php the link is made:

Code: Select all

$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', true), $this->url->link('account/order', '', true), $this->url->link('account/download', '', true), $this->url->link('information/contact'));
the $this->url->link('account/order', '', true) part makes the link to history.

so change that part to

Code: Select all

$this->url->link('account/order/info', 'order_id='.$order_id, true)
after you changed:

Code: Select all

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

to

Code: Select all

		if (isset($this->session->data['order_id'])) {
			$order_id = $this->session->data['order_id'];
to save the order_id first.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by tingwing » Sun Oct 20, 2019 2:30 pm

thanks so much!,it works perfectly

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm
Who is online

Users browsing this forum: paulfeakins and 29 guests