Customer Orders Tab

Deprecated: The tep_href_link function has been deprecated. - Customer Orders Tab

Deprecated: The tep_href_link function has been deprecated.

by gsmiley007 » Sat Aug 05, 2023 6:05 am

I can't seem to figure how to change the tep_href_link

Found the google sheet:
tep_href_link('account.php') $Linker->build('account.php')
tep_href_link('advanced_search_result.php', tep_get_all_get_params(), 'NONSSL', true, false)) $Linker->build('advanced_search_result.php')->retain_query_except())

but can't figure how to replace the code:

$table_content .= '<tr onclick="document.location.href=\'' . tep_href_link('orders.php', tep_get_all_get_params(['action', 'oID']) . '&action=edit&oID=' . $o['orders_id']) . '\'">';^M
gsmiley007
Member
Posts: 82
Joined: Sun Mar 14, 2021 9:28 pm
Phoenix Version:
Contact:

Re: Deprecated: The tep_href_link function has been deprecat

by BrockleyJohn » Sat Aug 05, 2023 7:26 am

Code: Select all

Guarantor::ensure_global('Admin')->link('orders.php', ['action' => 'edit', 'oID' => $o['orders_id']])->retain_query_except(['action', 'oID'])
so the whole line becomes

Code: Select all

$table_content .= '<tr onclick="document.location.href=\'' . Guarantor::ensure_global('Admin')->link('orders.php', ['action' => 'edit', 'oID' => $o['orders_id']])->retain_query_except(['action', 'oID']) . '\'">';
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Contact:

Re: Deprecated: The tep_href_link function has been deprecat

by gsmiley007 » Sat Aug 05, 2023 4:43 pm

thanks
gsmiley007
Member
Posts: 82
Joined: Sun Mar 14, 2021 9:28 pm
Phoenix Version:
Contact:

Re: Deprecated: The tep_href_link function has been deprecat

by 14Steve14 » Thu Oct 12, 2023 5:15 pm

gsmiley007 wrote:thanks
Did you eventually get this to work with no errors. If so would you mind sharing the code in the file please as I am struggling to get it to work at all.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Contact:

Re: Deprecated: The tep_href_link function has been deprecat

by BrockleyJohn » Sat Oct 14, 2023 7:52 pm

14Steve14 wrote:
gsmiley007 wrote:thanks
Did you eventually get this to work with no errors. If so would you mind sharing the code in the file please as I am struggling to get it to work at all.
Fixed in the update recently uploaded
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Contact:

Re: Deprecated: The tep_href_link function has been deprecat

by gsmiley007 » Sun Nov 12, 2023 10:30 pm

Sorry, haven't checked the forums in a while. yes i did, but every time i tried to share a fix, the post would be deleted
gsmiley007
Member
Posts: 82
Joined: Sun Mar 14, 2021 9:28 pm
Phoenix Version:
Contact: