Assign telephone to the address pages

Open to all! Ask other shopowners for help.
User avatar
Kofod95
Senior Contributor
Posts: 749
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Assign telephone to the address pages

Post by Kofod95 »

For that, I made a copy of the cd_traditional_address-module, and made the address show my new field.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Assign telephone to the address pages

Post by heatherbell »

Kofod95 wrote: Wed Dec 28, 2022 12:51 pm For that, I made a copy of the cd_traditional_address-module, and made the address show my new field.
Thank you - been looking down the wrong rabbit hole! :roll:
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Assign telephone to the address pages

Post by heatherbell »

Kofod95 wrote: Wed Dec 28, 2022 12:51 pm cd_traditional_address-module
Definitely a rabbit hole!
So now have a cloned/edited cd_traditional_address working but it will only show (on orders.php) the telephone for Customer and will not show the telephone for Shipping Address and Billing Address.
Any pointers gratefully received.
User avatar
Kofod95
Senior Contributor
Posts: 749
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Assign telephone to the address pages

Post by Kofod95 »

heatherbell wrote: Wed Dec 28, 2022 4:11 pm rabbit hole!
True!

Do you add the new data to the order on checkout? If memory serves, you need a hook to add new fields to the order-table, without which nothing will be available to show on checkout (unless, maybe, the data could be collected from the customer-data object/class, but I haven't tried that myself).

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Assign telephone to the address pages

Post by heatherbell »

Kofod95 wrote: Wed Dec 28, 2022 4:51 pm Do you add the new data to the order on checkout? If memory serves, you need a hook to add new fields to the order-table, without which nothing will be available to show on checkout (unless, maybe, the data could be collected from the customer-data object/class, but I haven't tried that myself).
TY - I'll look at that but looks like one rabbit-hole leading to another!
User avatar
Kofod95
Senior Contributor
Posts: 749
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Assign telephone to the address pages

Post by Kofod95 »

I should probably update my files and share them in this forum - If you get too tired of chasing rabbits, you can wait for me to do that :)

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Customers cannot add new delivery address at checkout

Post by cwh2000 »

@ecartz Thanks!
heatherbell wrote: Tue Dec 27, 2022 1:38 pm
ecartz wrote: Tue Dec 27, 2022 12:50 pm The easy fix for the error is to not assign telephone to the address pages.
Many thanks for the explanation - all good now :)
User avatar
Kofod95
Senior Contributor
Posts: 749
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Assign telephone to the address pages

Post by Kofod95 »

Add-on to collect phone/email with every address: viewtopic.php?f=28&t=1834

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


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