Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
63 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,431
0 votes
1 answer
732 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
132 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
86 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
348 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
37 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
146 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
93 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
89 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
0 votes
1 answer
632 views

Using a data patch to add the block into cms page

my task sounds like : "Using a data patch to add the block into cms page" i have data patch cms block class CmcBlock implements DataPatchInterface { const CMC_BLOCK = 'first_cmc_block';...
esca7a's user avatar
  • 21
1 vote
3 answers
113 views

Help please , Well configured, but i can't get Model in Magento 1.9.4.5

app/code/local/Info/news/Bock/Adminhtml/news/Grid.php <?php class Info_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid{ public function __construct(){ ...
abderrahim rida's user avatar
1 vote
1 answer
35 views

Getting and Error

I'm installing SEO Suite Installation via Composer but during installation I'm getting an error. Can anyone help me for the solution of this. Screenshot of error is attached.
Sufyan Ahmed's user avatar
1 vote
2 answers
38 views

Custom Page Module with existing theme template?

Is there a way to use a template from a third-party theme, that is already installed, with a newly created custom page module?
A. Andersen's user avatar
1 vote
1 answer
803 views

Module doesn't work when placed in `app/code`

i'm editing a Magento 2 module. If i install the module via composer require, then run all the necessary commands, the module works. If i manually copy the module files from vendor/{vendorname}/{...
aetonsi's user avatar
  • 113
1 vote
1 answer
201 views

How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

With the code below, I'm trying to instantiate an helper class from my custom module. // Sanitize the $_GET[] value // Create an object of the order loaded with the $order_id passed as query string. $...
CodeForGood's user avatar
4 votes
2 answers
128 views

Injecting code into theme product page

The may well be too broad of a question, but I'm having extreme difficulty finding any answers. I want to know if its possible to add a phtml block/view to a product page when you have a theme ...
Daniel Bowen's user avatar
2 votes
1 answer
41 views

overwrite 2 templates file by custom module, still loading the core files

I am using Magento 2.4.3p-1 I have 2 files vendor/Aw/Review/view/frontend/templates/email/review/request_form.phtml vendor/Aw/Review/view/frontend/email/review_reminder.html Since those 2 files in ...
Paul Fan's user avatar
  • 658
2 votes
0 answers
423 views

How can I display a multilingual store from right to left for Arabic store view?

welcome everybody. I'm Mostafa from Egypt, new to Magento. I installed magento 2.4.5 in localhost, and used the default theme "Luma", and added the Arabic language pack for the system, and ...
Mostafa Sayed's user avatar
1 vote
2 answers
95 views

layout messed up for Prince_Productattach module for magento 2.3.3

I am using a Prince_Productattach module on my Magento 2.3.3 CE, how can I troubleshoot some issues on the frontend. as the diagram shown, the product attach block display on two places, i didn't ...
Dennis Chan's user avatar
0 votes
2 answers
308 views

How to uninstall Stripe module installed in app/code

One of our client stores has had Stripe module installed in app/code as shown in the image below. I need to uninstall it and reinstall its latest version in vendor folder. Could you please share ...
CodeForGood's user avatar
2 votes
2 answers
2k views

Magento2: How to create a patch for custom module composer.json?

I want to know that can we create patch for some changes in composer.json of custom module. I am talking about custom module composer not magento composer. Its just like changes but instead of any php ...
Ralph Rhodes's user avatar
1 vote
3 answers
6k views

Deprecated Functionality: Optional parameter $data declared

We're in the process of upgrading our store from Magento 2.4.2 to 2.4.4 and encountered the error shown in the image below. Please help us fix this issue. Script in the project folder: <?php ...
CodeForGood's user avatar
0 votes
1 answer
503 views

mysql command to delete something from the setup_module table?

This should be a pretty easy question for most but i'm pretty bad with mysql. I did a select and i see that i need to remove a module schema version and data version but i don't know the exact delete ...
Head's user avatar
  • 189
0 votes
2 answers
98 views

Delete Custom module

I am new to magento development, made a custom module Vendor: Scandiweb Module: Scandiweb_Test The naming convention is not correct so I decided to delete it, I can't run module:uninstall because its ...
Saad Amir's user avatar
0 votes
0 answers
88 views

ERROR in bin/magento dev:urn-catalog:generate .idea/misc.xml

I am getting File ".idea/misc.xml" cannot be opened Warning!fopen(.idea/misc.xml): failed to open stream: No such file or directory while trying to generate urn AND YES the folder ./idea ...
Ashton's user avatar
  • 1
1 vote
2 answers
857 views

Magento 2. Failed to submit module to Magento Marketplace. setup/config/application.config.php failed to open stream

I am unable to submit a new module or update a existing module in the Magento Marketplace. For all modules/new versions, I get the error during the Technical Review at the Installation & Varnish ...
Victor S.'s user avatar
  • 320
2 votes
0 answers
227 views

Magento 2 Add a global js function

i'm trying to extend Magento_Ui/js/lib/core/class, in magento 2.4.3-p1, from a module but my extend js doesn't load in page here is my /view/frontend/web/require-config.js var config = { config: { ...
Weber's user avatar
  • 121
0 votes
2 answers
432 views

Magento 2: how to specify the module name in custom theme?

I need to override success.phtml file from module vendor/magento/module-inventory-in-store-pickup-frontend/view/frontend/templates/success.phtml I'm not sure how to get the module name from module-...
CodeForGood's user avatar
0 votes
2 answers
20 views

Can not add2cart grouped product when 1 input field is diabled

I need to disable the input field when customergroup = 0 or 1 and quantity is < 0 but when I add the argument 'disabled' to the input, the add2cart button does not put the other available items in ...
Rene Donkers's user avatar
0 votes
1 answer
183 views

Overriding a .phtml file in custom theme doesn't work

I've been trying to override D:\Projects\PMM-M2\public_html\vendor\magento\module-checkout\view\frontend\templates\success.phtml by placing the file in my custom theme at location D:\Projects\PMM-M2\...
CodeForGood's user avatar
0 votes
1 answer
219 views

Magento 2.4: How to change text "Order #" to "Confirmation #" in printed page that appears post order placement?

It happens too often that customers call or email, worried that there were two orders created when they only placed on order. The reason this happens is that Magento issues an order number such as ...
CodeForGood's user avatar
1 vote
2 answers
1k views

Magento2 Custom Page Builder, doesn't render widgets on frontend

I have a problem with the page builder on my custom module. In the adminhtml, everything is working fine, and my code propeller is saved to DB, but when I'm trying "echo" my code, the widget ...
dandan's user avatar
  • 11
0 votes
2 answers
63 views

Magento 2 Module Events

I'm new to magento module development and trying to write my own little module. Unfortunately, I'm having trouble understanding how to connect events to a REST request. What I want to achieve: ...
Piotr's user avatar
  • 1
0 votes
1 answer
796 views

Magento 2.4.2: The following modules are outdated: Perfectmakeupmirrors_PmmHead schema: current version - none, required version - 0.0.1

I just created a custom module to add a metatag in a category page of our Magento site by making use of event and observer. When reloading the category page, below is the error I see. I re-ran the ...
CodeForGood's user avatar
2 votes
2 answers
1k views

How to use theme's _variables.less file in my custom code module?

I have written a custom module that is located in the /app/code folder. My less file is located in /app/code/<Vendor>/<Module>/view/frontend/web/css/source/_module.less. How do I include ...
Richard Parnaby-King's user avatar
0 votes
1 answer
2k views

error install module with composer: PluginManager.php(273) : eval()'d code line 188

I have a problem when installing a module with composer, no matter which module, I get the same error. (In PluginManager.php(273) : eval()'d code line 188) Magento v2.4, PHP 8.1 run composer require ...
Jatniel's user avatar
  • 103
0 votes
1 answer
111 views

because the "Hello World" module is not displayed magento 2.4.3

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 ...
Arturo Cabrera's user avatar
0 votes
0 answers
272 views

How to create multiple file upload in magento 2.4.3-p1

I want to add multiple file upload option in the product edit form, and display it in the product grid in admin, and that uploaded files are display on the product details page in tab. can anyone have ...
Deep Shah's user avatar
  • 577
0 votes
1 answer
132 views

How to change filter "and" to "or"?

version : Magento 2.4 safira I want my website show every products related to filters I choose. If I choose multi filters, I only got products fulfilled all conditions. Is there any way I can edit ...
Ryung Kim's user avatar
0 votes
0 answers
48 views

how to make custom tier price in add product feature of magneto 2

I want to make a tier price programmatically for quantity-based shipping prices like the screenshot below, can anybody help me in developing this feature
Syeda's user avatar
  • 13
0 votes
2 answers
202 views

Magento installing different modules to those stated in composer.json

I have successfully updated to 2.4.3 and in doing so have upgraded a number of modules. For some reason, however, Magento is ignoring the module versions stated in the composer: Two modules for ...
Ian Rushton's user avatar
0 votes
1 answer
84 views

create custom module, get existing module configuration

I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key. how can I ...
Paul Fan's user avatar
  • 658
0 votes
1 answer
31 views

Control Variabile Print fron Backend

I have created a simple extension. In that, I add blocks on the product page. On the product page, I am printing some variables through a custom file in phtml above the add to cart button. Example: $...
KernelPaniC's user avatar
0 votes
0 answers
46 views

change product price based on the delivery datetime

I am new on Magento. I would like to ask how do I change the product's price based on delivery date time. In my Magento's development, the customer can choose a store, and then select "pickup now&...
littlesam's user avatar
0 votes
1 answer
822 views

Magento 2 layout XML reference block added in CMS page

I have a CMS page, and in certain place it references a custom block from my module as such: {{block class="My\Notification\Block\NotificationForm" name="notification.form" ...
Jan Zikmund's user avatar
1 vote
1 answer
517 views

Append ACL resource under parent custom ACL resource from another module - "Could not create an acl object: Resource id already exists in the ACL"

Using two modules: Vendor_ModuleA and Vendor_ModuleB, where Vendor_ModuleA will be a backend main menu/ACL module. Other modules (in this example Vendor_ModuleB) should use the ACL menu of ...
CvRChameleon's user avatar
0 votes
2 answers
130 views

Why is this code slow

We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
rodolphesalis's user avatar
0 votes
0 answers
68 views

Extension Layout won't work when using a custom theme

I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page. My extension layout file isn't being executed - instead it just executes my custom ...
Peter Stuart's user avatar
0 votes
1 answer
140 views

Can't add block below add to cart button

I am new to Magento and would like to add a custom block underneath the 'Add to Cart' button. Here is my catalog_product_view.xml file: <?xml version="1.0"?> <page xmlns:xsi="...
Peter Stuart's user avatar
0 votes
0 answers
17 views

Magento 1.9 custom modules not working after site cloned

I have just duplicated my Magento website to create a development website, everything looks to be working on it apart from the custom modules. Does anyone know why they would not be working? Thanks
CarbonCoder's user avatar

1
2
3 4 5
64