Skip to content

magento2.3

Auto Added by WPeMatico

Could not find a matching version of package

I have uploaded my magento 2 module to GitHub, and published my private module to https://packagist.com/. Now module published successfully as below. And my composer as below { “name”: “vlcsolutions/module-connector”, “description”: “Business Central Express Connect”, “require”: { “php”: “~7.0.0|~7.1.0|~7.2.0|~7.3.0|~7.4.0″ },”minimum-stability”:… Read More »Could not find a matching version of package

getting Js error in google analytics code

We are using google analytics in our website but getting below error in console. Error: Uncaught SyntaxError: Unexpected token ‘:’ Script: <script type=”text/x-magento-init”> { “*”: { “Magento_GoogleAnalytics/js/google-analytics”: { “isCookieRestrictionModeEnabled”: <?= (int)$block->isCookieRestrictionModeEnabled() ?>, “currentWebsite”: <?= (int)$block->getCurrentWebsiteId() ?>, “cookieName”: “<?= /* @escapeNotVerified… Read More »getting Js error in google analytics code

Magento 2 get custom attribute and show on phtml file

I have created a custom product attribute using a module. $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, ‘special_feature’, [ ‘type’ => ‘text’, ‘label’ => ‘Special Feature’, ‘input’ => ‘textarea’, ‘required’ => false, ‘sort_order’ => 12, ‘global’ => MagentoEavModelEntityAttributeScopedAttributeInterface::SCOPE_STORE, ‘group’ => ‘Special Feature’, ‘backend’ => ‘MagentoEavModelEntityAttributeBackendArrayBackend’,… Read More »Magento 2 get custom attribute and show on phtml file

Should I change the Vendor file in magento ver 2.3.5 p2 for customization in sales order view page

I’ve to show the product thumbnail image in Admin order overview page in Magento 2.3.2P2 I am looking to customize default.phtml file of vendor module. /vendor/magento/module-sales/view/adminhtml/templates/order/view/items/renderer/default.phptml my required code is as below – <?php /** * Copyright © Magento, Inc.… Read More »Should I change the Vendor file in magento ver 2.3.5 p2 for customization in sales order view page

Use Custom Module collection in other custom Module magento 2

I want collection of one module in other module. I am doing it like use TestCompanyAddressesModelCompanyAddressFactory; class ReformatTelephoneField implements DataPatchInterface { protected $companyAddressFactory; /** * @param CompanyAddressFactory $companyAddressFactory */ public function __construct( CompanyAddressFactory $companyAddressFactory ) { $this->companyAddressFactory = $companyAddressFactory; }… Read More »Use Custom Module collection in other custom Module magento 2