What is the difference in the effect of calling the invoice capture ( ) method versus the invoice pay ( ) method?
A. The difference is determined by the payment method implementation.
B. capture ( ) will trigger the payment and pay ( ) will not.
C. pay ( ) will trigger the payment and capture ( ) will not.
D. No difference: pay ( ) will always call capture ( ).
正解:B
質問 2:
Which object never encapsulates any shopping cart items?
A. Mage_Sales_Model_Quote_Address<type=shipping>
B. Mage_Sales_Model_Quote_Address<type=billing>
C. Mage_Sales_Model_Quote
D. Mage_Checkout_Model_Cart
正解:C
質問 3:
Assume you have product with qty in stock=1, and two people are trying to buy it at the same time. Which of the following statements is true?
A. Only the person who passes the payment step first will be able to buy the product.
B. Only the person who starts checkout first will be able to buy the product.
C. Both persons can go to the Place Order step, but the one who places the order first will get the product.
D. Both persons will be able to complete the checkout, because both have local copies of the available inventory.
E. Only one is able to add the product to the shopping cart. That person will be able to buy the product.
正解:B
質問 4:
When changes are made to more than one of a collection's items using setData ('some', 'value'), which of the following methods will save the changes in the collection?
A. $collection->saveAllItems ( );
B. $collection->save ( );
C. $collection->saveItems ( );
D. $collection->saveAll ( );
正解:B
質問 5:
Which table is used for calculating a new increment ID for an order?
A. eav_entity_store
B. core_increment
C. core_config_data
D. sales_flat_order_increment
正解:A
質問 6:
Which method is responsible for a full re-index in the abstract Magento indexer?
A. reindex ( )
B. processEvent ( )
C. fullReindex ( )
D. reindexAH ( )
正解:D
質問 7:
Which of the following lines includes a payment method object?
A. $quote->getShippingAddress ( )>setPaymentMethod(isset ($data['method']) ? $data['method'] : null); inside Mage_Checkout_Model_Type_Onepage
B. $instance->setInfoInstance($this); inside Mage_Payment_Model_Info
C. .public function setPayment(Mage_Sales_Model_Quote_Payment $payment) inside Mage_Sales_Model_Quote
D. $method = $this->getMethodInstance ( ); inside Mage_Sales_Model_Quote_Payment
正解:D
質問 8:
Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?
A. Option C
B. Option A
C. Option D
D. Option B
正解:D
質問 9:
You want your module to set some data on the shopping cart item when a product is added to the cart on the frontend. Which event can be used regardless of how the product is added to the cart (from wishlist, through quote merge, etc.)?
A. checkout_cart_product_add_after
B. checkout_cart_save_before
C. sales_quote_product_add_after
D. sales_quote_merge_after
E. sales_quote_add_item
F. checkout_cart_add_product_complete
正解:E