Supported TaxZone in priceIncTax methods.#2406
Open
MacTavish-69 wants to merge 1 commit intolunarphp:1.xfrom
Open
Supported TaxZone in priceIncTax methods.#2406MacTavish-69 wants to merge 1 commit intolunarphp:1.xfrom
MacTavish-69 wants to merge 1 commit intolunarphp:1.xfrom
Conversation
Added optional TaxZone parameter to priceIncTax, comparePriceIncTax, and getPriceableTaxRate methods to allow tax calculations based on specific tax zones.
MacTavish-69
added a commit
to MacTavish-69/docs
that referenced
this pull request
Feb 4, 2026
Added additional example for Tax Incl Price based on PR: lunarphp/lunar#2406
glennjacobs
pushed a commit
to lunarphp/docs
that referenced
this pull request
Feb 26, 2026
) Added additional example for Tax Incl Price based on PR: lunarphp/lunar#2406
glennjacobs
added a commit
to lunarphp/docs
that referenced
this pull request
Feb 26, 2026
* Fixed typo in ## Determining cart changes (#8) * Update overview.mdx (#7) ProductOption{r}Resource > ProductOptionResource * Fix grammatical error in storefront session documentation (#6) Removed type "a" * Added info about Root Collection in collections#add-a-child-collection (#10) * Added info about Root Collection in collections#add-a-child-collection * Added Warning about "name" being used internally from Attribute Data, in collections#create-a-collection * Added notes about "name" attribute data being used internally (#9) * Added notes about "name" attribute data being used internally * Converted the added Note to "Warning" * Add upgrade docs * Lessen to low impact * tweak wording * Update installation.mdx * Update installation.mdx * Update table-rate-shipping.mdx * Add page titles to support LLMS.txt * Update CLAUDE.md * Update CLAUDE.md * Update CLAUDE.md * Update CLAUDE.md * Update CLAUDE.md * Update CLAUDE.md * Update CLAUDE.md * Fix composer require command syntax (#16) * Fix space after comma (#14) * Update products.mdx with price method. Related to PR in Lunar Core, (#15) Added additional example for Tax Incl Price based on PR: lunarphp/lunar#2406 * Addresses (#18) * Update addresses.mdx * Update addresses.mdx * Update addresses.mdx * Move countries and states * Update addresses.mdx * Carts (#19) * Update carts.mdx * Code fixes * Update carts.mdx * Update carts.mdx * Update carts.mdx * Update carts.mdx * Update carts.mdx * Update carts.mdx * Update carts.mdx * Update carts.mdx * Customers (#20) * Update customers.mdx * Update customers.mdx * Update customers.mdx * Update customers.mdx * Update discounts.mdx (#21) * Update orders.mdx (#22) * Update payments.mdx (#23) * Update pricing.mdx (#24) * Guides (#25) * PDP * Initial guide concepts * Code fixes * Basic guides * More guides * Update search.mdx * Search add-on (fixes) (#26) * Update search.mdx * Update search.mdx * Update table-rate-shipping.mdx (#27) --------- Co-authored-by: Mac Tavish <49161243+MacTavish-69@users.noreply.github.com> Co-authored-by: Waspar <1203589+waspar@users.noreply.github.com> Co-authored-by: wupangyen <72144016+wupangyen@users.noreply.github.com> Co-authored-by: Alec Ritson <hello@itsalec.co.uk> Co-authored-by: Alec Garcia <alec@hyrograsper.com> Co-authored-by: Samuel <ratto_trash@hotmail.it>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added optional TaxZone parameter to
priceIncTax,comparePriceIncTax, andgetPriceableTaxRatemethods to allow tax calculations based on specific tax zones.Details
Lunar internally worked on default tax and default tax zone basis only. With this PR, we can provide our own determined tax zone (typically IP -> Country -> Tax Zone) and provide it to the method to show us tax inclusive prices.
Unless custom Tax zone is provided, the method continues to behave as normal and previously.
Documentation Update Link will be added after generation of this PR.