address_format_id

Open to all! Ask other shopowners for help.
mirabeo
Member
Posts: 10
Joined: Mon Mar 29, 2021 5:22 am
Phoenix Version:
Has thanked: 8 times
Been thanked: 1 time

Re: address_format_id

Post by mirabeo »

burt wrote: ↑Wed Aug 26, 2026 8:14 am A Customer Data module on create_account.php that stores the customers Tax ID in the customers table?

Then on each order, store this in the Order Table and show where needed? <--- you need to do this to make that Tax ID immutable (unable to be changed by the customer after Order is made).

That might work?

We have Spain based users, one of them must have done something like this?
Hopefully one of them might see this and advise you.
Yes, that is the way it was done for osc234bs and it is nearly finished as a Custemer Data module.
Thank you



Join The Code Co-op to get access to your library in the Code Co-op Forum
mirabeo
Member
Posts: 10
Joined: Mon Mar 29, 2021 5:22 am
Phoenix Version:
Has thanked: 8 times
Been thanked: 1 time

Re: address_format_id

Post by mirabeo »

ecartz wrote: ↑Wed Aug 26, 2026 1:36 pm It would probably be better to show the tax ID by hook directly rather than in the address. Because it sounds like your problem is that you're trying to show different address formats to hack the tax ID into them. That's a clever idea, but I think it will keep having consequences that you don't want. Meanwhile, adding fields to the invoice is something that others need. So it would be easier to get help with that if it isn't working quite how you need it.
ok, thank you, I agree with that modifying the address_format_id can have other consequences not seen at the moment, I will go addind the fields to the pages, not big problem. Tahnk you for the advise.

mirabeo
Member
Posts: 10
Joined: Mon Mar 29, 2021 5:22 am
Phoenix Version:
Has thanked: 8 times
Been thanked: 1 time

Re: address_format_id

Post by mirabeo »

raiwa wrote: ↑Wed Aug 26, 2026 2:00 pm My Tax exempt validator includes the tax field:
app.php/addons/paid_addon/tax_exempt_validator
Yes, yours is quite complete and for any EU country, my module will only work for Spain and only to collect the Tax Id at the account creation moment and to show the Id in the invoices and other related documents.
Anyway, thank you very much

User avatar
burt
Core Team
Posts: 4741
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 280 times
Been thanked: 467 times

Re: address_format_id

Post by burt »

One final point ... in `modern` Phoenix you should be able to do all of this without any core code changes. A module, maybe a couple of Hooks. Done.
I am not here to build for you.
I am here to build with you. Let's help each other.

mirabeo
Member
Posts: 10
Joined: Mon Mar 29, 2021 5:22 am
Phoenix Version:
Has thanked: 8 times
Been thanked: 1 time

Re: address_format_id

Post by mirabeo »

burt wrote: ↑Wed Aug 26, 2026 3:05 pm One final point ... in `modern` Phoenix you should be able to do all of this without any core code changes. A module, maybe a couple of Hooks. Done.
Well..., I would like to be able to do that but, at this time in my learning process, I need a module, a hook and overriding the pages where the id appears, perhaps in the future I can simplifly to a module and a hook, I would like to arrive at that point.
Thank you

User avatar
burt
Core Team
Posts: 4741
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 280 times
Been thanked: 467 times

Re: address_format_id

Post by burt »

@mirabeo I think @raiwa may have released an addon that suits this;

In the Co-op:
This add-on adds a Tax Number Input to the Create Account form.
The Tax Number will also be added to the Order Data and shown on the Order Invoice.
viewtopic.php?f=39&t=3486

Or as an Addon:

I am not here to build for you.
I am here to build with you. Let's help each other.

mirabeo
Member
Posts: 10
Joined: Mon Mar 29, 2021 5:22 am
Phoenix Version:
Has thanked: 8 times
Been thanked: 1 time

Re: address_format_id

Post by mirabeo »

@burt yes, it seems that, mine it is already done a few days ago, but have'nt had the time to polished it.
anyway, thank you.



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