Skip to content

Commit 0cc9674

Browse files
authored
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
1 parent 9dea91b commit 0cc9674

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

1.x/reference/products.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,10 @@ available on the `Lunar\Models\Price` model.
663663

664664
```php
665665
$price->priceIncTax();
666+
$price->priceIncTax($yourTaxZone); // TaxIncl Price based on your Tax Zone and Tax Rate.
666667
$price->priceExTax();
667668
$price->comparePriceIncTax(); // to retrieve the tax inclusive compare price
669+
$price->comparePriceIncTax($yourTaxZone); // TaxIncl Price based on your Tax Zone and Tax Rate.
668670
```
669671

670672
### Customising Prices with Pipelines

0 commit comments

Comments
 (0)