All Questions
17 questions with no upvoted or accepted answers
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 ...
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/...
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:...
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 ...
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 ...
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 ...
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:...
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: $....
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\...
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';...
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 ...
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 ...
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\...
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-...
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 ...
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-...
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 $...