block.json
1 year ago
controller.php
5 months ago
index-rtl.css
1 year ago
index.asset.php
1 month ago
index.css
1 year ago
index.js
1 month ago
style-index-rtl.css
4 months ago
style-index.css
4 months ago
view.php
5 months ago
controller.php
25 lines
| 1 | <?php |
| 2 | $form = \SureCart::forms()->getDefault(); |
| 3 | $form_mode = \SureCart\Models\Form::getMode( $form->ID ); |
| 4 | $style = ! empty( $attributes['width'] ) ? 'width: ' . $attributes['width'] . ';' : ''; |
| 5 | |
| 6 | wp_interactivity_state( |
| 7 | 'surecart/checkout', |
| 8 | array( |
| 9 | // derived states. |
| 10 | 'checkout' => [ |
| 11 | 'line_items' => [ |
| 12 | 'data' => [], |
| 13 | ], |
| 14 | ], |
| 15 | 'discountIsRedeemable' => false, |
| 16 | 'isDiscountApplied' => false, |
| 17 | 'hasDiscountAmount' => false, |
| 18 | 'hasSubtotalScratchAmount' => false, |
| 19 | 'itemsCount' => 0, |
| 20 | 'hasItems' => false, |
| 21 | ) |
| 22 | ); |
| 23 | |
| 24 | return 'file:./view.php'; |
| 25 |