1 | <?php |
||
17 | class QuoteCustomer implements Helper |
||
18 | { |
||
19 | /** |
||
20 | * @var Builder |
||
21 | */ |
||
22 | private $_builder; |
||
23 | /** |
||
24 | * @var Mage_Sales_Model_Quote |
||
25 | */ |
||
26 | private $_quote; |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $_data; |
||
31 | |||
32 | public function __construct(Builder $_builder, Mage_Sales_Model_Quote $_quote, array $_data) |
||
39 | |||
40 | public function setupMethodGuest() |
||
41 | { |
||
42 | $this->_quote->setCustomerId(null) |
||
43 | ->setCustomerEmail($this->_quote->getBillingAddress()->getEmail()) |
||
44 | ->setCustomerIsGuest(true) |
||
45 | ->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID); |
||
46 | } |
||
47 | |||
48 | public function setupMethodRegister() |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | * @return date|bool |
||
57 | * |
||
58 | */ |
||
59 | private function _setupCustomerOptionalData() |
||
80 | |||
81 | private function _setupCustomerDataAndValidate() |
||
99 | } |
||
100 |