|
|
před 2 roky | |
|---|---|---|
| .. | ||
| Block | před 2 roky | |
| Controller | před 2 roky | |
| CustomerData | před 2 roky | |
| Helper | před 2 roky | |
| Model | před 2 roky | |
| Observer | před 2 roky | |
| Plugin | před 2 roky | |
| Pricing | před 2 roky | |
| Setup | před 2 roky | |
| Test | před 2 roky | |
| Ui/DataProvider/Product/Collector | před 2 roky | |
| ViewModel | před 2 roky | |
| etc | před 2 roky | |
| i18n | před 2 roky | |
| view | před 2 roky | |
| LICENSE.txt | před 2 roky | |
| LICENSE_AFL.txt | před 2 roky | |
| README.md | před 2 roky | |
| composer.json | před 2 roky | |
| registration.php | před 2 roky | |
The Magento_Wishlist module implements the Wishlist functionality.
This module allows customers to create a list of products that they can add to their shopping cart to be purchased at a later date, or share with friends.
Before installing this module, note that the Magento_Wishlist is dependent on the following modules:
Before disabling or uninstalling this module, note the following dependencies:
Refer to how to enable or disable modules in Magento 2.
Pricing/ - the directory that contain solutions for configurable and downloadable product price.
For information about a typical file structure of a module, see Module file structure.
Extension developers can interact with the Magento_Wishlist module. For more information about the Magento extension mechanism, see Magento plug-ins.
The Magento dependency injection mechanism enables you to override the functionality of the Magento_Wishlist module.
The module dispatches the following events:
product_option_renderer_init event in the \Magento\Wishlist\Block\Customer\Wishlist\Item\Options::_construct() method. Parameters:
block is a Wishlist block customer items (\Magento\Wishlist\Block\Customer\Wishlist\Item\Options class).rss_wishlist_xml_callback event in the \Magento\Wishlist\Model\Rss\Wishlist::getRssData() method. Parameters:
$args is a array of product object (\Magento\Catalog\Model\Product class).wishlist_add_item event in the \Magento\Wishlist\Model\Wishlist::addItem() method. Parameters:
item is an item object (\Magento\Wishlist\Model\Item class).wishlist_add_product event in the \Magento\Wishlist\Controller\Index\Add::execute() method. Parameters:
wishlist is a Wishlist object (\Magento\Wishlist\Model\Wishlist class).product is a product object (\Magento\Catalog\Api\Data\ProductInterface class).item is an item object (\Magento\Wishlist\Model\Item class).wishlist_item_collection_products_after_load event in the \Magento\Wishlist\Model\ResourceModel\Item\Collection::_assignProducts() method. Parameters:
product_collection is a product collection object (\Magento\Catalog\Model\ResourceModel\Product\Collection class).wishlist_items_renewed event in the \Magento\Wishlist\Helper\Data::calculate() method.wishlist_product_add_after event in the \Magento\Wishlist\Model\Wishlist::addNewItem() method. Parameters:
items is an array of item object (\Magento\Wishlist\Model\Item class).wishlist_share event in the \Magento\Wishlist\Controller\Index\Send::execute() method. Parameters:
wishlist is a Wishlist object (\Magento\Wishlist\Model\Wishlist class).wishlist_update_item event in the \Magento\Wishlist\Controller\Index\UpdateItemOptions::execute() method. Parameters:
wishlist is a Wishlist object (\Magento\Wishlist\Model\Wishlist class).product is a product object (\Magento\Catalog\Api\Data\ProductInterface class).item is an item object (\Magento\Wishlist\Model\Item class).For information about the event, see Events and observers.
This module introduces the following layouts and layout handles in the directories:
view/adminhtml/layout:
customer_index_wishlistview/base/layout:
catalog_product_pricesview/frantend/layout:
catalog_category_viewcatalog_product_viewcatalogsearch_advanced_resultcheckout_cart_indexcheckout_cart_item_rendererscustomer_accountdefaultwishlist_email_itemswishlist_email_rsswishlist_index_configurewishlist_index_configure_type_bundlewishlist_index_configure_type_configurablewishlist_index_configure_type_downloadablewishlist_index_configure_type_groupedwishlist_index_configure_type_simplewishlist_index_indexwishlist_index_sharewishlist_shared_index.xmlFor more information about a layout, see the Layout documentation.
You can extend a customer form and widgets using the configuration files located in the directories
view/base/ui_component:
customer_formview/frontend/ui_component:
widget_recently_comparedwidget_recently_viewedFor information about a UI component, see Overview of UI components.