1 | <?php |
||
2 | |||
3 | namespace SilverShop\Checkout\Step; |
||
4 | |||
5 | use SilverShop\Cart\ShoppingCart; |
||
6 | use SilverShop\Checkout\Component\AddressBookBilling; |
||
7 | use SilverShop\Checkout\Component\AddressBookShipping; |
||
8 | use SilverShop\Checkout\CheckoutComponentConfig; |
||
9 | |||
10 | class AddressBook extends Address |
||
11 | { |
||
12 | private static $allowed_actions = array( |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
13 | 'shippingaddress', |
||
14 | 'ShippingAddressForm', |
||
15 | 'setshippingaddress', |
||
16 | 'billingaddress', |
||
17 | 'BillingAddressForm', |
||
18 | 'setbillingaddress', |
||
19 | ); |
||
20 | |||
21 | public function shippingconfig() |
||
22 | { |
||
23 | $config = CheckoutComponentConfig::create(ShoppingCart::curr()); |
||
24 | $config->addComponent(AddressBookShipping::create()); |
||
25 | |||
26 | return $config; |
||
27 | } |
||
28 | |||
29 | public function billingconfig() |
||
30 | { |
||
31 | $config = CheckoutComponentConfig::create(ShoppingCart::curr()); |
||
32 | $config->addComponent(AddressBookBilling::create()); |
||
33 | |||
34 | return $config; |
||
35 | } |
||
36 | } |
||
37 |