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 » 25 Apr 2020, 06:18

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: 42872
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan » 25 Apr 2020, 13:24

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 » 25 Apr 2020, 15:07

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: 42872
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan » 30 Apr 2020, 16:56

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: 42872
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Italy billing fields

Post by Jan » 19 May 2020, 15:11

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

Post Reply