| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function updateProductFields(FieldList &$fields) |
||
| 20 | { |
||
| 21 | if ($this->owner->getProduct()->CartExpiration) { |
||
| 22 | $fields->insertAfter( |
||
| 23 | 'url', |
||
| 24 | HiddenField::create('expires') |
||
| 25 | ->setValue( |
||
| 26 | AddToCartForm::getGeneratedValue( |
||
| 27 | $this->owner->getProduct()->Code, |
||
| 28 | 'expires', |
||
| 29 | $this->owner->getProduct()->ExpirationMinutes, |
||
| 30 | 'value' |
||
| 31 | ) |
||
| 37 |