Skip to main content

All Questions

Tagged with
17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
4 answers
5k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
3tech - Alessandro Staffolani's user avatar
2 votes
1 answer
726 views

Notice: Undefined index: modules in ../Converter.php line 47 - Magento 2 - (Solved)

Hi i am getting error in magento 2 frontend after creating my custom module.(Here mmm2 is my magento directory) a:4:{i:0;s:134:"Notice: Undefined index: modules in /home/vhost/_default/mmm2/lib/...
Ravi Oza's user avatar
  • 478
2 votes
1 answer
2k views

Magento 2: How to define scope in di.xml & Router.php

I'm using Magento 2 CE Version 2.1.0. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Jackson's user avatar
  • 9,969
1 vote
1 answer
67 views

Send different email template to customer

I have a custom module which is a custom form for the user to book an appointment, this form works fine with no issues, the form once submitted sends and email to both the admin and user/customer but ...
Duggy G's user avatar
  • 193
1 vote
1 answer
694 views

Call current product in custom phtml file in Magento 2

On the product page I created a custom module to override the form.phtml file. I also added the option to include a new file called customFile.phtml when the user clicks on a button that is positioned ...
Jackom's user avatar
  • 503
1 vote
0 answers
143 views

JSON response does not return as an array from external API for AyMakan carrier (shipping method module), but still data posted & saved to AyMakan web

I want to get an array as JSON response from POST request to external API for AyMakan carrier (shipping method module), but still OK data posted & saved to AyMakan web server. Therefore, The ...
Fisal Assubaieye's user avatar
1 vote
1 answer
374 views

How can i get customer data after registration?

I have the following code but it is not working. vendorName/moduleName/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Diego Zaizar's user avatar
1 vote
1 answer
2k views

Magento2 : Save Button Not Working in Admin Form Custom Module

I am Working on A magento 2 custom Module i have a Form as well a Product Grid in my form so i created tabs using block but Whenever i click on save button gives me Javascript Error TypeError: $....
User 69's user avatar
  • 145
1 vote
0 answers
1k views

Magento 2 Database table not creating

I'm trying to add a custom table for a module. The following code sits the Setup folder of my module: <?php namespace tivol\storeAvailability\Setup; use Magento\Framework\Setup\...
Mark's user avatar
  • 755
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
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
143 views

custom module stop working after Magento 2.4.3 upgrade

I have a module that extend the functionality of other module, in fact it display the product name and product price as a variable, after I upgrade the Magento to 2.4.3 this module stop working and I ...
Robert's user avatar
  • 2,186
0 votes
1 answer
105 views

Remove Items from Mass Action Menu

I am using the following to remove an Item from the Mass Action menu in the orders screen, I am struggling with making it work for multiple items. class MassAction extends \Magento\Ui\Component\...
miller75's user avatar
  • 419
0 votes
1 answer
86 views

Folder and file structure for state restriction module in Magento 2.3

I am new to Magento and am using the following "how to" guide to create a state restriction module in my Magento 2.3.3 instance: https://www.dckap.com/blog/how-to-restrict-specific-us-states-in-...
Petey88's user avatar
  • 47
0 votes
1 answer
628 views

Class contains 1 abstract method

During the install module we get issue: Compilation was started. Proxies code generation... 0/7 [>---------------------------] 0% < 1 sec 34.0 ...
Sylvester's user avatar
  • 2,254
0 votes
0 answers
548 views

How to show Prices for OUT of stock products in Magento 2

Here is my question - How to show prices for all out of stock products? Here pic http://prntscr.com/krhurk I created the module from here https://magento.stackexchange.com/questions/160145/magento-2-...
darkattack's user avatar
0 votes
2 answers
2k views

Get Wishlist product collection in Controller of Custom module Magento2

I am trying to get Wishlist product collection in Custom module controller for the new functionality. I searched in google and I got this: Inject this class in your constructor: protected $...
Murali Raj's user avatar