Skip to content

magento2.4

Auto Added by WPeMatico

Magento 2 : Reorder Throw Exception

After successful purchase in the order details page when i click reorder option it throw below exception TypeError: MagentoFrameworkDataObject::__construct(): Argument #1 ($data) must be of type array, null given, called in /var/www/html/magento2/vendor/magento/module-sales/Model/Reorder/OrderInfoBuyRequestGetter.php on line 65 and defined in /var/www/html/magento2/vendor/magento/framework/DataObject.php:40

‘Magento_Customer/js/customer-data’ javascript does not get cart items of customer

I have this code as below in a custom module define([ ‘rjsResolver’, ‘Magento_Customer/js/customer-data’, ‘jquery’ ], function (resolver, customerData, $) { ‘use strict’; return function (checkoutLoader) { var mixin = { gtmEventTrigger: function() { console.log(“Init Checkout Loader”); console.log(customerData); // console.log(customerData.get(‘cart’)); //… Read More »‘Magento_Customer/js/customer-data’ javascript does not get cart items of customer