nerdexam
Magento

M70-101 · Question #42

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…

The correct answer is D. sales_quote_add_item. See the full explanation below for the reasoning.

Question

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.)?

Options

  • Acheckout_cart_add_product_complete
  • Bcheckout_cart_product_add_after
  • Ccheckout_cart_save_before
  • Dsales_quote_add_item
  • Esales_quote_product_add_after
  • Fsales_quote_merge_after

How the community answered

(54 responses)
  • A
    7% (4)
  • B
    2% (1)
  • C
    2% (1)
  • D
    72% (39)
  • E
    13% (7)
  • F
    4% (2)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice