I am practicing with the development of mageplaza modules. following the steps of the blog, but I don’t know if my InstallData.php is badly created, but nothing is loaded to the database. I have the module created on github https://github.com/GNUXDAR/magento2_code/tree/development <?php namespace ActecnologyHellorWorldSetup; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use […]
Magento
I am getting error on creating an shipment TypeError: Argument 2 passed to MagentoSalesModelOrderValidationShipOrder::MagentoSalesModelOrderValidation {closure}() must be an instance of MagentoSalesApiDataShipmentItemCreationInterface, instance of MagentoSalesModelOrderShipmentItem given in /vendor/magento/module- sales/Model/Order/Validation/ShipOrder.php:127 Here is how I am creating the shipment <?php namespace NavienCustomModel; class ShipmentManager { protected $_objectManager; protected $orderInterface; /** * @var MagentoSalesModelOrderShipmentTrackFactory […]
I tried to overwrite Magento_Catalog/js/catalog-add-to-cart.js only to extend the submitForm method as follows: app/code/Vendor/Module/view/frontend/requirejs-config.js /** * Copyright © Onectus, Inc. All rights reserved. * See COPYING.txt for license details. */ var config = { map: { '*': { productIframe: 'Vendor_Module/js/product-iframe', } }, config: { mixins: { 'Magento_Catalog/js/catalog-add-to-cart': { 'Vendor_Module/js/catalog-add-to-cart-mixin': true […]
I am working on a custom module in which I’ve implemented graphql. One of the key in response contains different fields. For example, in the below json response the dynamic_fields content will depend on item_type and will be different. "response" : { "items": { "item_id" : 1, "item_type" : "custom1" […]
i’ve made changes using di.xml file , related to module/sequnce.php . but that affects padding for both . I want invoice number like 1001 and order number like 10000001 . here i need different padding for both
Checked many blogs for 2 way ssl(Mutual Authentication) for magento api’s or PHP but did not get end to end implementation details. Below is my understanding. Lets consider client (sslclient.com) and server (sslserver.com), both will communicate after verifying ssl certificate. The client will verify server certificate and server will verify […]
I want to remove category filter from the aggregator for graphql. so i found the code which is in the MagentoCatalogGraphQlModelResolverAggregations and resolve(). i want to remove category_bucket from the result array using plugin and beforeResolve or aroundResolve method. public function resolve( Field $field, $context, ResolveInfo $info, array $value = […]
I have an issue i cant seem to find a setting for in the admin panel. On the products page everything looks good except the add to cart button ( displayed in dutch ) is not aligned. Is there a way i can get this aligned for a more clean […]