Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VAT field to address based on magento config #315

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

Jade-GG
Copy link
Collaborator

@Jade-GG Jade-GG commented Aug 17, 2023

See also: rapidez/account#37

@@ -122,4 +122,15 @@
/>
</div>
@endif
@if(Rapidez::config('customer/address/taxvat_show', 0))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 is the default value if nothing is configured? Or opt like below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default is indeed to not show this field, hence the 0.

The one below can also have default '0' and it'd work the same, if that would make it cleaner.

@royduin royduin merged commit ec6a2ce into rapidez:master Aug 22, 2023
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants