Italy billing fields

Phoca Cart - complex e-commerce extension
supportotecinf
Phoca Member
Phoca Member
Posts: 19
Joined: 31 Jul 2019, 20:28

Italy billing fields

Post by supportotecinf »

Hello, there is the configuration of the fields on the customer's billing information for Italian invoices. Unique Code, PEC, Tax Code, VAT number?
Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan »

Hi, you can add own form fileds, as default, there are two columns for VAT.

Image

Jan
If you find Phoca extensions useful, please support the project
supportotecinf
Phoca Member
Phoca Member
Posts: 19
Joined: 31 Jul 2019, 20:28

Re: Italy billing fields

Post by supportotecinf »

GREAT!
Is it possible to put checks in the field? es. Tax code must be alphanumeric, min 16 characters, max 16 characters?
Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan »

Hi, you can add validate rules, but it is not so easy. In Joomla! you can build own validate rules, for Phoca Cart it means, that such rule will be stored in this folder:
components/com_phocacart/models/rules

(you can find basic Joomla! validate rules here: libraries\src\Form\Rule\)

As example, basic Joomla! email rule:

It will be set as value in form fields form (in Phoca Cart):
Image

and then the field is checked for email:

Image

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan »

See: https://www.phoca.cz/documents/116-phoc ... and-tricks - chapter: Setting custom rules for form fields
If you find Phoca extensions useful, please support the project
Aliya77
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 May 2023, 08:14

Re: Italy billing fields

Post by Aliya77 »

Jan wrote: 25 Apr 2020, 13:24 Hi, you can add own form fileds, as default, there are two columns for VAT.
Jan
Hi,
it's great to know that I can customize form fields. Since there are already two columns for VAT as the default, I might not need to add any additional fields. Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply