Skip to content

Commit

Permalink
Product price: Numeric Field needs decimals set
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed Feb 26, 2024
1 parent fe13858 commit 141979f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Page/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ function (FieldList $fields) use ($self) {
[
NumericField::create('BasePrice', $this->fieldLabel('BasePrice'))
->setDescription(_t(__CLASS__ . '.PriceDesc', 'Base price to sell this product at.'))
->setMaxLength(12),
->setMaxLength(12)
->setScale(2),
]
);

Expand Down

0 comments on commit 141979f

Please sign in to comment.