Magento Commerce is the leading provider of open omnichannel innovation. Its an open source, cloud-based digital commerce platform and omnichannel solutions empowers merchants to integrate digital and physical shopping experiences. Built for rapid innovation, the platform combines rich, out-of-the-box functionality with powerful business tools. This customizable platform seamlessly integrates with third-party solutions, can be deployed in any environment, and is backed by a vast network of commerce experts ready to help you.
The enterprise edition of Magento comes with many additional features to boost sales, customer interaction, retention and loyalty.
Magento 2 EE Gift Registry allows buyers create gift registries for various events and add products from their wishlist to the registry. The client wanted to give their buyers the option to directly add products to the Gift Registry from the product details page.
Understand how the Gift Registry & Wishlist systems work and create a module that will extend the Gift Registry module to add a link to ‘Add to Gift Registry’ directly from the product details page.
Create a new module extending the Gift Registry module which will act like its adding products directly to the Gift Registry. The module will not affect the default Gift Registry flow of Magento. Instead it will add the product to the wishlist behind the scenes giving the buyer the illusion that the product is added to the Gift Registry directly. If the customer if logged in, the ‘Add to Gift Registry’ link on the product details page will show a list ‘Gift Registries’ that the buyer has previously added so that they can quickly add to an existing registry. The list will also have a link to create a new registry, which will redirect the customer to Magento’s create registry form. In case, the customer is not logged in, the ‘Add to Gift Registry’ link will ask the buyer to login first.
The whole process happens in Ajax calls hence, the buyer doesn’t leave the product details page. In case, the buyer doesn’t select a product option, this module will alert the buyer. The buyer can see the list of products that they have added to the Gift Registry in their default wishlist.
The main issue was simulating the Wishlist flow without the customer knowing it. Multiple dependency injections had to be done to get the Wishlist & Gift Registry modules work behind the scenes. In case, the buyer didn’t have a wishlist then, a new wishlist had to be created behind the scenes.
The first benefit for the client is that their buyer can directly add products to Gift Registries via ajax giving them a seamless experience. The second, implicit benefit for the client is that, the default Gift Registry flow of Magento is not altered. This ensures that the module can be easily maintained through future Magento upgrades.