Skip to main content

Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Magento 2 - Add 2 New fields in bundle item option Selection

I'm trying to create a module which adds 2 fields in bundle option. I've already managed to add 2 field: However, it doesn't save the values in my database. The columns are created, but they are not ...
Petacchi's user avatar
0 votes
3 answers
47 views

Automatically set From Email and Name before sending an Email from Magento

My current requirement is to use AWS SES to send emails from my Magento(2.4.7) project. Since AWS also requires the from email which is a verified identity on SES itself. When i tried to configure ...
Karthik Nk's user avatar
0 votes
0 answers
37 views

Magento 2 : Fail to override interface module

I face problem with extension interface in website. My extension_attributes.xml: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
Matias's user avatar
  • 1
0 votes
0 answers
26 views

Magento 2 : Auto-deleting module files and theme files?

I'm still pretty new to Magento but have been editing some code for modules and themes today and whilst making the edits all the files relating to a module and/or theme have been completely removed. (...
DomiGuy's user avatar
  • 21
1 vote
1 answer
47 views

ViewContent meta Pixel not passing product name parameter

We are using PWA Venia Reactjs setup and We integrated Meta pixel event called ViewContent in our site using below code : src/components/ProductFullDetail/ProductFullDetail.Js <script> fbq('...
Baby in Magento's user avatar
0 votes
1 answer
48 views

error filtering templat: Template file 'header.html' is not found in mail in magento 2.4.6

Send invoice email to custom mail address in magento 2 but create custom email template but face this issue in magento 2.4.6 app/code/YourVendor/YourModule/etc/email_templates/invoice_email_template....
Ravindrasinh Zala's user avatar
0 votes
1 answer
37 views

updating product description via coding correctly shows text on product page but admin side's edit description with pagebuilder shows old values?

In my custom module, I am able to set the description of an existing product successfully using the code below & the product url shows correct output for description: $product = $this->...
raza19's user avatar
  • 23
0 votes
0 answers
30 views

Add product attribute data to cart data

I'm working on displaying two specific options, compound_id and medication_id, in the checkout data within Magento. At present, I've managed to display mif in the cart data, but that's outside the ...
Demasys's user avatar
  • 11
0 votes
2 answers
136 views

There are no commands defined in the "setup:cron" namespace after upgrade to Magento 2.4.6-p3

After upgrading to magento 2.4.6-p3 in system.log and cron.log it is generating same error daily i.e - main.ERROR: There are no commands defined in the "setup:cron" namespace. Did you mean ...
Tisha Jhanwar's user avatar
0 votes
1 answer
73 views

Compilation from source: LESS file is empty:

I have upgraded my magento version from 2.4.0 to 2.4.6-p3 and in exceptions.log file i am continuously getting one error i.e main.CRITICAL: Magento\Framework\View\Asset\ContentProcessorException: ...
Tisha Jhanwar's user avatar
0 votes
0 answers
18 views

Override Braintree Config.xml via Custom Module

Below is an except from vendor/paypal/module-braintree-core/etc/config.xml and I am curious how to add new credit card to, <cctypes_braintree_mapper> via a custom module. Is this done via a di....
A. Andersen's user avatar
0 votes
0 answers
18 views

filtering by multiselect attribute displaying values in static block

When filtering by text attribute type the module block and phtml template retrieve values by attribute code, however its not not returning values on MultiSelect ive tried the following: // Build a ...
Chris's user avatar
  • 1
0 votes
0 answers
121 views

After upgrade to magento 2.4.6-p3, the pagination is not working

Upgraded my magento to 2.4.6 from 2.4.0 and the pagination is showing but it is not working. when i am clicking on page 2, it is not going on next page and the url is also not updating. Here is my ...
Tisha Jhanwar's user avatar
1 vote
0 answers
114 views

Magento 2.4 How to implement BfCache

I want to implement BFCache into Magento but did not find the proper resources for implementing it using a custom module. BFCache Reference link : https://web.dev/articles/bfcache Can anyone guide me ...
Msquare's user avatar
  • 9,173
1 vote
0 answers
44 views

Adobe Live Search Compatibility Custom Extension

Can we make custom extension compatible with Adobe Live Search which not contains any specific entity data like Catalog, i.e.?
Yash's user avatar
  • 11
2 votes
0 answers
42 views

Sorting custom columns from module that extends another module containing all the data (collections, data providers, etc.)

I have two custom columns in UI grid (let's call them subscribed_customers" and "unique_purchases") created in particular listings that retrieve value from the database with logic. ...
Dramorian's user avatar
0 votes
1 answer
40 views

rearrange more information & details tab in product details page in product details page

I need to change the default tab on product details to be more information tab, i make this edit in vendor, i replace this code <block class="Magento\Catalog\Block\Product\View\Details&...
Omar Khaled's user avatar
0 votes
0 answers
45 views

Error: Cannot instantiate interface Magento\ReCaptchaWebapiApi\Api\WebapiValidationConfigProviderInterface

I have just upgraded my magento version from 2.4.0 to 2.4.6 and i am getting this issue on checkout shipping page and shiiping methods are not displaying. Error: Cannot instantiate interface Magento\...
Tisha Jhanwar's user avatar
0 votes
1 answer
38 views

Change layout based on url parameter - Magento 2.4

We created a custom module, to load a observer before layout_load_before. And then we would like to change the custom layout, based on a url parameter ?content-only=yes. For some reason it does not ...
JGeer's user avatar
  • 1,420
1 vote
1 answer
245 views

Call to a member function isGlobalScopeEnabled() on null

I have just updated my magento version from 2.4.0 to 2.4.6 and i am getting this error on frontend.Please suggest any solution. Also i have custom theme but i am not getting why this error is occuring....
Tisha Jhanwar's user avatar
1 vote
2 answers
1k views

Zend framework is deprecated in magento 2.4.6

I have just upgraded my Magento version from 2.4.0 to 2.4.6 and it is giving this error while opening admin. please suggest any solution 1 exception(s): Exception #0 (Exception): User Deprecated ...
Tisha Jhanwar's user avatar
0 votes
0 answers
31 views

Write Magento2 Custom Module to set Minimum Order Amount for Selected Customer Groups

I developed a Magento 2 module to add customer groups dropdown in admin panel Store-> Configuration -> Sales -> Minimum Order Amount so I can set min order amount only for some customer ...
Armi_Raz's user avatar
0 votes
1 answer
51 views

Magento 2: REST API Endpoint uses wrong locale

I'm implementing an endpoint where the users can create products from a CSV, using the same logic that Magento implements in the backend to import CSV seems to work great but I have a problem, the ...
Jesus's user avatar
  • 1
0 votes
3 answers
50 views

Preference Module - When to Pass in Parent Dependencies

I am currently creating a preference module to add additional functionality to \Magento\Catalog\Model\Product and in reviewing some of the tutorials, example below, I noted that dependencies weren't ...
A. Andersen's user avatar
1 vote
1 answer
62 views

Event observer hangs on order creation

Situation: I'm creating a Magento 2 module that listens to specific event observers, gets the ID's associated with those events, and sends them to a third-party Node app. This Node app will receive ...
cereallarceny's user avatar
0 votes
0 answers
19 views

Third Party Module Layout Override - use custom module or within theme directory

When overriding a layout xml file from a third-party module, example being Amasty, is it best to include the new xml file within a custom module, within app/code, or within the theme directory, that ...
A. Andersen's user avatar
1 vote
1 answer
444 views

How To Disable Page Builder for specific form field in Magento 2?

I want to disable the page builder for specific fields in my custom module. I want to show the default wysiwyg editor. and all other page I need page builder with wysiwyg editor Here is my UI ...
user avatar
1 vote
1 answer
154 views

Magento 2.4.6: Getting error "Namespace not defined properly" when compile command running

When I am trying to compile, then I am getting Below error: Namespace not defined properly you can see proper command running here : www-data@robert-php-fpm:/var/www/html$ bin/magento setup:di:...
Amit Dwivedi's user avatar
  • 1,550
1 vote
1 answer
86 views

Update increment pad length in orders to remove leading zero's

I'm looking for the most up to date and most recommended way to update increment_pad_length I've seen many posts about direct with sql statements and other with di.xml eg: <?xml version="1.0&...
Juliano Vargas's user avatar
0 votes
0 answers
44 views

Child block is not loaded when the main block is called in a CMS page

I made a custom module block with the following layout: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:...
mugnozzo's user avatar
  • 103
0 votes
1 answer
305 views

Create an incoming data Magento 2 Webhook

I am looking into creating a module which would listen to incoming data from another custom service. For example, the said external service would send data to domain.com/webhook (which would be ...
Deggial's user avatar
  • 120
0 votes
1 answer
43 views

Magento 2.4 - Dropshipping module help

I am attempting to work on a module that will send an email to several different dropshippers when an order is placed. I am not getting errors after a few tweeks. although. i'm not receiving any ...
Demasys's user avatar
  • 11
0 votes
2 answers
169 views

Cron job that delete customer in database

below is the cron job code that suppose to delete customer if they have value of 1 in deleteOrders field but it not doing that, what am i missing? <?php namespace Vendor\ThreeYearOrders\Cron; use ...
Bayzel's user avatar
  • 187
0 votes
1 answer
333 views

Trying to listen to the add to cart event

This is my first time playing around with Magento. I'm building a module and I want to listen when a product is added to the cart so, I've tried to use the ...
kevkevdev's user avatar
0 votes
1 answer
27 views

Apply the custom module optionally

Is it possible in Magento 2 to apply the custom module only if some condition is true? The module is installed through composer and enabled. The installed module overrides the standard Magento ...
lubart's user avatar
  • 101
0 votes
1 answer
354 views

what does $this->_coreRegistry->registry('current_category') return in magento 2?

what does $this->_coreRegistry->registry('current_category') return in magento 2 ?
duies's user avatar
  • 3
0 votes
1 answer
42 views

How to send the separate orderconfirmation mail for admin and customer

I created a custom module to send the separate mail for admin and customer but its not working.could you please suggest me regarding this so i can proceed forward.
Mohit Thakur's user avatar
0 votes
1 answer
136 views

add progress bar in minicart magento 2

I'm new to Magento, I have this module which adds progress bar in cart summary https://github.com/christophermallory/magento2-freeshipping-progress-bar, I want to add it to minicart
Khaled Yahya's user avatar
0 votes
1 answer
92 views

I'm trying to install sample data

The "https://repo.magento.com/archives/magento/sample-data-media/magento-sa mple-data-media-100.4.0.0.zip" file could not be written to C:\xampp2\htdoc s\myhikmadh/vendor/composer/tmp-...
Noor Mohamed's user avatar
0 votes
1 answer
28 views

my First Admin Page is not shown up

I try to write a own module. After 1 week of searching I hope u can help to go on. Its a very simple admin page. module_dir: app/code/famberg/module_afterbuysync/ ... Controller/Adminhtml/Settings/...
Michael Berg's user avatar
1 vote
0 answers
224 views

Magento 2 - Error with new custom module - Impossible to process constructor argument Parameter #1

Does anyone have any idea what this error is when running this command in magento 2: setup:upgrade for a custom module? Here is the error: Impossible to process constructor argument Parameter #1 [ <...
gcupat's user avatar
  • 11
0 votes
1 answer
245 views

Error in Postman and show that Invalid type for value: \"%productId%\

I have developed a module in my magento 2.2.6 for to create an API that can update the product price and quantity via product id . Please see my code below /var/www/html/app/code/AdmNetsuitePQ/...
Abilash Erikson's user avatar
0 votes
1 answer
162 views

Can you restore old Magento catalog and product data?

our Magento catalog database has undergone an update which mixed items together and caused chaos. Can we somehow extract old product data (product numbers, categories, which products were contained in ...
Inu's user avatar
  • 1
0 votes
1 answer
55 views

Magento 2 - Change value in .less file of a third party module

I need to change a value in this file of a 3rd party module from my own theme: vendor/amasty/xsearch/view/frontend/web/css/source/module/components/_search-input.less Am I correct that I need to make ...
Black's user avatar
  • 3,390
0 votes
1 answer
655 views

How to setup magento coding standard for the Magento 2 version

I am trying to set the magento coding standard in the Magento 2 version. I followed this link: https://github.com/magento-ecg/coding-standard. When I check code sniffer for the directory path: /...
Manoj Jarial's user avatar
0 votes
2 answers
94 views

how to return custom data with response in Customer API

I am calling Magento2 API /V1/customers/me I want to add custom data in response of this API that is stored in my custom table how can I implement this ? Thanks !!
Syed Hassan Zamir's user avatar
0 votes
0 answers
80 views

Resource access issue for an Integration of custom module

I am using Magento 2.4.5  I created an Integration for my custom module. I am successful in generating the oauth_token & oauth_token_secret. But when I want to see an order using API, I get a 401 ...
Md Shariful Islam's user avatar
1 vote
2 answers
280 views

REST API return JSON object using factory and interface

I am trying to create a simple module to return JSON data, if i returned string or array it will return the targeted data, but i can't return JSON object with key value when i return the interface it ...
Mohamad Zbib's user avatar
0 votes
2 answers
35 views

Local setup after disabling Magento_TwoFactorAuth admin panel still ask for Security Code

After local setup, I have disabled Magento_TwoFactorAuth and changed the value of Magento_TwoFactorAuth to 0 in config.php and still can't log in to the admin panel Security Code: After changing ...
Mac's user avatar
  • 1
0 votes
0 answers
141 views

Upgrade to 2.4.5-p1 app/code modules not recognized in setup:upgrade command

Upgrading from Magento 2.3.x to 2.4.5-p1, having sorted through the various PHP 8.1 issues, running setup:upgrade from the cli finishes, but the front end reports the standard Please upgrade your ...
theJoey's user avatar

1
2 3 4 5
64