Replace tep_get_parent_categories and tep_get_product_path

Open to all! Ask other shopowners for help.
Post Reply
vmn

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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 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

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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 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
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 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
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 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
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 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

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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply