Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

Module that adds code snippet to every page on frontend

I'm working on a module for Magento 2. It's my first time writing a Magento module and, I feel like there is something basic that somehow fails to understand. I'm trying to add a code snippet to every ...
1 vote
2 answers
2k views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
0 votes
1 answer
2k views

How to use Magento2 Module Select2 Ui Component ? How active module in default.xml?

I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent I never had to use UI components. I want to active Select2 on ...
1 vote
1 answer
2k views

Magento 2 Mageplaza SMTP module error

I have a problem with this module: https://marketplace.magento.com/mageplaza-module-smtp.html Everytime I click on Test Now (send a test email), it throws me the following error I have read tons of ...
0 votes
2 answers
3k views

Invalid block type while accessing the custom block (Magento 2)

Error in magento 2.0.11 while accessing custom block Invalid block type: Tomrain\Appcustomizer\Block\Customizepage #0 /var/www/html/appcustomizer-tshirt-M2/vendor/magento/framework/View/Layout/...
1 vote
2 answers
9k views

how to get block data on phtml template in magento 2

what is missing in my code block data not shown in phtml template block page namespace xxxx\Trails\Block; use \Magento\Framework\View\Element\Template; use \Magento\Framework\View\Element\...
2 votes
3 answers
4k views

Magento:2 How to Image upload in custom module

Image upload working fine in tmp folder, then store in DB. I want to after saving data image stored in the base folder pub/media/events var_dump($data); " ["events_url"]=> array(1) { [0]=> ...
3 votes
2 answers
2k views

upgrading from magento2.2.5 to 2.3.5 I'm facing this issue

I'm upgrading from magento2.2.5 to 2.3.5 I'm facing this issue PHP Fatal error: Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in app/code/<Vendor>/<...
9 votes
2 answers
5k views

Magento2: How to include third pary module through composer.json in custom module

I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file { "name": "packagename/mymodule", "description": "N/...
0 votes
3 answers
3k views

Uncaught TypeError: $el.ColorPicker is not a function Magento 2

Magento ver. 2.0.18 I created a custom module in backend there is color picker options. for this i used this link color picker answer of @EmizenTech it works perfectly but some time it gives and if ...
0 votes
3 answers
2k views

Magento 2: RuntimeException it is being used by another process

When I do clear cache using command line & refresh page on Frontend 1st time it gives below exception. 1 exception(s): Exception #0 (RuntimeException): The path "D:/wamp/www/magento2/var/...
2 votes
1 answer
2k views

How to create ui-component and get it in custom block?

In Magento 2.1.4, I created custom template in backend. Company/Module/Block/Adminhtml/Edit/Custom has template Company_Module::html/custom.phtml. custom.phtml code: <div class="sample"> ....
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: $....
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
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:...
2 votes
1 answer
2k views

Magento 2: Submitted Form not calling Controller

To continue with the question below Magento 2: How to define Scope For Router.php app\code\Custom\Module\view\frontend\templates\posts\view.phtml <form class="form post reply" action="<?...
1 vote
1 answer
2k views

Warning: call_user_func() expects parameter 1 to be a valid callback

it is the first time that I have asked a question in the magento community since I started working in a company that uses this framework for ecommerce a month ago. It turns out that I am inside a ...
1 vote
1 answer
2k views

Debugging a Module in Magento2

I have one module working fine on one Magento Instance(installation), but If I am installing the same module on another Magento instance on the same server, the view in front-end is not showing. I ...
1 vote
2 answers
8k views

Magento 2 - The product that was requested doesn't exist

Magento2.3.0 I have the following error in var/log/exception.log any idea how to come this error main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. ...
0 votes
0 answers
46 views

You haven't provided your Magento authentication keys

I'm new in using Magento. Ok, I use Mage-OS. All is very difficult and sometimes no way to found a valide answer for questions. So I'm happy to find these forum and hope of your help. I want to ...
2 votes
1 answer
9k views

Magento 2.2 Fatal error: Uncaught ReflectionException: error

i created a new module, after runing this command php bin/magento module:enable myFirstModule i am getting this error. Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\...
2 votes
2 answers
166 views

Store Locator Module suitable for mobile

We have +3000 store locations to show on a map. The store locator module we are using right now works fine on a desktop view, but when we open it on a phone it's taking between 40 seconds to 2 ...
4 votes
2 answers
3k views

Magento 2 custom module not loading and it throws error

I am using windows 7. app\etc\config.php <?php return array ( 'modules' => array ( 'Test_Module1' => 1, ), ); ?> When I add My Test_Module1 in app\etc\config.php admin all ...
0 votes
1 answer
70 views

My magento 2 website is freezing and stuck due to debugger

(function anonymous( ) { debugger }) I am getting this in source tab and whole website is freezing because of it. I have not added this code anywhere. How to find out what is the exact issue. Also ...
0 votes
1 answer
2k views

Newsletter subscribe/unsubscribe email notification event observer

I am writing my own admin email notifications module. So far it has New Order and Low Stock observers set up and working just fine. I want to add the Newsletter subscribe/unsubscribe observer to it ...
1 vote
4 answers
8k views

Magento 2: How to set visibility and status to product using collection?

I'm creating a cron to pass through all the products and set them visible and active. This is my execute of the cron who runs well: public function execute(){ /** * @var $item \Magento\...
0 votes
0 answers
32 views

Magento 2 Custom Module - Adding Category IDs

I have created a custom module called SpecialsSubCategory. The folder sits in app > code > Gelmar > SpecialsSubCategory. The file structures are as follows SpecialsSubCategory > Controller ...
0 votes
2 answers
21 views

on click system configuration open tab not working

on this i faced this issue, on click system configuration open tab but after click other tab magneto admin click not working i can not able click any where enter link description here
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 ...
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 $...
1 vote
1 answer
2k views

Admin Ui Form component JS error

What Im trying to do I started creating my own module for Magento 2. Module is simple - manage news articles in admin side and display them in frontend. No problems displaying data in frontend so far....
0 votes
1 answer
35 views

Add fee to Payment method

I'm trying to add an extra fee to the order when the payment method is Cash on delivery and the shipping country is Greece. I have created the following files: app/code/HectorCustom/CodFee/...
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 ...
1 vote
1 answer
1k views

How to find the block to override for the navigation menu magento 2

current setup: Magento 2.2.4 installed with composer. I want to replace the navigation menu with a different navigation menu (MCP Menu Creator Pro). I think I am supposed to extend the magento/...
1 vote
1 answer
2k views

Magento 2 - how to get custom model from custom module

In Magento 2, how can I get a custom model that is created in a custom module (not a Magento 2 native module)? I know I can use object manager for getting and creating, and I know how to do this for ...
0 votes
1 answer
2k views

Magento 2 get custom module data in theme phtml

I have created the custom module and inserted all the required fields detail in the database. Now, I want to list all rows in below file path: I have tried with the $objectManager, but direct call $...
0 votes
1 answer
2k views

Magento 2 : Invalid block type while creating custom grid in backend

I've been trying to create custom gird in magento 2.0.11 but it keep returning Invalid block type: This error occurs while executing the file Tomrain/Appcustomizer/Block/Adminhtml/...
1 vote
4 answers
1k views

when run the url getting 404 error in custom module

When run the custom module getting 404 error. Anyone, please help me. app/code/Tychons/Registration/Block/Index.php <?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See ...
4 votes
1 answer
4k views

Magento 2: How to add a browse button to upload file in admin section?

Working on Magento 2 custom module implementation and want to add a browse button to upload a file in admin form. I have gone through the Magento2 : Admin module Image upload code to display form ...
4 votes
1 answer
2k views

Magento 2: Fatal error: Uncaught Error: Call to a member function getId()

After adding custom module on Server. It's giving below error Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/magento/vendor/magento/module-backend/Block/...
0 votes
2 answers
2k views

Magento2 - Get image url in model/helper

I have a helper class Email under vendor/module/model/helper/Email.php I have to access a image in the module_path/view/frontend/web/images I can't use $this->getViewFileUrl('vendor_module::...
0 votes
1 answer
1k views

Magento2 How to call model function in Controller

I have following model in one module namespace Abc\Abcd\Model\Job; use Magento\Backend\App\Action\Context; abstract class AbstractJob extends AbstractModel { private $name; public function ...
2 votes
3 answers
2k views

Purpose of magento\generated\metadata\global.php file and is it safe to delete this file?

I encountered the following issue when I have moved Magento 2 module into production with the command setup:di: compile Uncaught Error: Call to a member function setActive() on boolean in /opt/...
15 votes
6 answers
2k views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in the custom admin module with the help of the below user guide? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough ...
0 votes
5 answers
2k views

Magento 2 How to disable module using xml file?

I am facing issue to create module. I created one module and I given apply to system admin to enable disable. So, Right now I am doing module hide/show using below code. $objectManager = \Magento\...
2 votes
1 answer
2k views

How to add select state dropdown field in custom phtml form and save in database(frontend) in magento2.2.5?

I have added a select state dropdown field in my custom phtml file. But not able to save that value in database in Magento2.2.5? /var/www/html/magento2/app/code/Amy/Contactform/Block <?php ...
0 votes
1 answer
44 views

Product name change

Is there a way or a program etc that can help to change products on 50k products in an easier way than Excel or do it one by one in Admin? Thanks,
0 votes
1 answer
1k views

Product Listing Ui Component xml file not overriding in custom module

I need to override module-catalog\view\adminhtml\ui_component\product_listing.xml file in my custom module. I have copy the core magento file in my module at view\adminhtml\ui_component but its not ...
0 votes
1 answer
1k views

Magento 2 : Change default REST API response

I have an order collection get out via API How can I change some value in API response via custom module
8 votes
2 answers
38k views

Magento 2 - Send form data to Controller using AJAX and return Result to PHTML

I am working on a simple custom module, where user can input height and the weight/BMI will be shown as output on form submit. The page where user enters input is Calculation Page while output is ...

1
2 3 4 5
29