|
@@ -120,7 +120,7 @@ discard block |
|
|
block discarded – undo |
|
120
|
120
|
$fields->push(HiddenField::create(ProductPage::getGeneratedValue($code, 'product_id', |
|
121
|
121
|
$this->product->ID))->setValue($this->product->ID)); |
|
122
|
122
|
$fields->push(HiddenField::create(ProductPage::getGeneratedValue($code, 'price', |
|
123
|
|
- $this->product->Price))->setValue($this->product->Price));//can't override id |
|
|
123
|
+ $this->product->Price))->setValue($this->product->Price)); //can't override id |
|
124
|
124
|
$fields->push(HiddenField::create(ProductPage::getGeneratedValue($code, 'weight', |
|
125
|
125
|
$this->product->Weight))->setValue($this->product->Weight)); |
|
126
|
126
|
|
|
@@ -148,11 +148,11 @@ discard block |
|
|
block discarded – undo |
|
148
|
148
|
|
|
149
|
149
|
$fields->push(DropdownField::create('quantity', 'Quantity', $quantity)); |
|
150
|
150
|
|
|
151
|
|
- $fields->push(HeaderField::create('submitPrice', '$' . $this->product->Price, 4)->addExtraClass('submit-price')); |
|
|
151
|
+ $fields->push(HeaderField::create('submitPrice', '$'.$this->product->Price, 4)->addExtraClass('submit-price')); |
|
152
|
152
|
$fields->push(HeaderField::create('unavailableText', 'Selection unavailable', 4)->addExtraClass('hidden unavailable-text')); |
|
153
|
153
|
|
|
154
|
154
|
$this->extend('updatePurchaseFormFields', $fields); |
|
155
|
|
- } else { |
|
|
155
|
+ }else { |
|
156
|
156
|
$fields->push(HeaderField::create('submitPrice', 'Currently Out of Stock'), 4); |
|
157
|
157
|
} |
|
158
|
158
|
|
|
@@ -189,7 +189,7 @@ discard block |
|
|
block discarded – undo |
|
189
|
189
|
protected function getProductOptionSet() |
|
190
|
190
|
{ |
|
191
|
191
|
|
|
192
|
|
- $assignAvailable = function ($self) { |
|
|
192
|
+ $assignAvailable = function($self) { |
|
193
|
193
|
$this->extend('updateFoxyStripePurchaseForm', $form); |
|
194
|
194
|
$self->Available = ($self->getAvailability()) ? true : false; |
|
195
|
195
|
}; |