Skip to content

Commit

Permalink
Documentation Fixes (#1906)
Browse files Browse the repository at this point in the history
Closes #1873 
Closes #1872
  • Loading branch information
alecritson authored Aug 15, 2024
1 parent 1a4d9e2 commit 69ca552
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/core/reference/products.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ You can associate attributes to a product type like so (it's just a straight
forward [Polymorphic relationship](https://laravel.com/docs/8.x/eloquent-relationships#many-to-many-polymorphic-relations)).

```php
$productType->mappedAttributes()->associate([ /* attribute ids ... */ ]);
$productType->mappedAttributes()->attach([ /* attribute ids ... */ ]);
```

You can associate both `Product` and `ProductVariant` attributes to a product type which will then display on either the
Expand Down
20 changes: 10 additions & 10 deletions docs/core/reference/taxation.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ These specify a geographic zone for tax rates to be applied. Tax Zones can be ba
Lunar\Models\TaxZone
```

|Field|Description|
|:-|:-|
|id||
|name|e.g. `UK`|
|zone_type|`country`, `state`, or `postcode`|
|price_display|`tax_inclusive` or `tax_exclusive`|
|active|true/false|
|default|true/false|
|created_at||
|updated_at||
|Field| Description |
|:-|:------------------------------------|
|id| |
|name| e.g. `UK` |
|zone_type| `country`, `states`, or `postcodes` |
|price_display| `tax_inclusive` or `tax_exclusive` |
|active| true/false |
|default| true/false |
|created_at| |
|updated_at| |

```php
$taxZone = TaxZone::create([
Expand Down

0 comments on commit 69ca552

Please sign in to comment.