Skip to content

magento man

Where is this.address() defined in vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js?

I try to figure out where this.address() is defined in vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js ? /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ define([ ‘jquery’, ‘ko’, ‘uiComponent’, ‘underscore’, ‘Magento_Checkout/js/action/select-shipping-address’, ‘Magento_Checkout/js/model/quote’, ‘Magento_Checkout/js/model/shipping-address/form-popup-state’, ‘Magento_Checkout/js/checkout-data’, ‘Magento_Customer/js/customer-data’ ], function… Read More »Where is this.address() defined in vendor/magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js?

How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?

Use di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoShippingControllerAdminhtmlOrderShipmentPrintAction” type=”CustomModuleControllerAdminhtmlShipmentPrintAction” /> </config> Use PrintAction.php <?php namespace SingsysFilenameShipmentControllerAdminhtmlShipment; use MagentoFrameworkAppResponseInterface; use MagentoFrameworkAppFilesystemDirectoryList; class PrintAction extends MagentoShippingControllerAdminhtmlOrderShipmentPrintAction { public function execute() { $shipmentId = $this->getRequest()->getParam(‘shipment_id’); if ($shipmentId) { $shipment = $this->_objectManager->create(MagentoSalesModelOrderShipment::class)->load($shipmentId); if… Read More »How to change of the packingslip pdf file name (Shipment) with the shipping ID generated from admin?