Post by olynnow11 » Fri Dec 30, 2016 4:29 am

Hi all,

How can I add the order list from "View your order history" page to my account page?

I've tried adding the code from ..../catalog/view/theme/default/template/account/order_list.tpl to .../catalog/view/theme/default/template/account/account.tpl but I get the following errors in frontend:

Notice: Undefined variable: orders in .../catalog/view/theme/default/template/account/account.tpl on line 30
Notice: Undefined variable: text_empty in ..../catalog/view/theme/default/template/account/account.tpl on line 60

Is there something else I should do? Do you have any suggestions?

Thanks!

Happy new year to all Opencart Community!

Newbie

Posts

Joined
Fri Dec 30, 2016 4:22 am

Post by cyclops12 » Sat Dec 31, 2016 9:58 pm

You also need to add code to the relevant controller

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by olynnow11 » Thu Jan 05, 2017 8:54 pm

thanks cyclops12. It worked :ok:

Newbie

Posts

Joined
Fri Dec 30, 2016 4:22 am
Who is online

Users browsing this forum: No registered users and 19 guests