Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 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
23 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
53 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
36 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
16 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
16 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
71 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
66 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,043
0 votes
0 answers
15 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
  • 1
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
38 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
28 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
32 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,416
0 votes
1 answer
101 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
0 votes
2 answers
492 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
29 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
39 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
47 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
47 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
15 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
248 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
90 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,540
0 votes
0 answers
22 views

Custom Module accessible to other users but not working properly

I have created a custom module named "Service voucher list" I have created the acl.xml file too so that other users can have its access by custom resources too. now the module is accessible ...
Sikander's user avatar
1 vote
1 answer
66 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
39 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
0 answers
35 views

Captcha showing only on form route but not on CMS page

I followed this (with some fixes, since it wasn't working) and created a functioning form that I call as a block in a CMS page created in the backoffice from Content > Pages. Later I followed this ...
mugnozzo's user avatar
  • 103
0 votes
1 answer
197 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
39 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
133 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
0 answers
34 views

In Magento 2.4.1 How to Add custom fields to dashboard diagram totals and remove Tax, Shipping?

I want to Remove Tax and Shipping and replace them with Quantity, Subtotal, Extra Fee, Total, etc
Haseeb Iqbal's user avatar
0 votes
1 answer
196 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
26 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
219 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
108 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
78 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
142 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
205 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
125 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
0 answers
82 views

Magento 2: Save return to stock value from credit memo to database

I am implementing a credit memo export functionality and need to export whether the "Return to stock" field was checked when the credit memo was created. I know the value is not saved, ...
Marhess's user avatar
0 votes
1 answer
48 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,280
0 votes
1 answer
414 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
63 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
76 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
203 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
32 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
138 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 vote
1 answer
47 views

Composer Patch vs. Custom Module for Vendor Directory Modifications

Is there a general consensus on when you should create a custom module to override core vs when you should use a composer patch? At present, I need to add @ to a line of code and feel that a module is ...
A. Andersen's user avatar
0 votes
1 answer
43 views

How to check if a module needs an update using comands/code?

Is there a way to check if a module needs an update using commands or code ? Maybe i can compare the current version to the latest version, but how do i check what the latest version for a module is ? ...
Erabroub's user avatar

1
2 3 4 5
64