Replace tep_get_parent_categories and tep_get_product_path

Ask the community for help and support.
Post Reply
vmn
Posts: 40
Joined: Mon Mar 08, 2021 8:59 am
Has thanked: 3 times
Been thanked: 1 time

Replace tep_get_parent_categories and tep_get_product_path

Post by vmn »

The functions below are deprecated:

tep_get_parent_categories
tep_get_product_path

How to replace?
There is no working code below the trigger line.
Fiber
VIP Member
VIP Member
Posts: 121
Joined: Mon Oct 26, 2020 12:16 pm
Has thanked: 12 times
Been thanked: 19 times

Re: 1.0.8.6 Questions / Comments / Concerns

Post by Fiber »

vmn wrote: Fri Oct 22, 2021 10:23 am The functions below are deprecated:

tep_get_parent_categories
tep_get_product_path

How to replace?
There is no working code below the trigger line.
Google Docs
Turn up the Max
vmn
Posts: 40
Joined: Mon Mar 08, 2021 8:59 am
Has thanked: 3 times
Been thanked: 1 time

Re: 1.0.8.6 Questions / Comments / Concerns

Post by vmn »

Thanks, @Fiber, but I couldn't find the functions above in the spreadsheet.
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: 1.0.8.6 Questions / Comments / Concerns

Post by raiwa »

vmn wrote: Fri Oct 22, 2021 3:35 pm Thanks, @Fiber, but I couldn't find the functions above in the spreadsheet.
You are right. These were missing.
I added them now, line 88+91
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Fiber
VIP Member
VIP Member
Posts: 121
Joined: Mon Oct 26, 2020 12:16 pm
Has thanked: 12 times
Been thanked: 19 times

Re: 1.0.8.6 Questions / Comments / Concerns

Post by Fiber »

raiwa wrote: Sat Oct 23, 2021 7:29 am You are right. These were missing.
I added them now, line 88+91
I really don't understand this at all, when I linked through it was there.. only tep_get_product_path was not there..
Turn up the Max
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: 1.0.8.6 Questions / Comments / Concerns

Post by raiwa »

I also saw something in the history. Maybe someone messed up and deleted it. That’s the risk when it is public editable.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Has thanked: 48 times
Been thanked: 27 times

Re: 1.0.8.6 Questions / Comments / Concerns

Post by Omar_one »

raiwa wrote: Sat Oct 23, 2021 1:50 pm I also saw something in the history. Maybe someone messed up and deleted it. That’s the risk when it is public editable.
maybe it will be good to have the doc as read only ,,,
in office 365 they have restore to previous versions.. so if it was go mess .. you can restore it from file history or from restore points
Last edited by Omar_one on Sun Oct 24, 2021 7:42 pm, edited 1 time in total.
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Has thanked: 48 times
Been thanked: 27 times

Re: Replace tep_get_parent_categories and tep_get_product_path

Post by Omar_one »

I just check google sheet and they have same option
11121211.gif
You do not have the required permissions to view the files attached to this post.
vmn
Posts: 40
Joined: Mon Mar 08, 2021 8:59 am
Has thanked: 3 times
Been thanked: 1 time

Re: Replace tep_get_parent_categories and tep_get_product_path

Post by vmn »

Thank you all!
Looks like this is still missing from the spreadsheet:
deprecated:
tep_parse_category_path( $cPath )
replace:
array_unique(array_map('intval', explode('_', $cPath)), SORT_NUMERIC)
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: Replace tep_get_parent_categories and tep_get_product_path

Post by raiwa »

Just add it. It’s a community project open for everybody.
Thank you!
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Post Reply