Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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-...
2
votes
2answers
2k views

How to assign customer group automatically based on address information

How to assign customer group automatically following by address information When customer register on our website, customer write the country where they live. If customer live in United State, we ...
0
votes
0answers
8 views

Problem of config after installing module

After I have enabled my new module , I got this error with no details where the error persists so I can debug it, has anyone has an idea about this 1 exception(s): Exception #0 (Exception): Notice: ...
1
vote
1answer
921 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....
1
vote
2answers
3k views

Create Custom Tab into Magento 1.9 Admin Panel

This Problem is related to Backend side (Magento 1.9 Admin panel) not for Frontend side: Part: 1) - I wanna Create Custom tab (suppose 'CategoriesInfo') in magento 1.9 admin panel. (like parallel to ...
0
votes
0answers
14 views

Magento 2 - Do I have to create a new theme and recode my extensions after upgrading to magento 2 enterprise?

Do I have to create a new theme after upgrading to magento 2 enterprise and will my extensions stop working?
0
votes
0answers
17 views

Module not loading after update to 2.3.5?

I updated my Magento 2.2 shop to Magento 2.3.5. Now I got the problem that one of my modules (FireGento_MageSetup) is not running any longer. Its in the vendor folder, it has the registration.php and ...
0
votes
1answer
4k views

Magento 2 - What is the correct way to remove “Billing Agreements” tab from customer account? [duplicate]

What is the correct and the easiest way to remove the "Billing Agreements" tab from frontend ? The idea is just to hide the link so later if I need I could easily return it back. To do this in ...
5
votes
4answers
4k 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 ...
0
votes
0answers
6 views

Reference different CollectionFactory in parent module based on which child module calls it

TL;DR How can I make a Module's classes (e.g. Blocks, Helpers) reference different CollectionFactories based on which child Module calls it. Without hardcoding these into the parent. (parent module ...
3
votes
2answers
120 views

how to control the sort order of shipping method's rates in the same carrier class?

I'm trying to build a custom carrier-class (shipping method) that display shipping methods based on time/date related third party API, I tried to find out a solution to sort the below options but I ...
2
votes
2answers
996 views

M2 Change title of Orders and Returns page

I have tried to change the title of the Orders and Returns page with XML with the following code. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
2
votes
1answer
2k views

How to get and set custom field of customer_group table Magento 2

I create new extention and add some columns in customer_group table. but i can't get/set custom field. namespace [NameSpace]\[Extension]\Block\Adminhtml\Group\Edit; use Magento\Customer\Controller\...
26
votes
2answers
24k views

Magento 2: Default Values for `system.xml` Configuration

In Magento 1, it was possible to Configuration a user interface for the System Configuration section in etc/system.xml files Set default values for those fields in the etc/config.xml files Behind ...
0
votes
1answer
47 views

Magento 2: How to insert a custom JS file in the header of custom theme. This custom JS file is placed in pub/media/pmm-custom directory?

I'm looking for a way to add a custom js file in the header.phtml file. I don't place custom JS file under theme_directory for a obvious reason. Could anyone please tell me how to override header ...
1
vote
2answers
5k 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\...
0
votes
2answers
1k views

Helper Data not found - Can't access admin panel

Admin Panel only shows the following message: Fatal error: Class 'Mage_Sean_Adminmerchant_Helper_Data' not found in /home/makeyou/public_html/app/Mage.php on line 546 I deleted all files within: ...
4
votes
1answer
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 ...
0
votes
2answers
1k views

show .phtml file in admin custom module

Hi i see this question a few times here but i can't solve my error, i got well until the blank page in my admin custom module, I follow this tutorial. So can somebody tell me the right direction i got ...
0
votes
4answers
769 views

Module works when in app/code but not when in vendor folder

Seem to have quite an odd issue. I've got a custom module that essentially is just a class which extends a Template. When I install it using composer; it installs the module into the vendor folder. ...
0
votes
0answers
16 views

Store external API expire time in Custom Module

I use ajax to get the access token from the external API. How can I store the expired time across the site and the ajax only call again when the session expired? test.js /helloworld/index/display is ...
0
votes
0answers
7 views

What is the best way to set up a global “development” module in my development environment for all branches?

I want to be able to use some development specific modules for testing on different branches. Can this be done using modman for M2, if so how? In some situations I could ask the repository manager to ...
1
vote
4answers
5k 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\...
4
votes
4answers
6k views

Custom router is not working in Router.php Magento 2 [SOLVED]

I am trying to redirect the page/action by using a custom router as Router.php, but I am getting 100 router match iterations exception. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1....
0
votes
2answers
807 views

magento 2 add custom fields to checkout form below shipping address form

i have added custom fields (GST Refund ) to my checkout form but they are showing above "shipping new address form" Screenshot below I want to show it below address fields something like below code ...
0
votes
1answer
139 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. ...
9
votes
0answers
1k views

Magento2 : How to hide a Product from a specific Customer Group?

I want to create an extension that will hide a product from a specific customer group.
3
votes
4answers
484 views

Magento 2.3.5 we found conflicting component dependencies

I have tried every possible solution I could find on the internet. From increasing the MEMLIMIT in the php.ini to 2G to removing the required tags in composer.json and so on. This is a Vanilla ...
1
vote
1answer
897 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/...
0
votes
2answers
1k 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 ...
2
votes
1answer
358 views

Magento 2.3 : Remove Constraint from db_schema.xml file

I just try to override db_schema.xml file of a core customer module into my custom module , but there is no success. I need to remove a constraint defined in customer db_schema.xml file, how may I do ...
0
votes
0answers
24 views

Magento 2 href to Add product link from template phtml

I Have made custom admin page view module, now i want add button there click on which should take user to add product URL . i tried below but it is not working <a href="<?PHP echo $...
0
votes
3answers
807 views

How do I open a csv file in the root of my module directory?

I've been writing a rather complicated module as of late. One of the steps I need to do is pre-populate one of the models with all of the data it needs to work right. This data is slowly replaced ...
0
votes
2answers
218 views

Cannot add custom topmenu link with plugin

I want to add custom links to the topmen / a submenu in the topmenu (I need the links for custom filters). To achieve this, I have created a plugin: app/code/Vendor/Module/etc/frontend/di.xml: <...
1
vote
1answer
20 views

Magento 2 - store media in module folder and access it in template

My extension comes with an icon, where can I place it in my module and how can I load it in the modules template? Template: <img src="/media/icons/new-badge.svg" class="new-icon" alt="NEW">
1
vote
1answer
358 views

How to use Python 3.7 Code inside Custom Module for Magetno 2?

I need to create a custom Module for Magento-2 which also has a Python code. so how to integrate python + Magento into Custom Module. I mean to say that Magento 2, Custom Module and Python Code need ...
0
votes
1answer
19 views

I get an error when I indicate the path to the Symlink 1.9

I am using the module Image Optimizer and I need to specify the media folder to optimize the pictures. But I don’t have a media folder for the project, there is only a Symlink to the directory /mnt/...
0
votes
0answers
14 views

Magento 1.9 template overwrites between default theme, custom theme and custom module

I developed a Magento 1.9 custom module and have some strange situations that in my opinion can't be handled properly. My module needs to overwrite some specific templates like /catalog/product/view....
0
votes
0answers
16 views

Error in update (Installing Modules through Admin)

I have been struggling for sometime now getting modules to install using the magento connect feature. Im running aws lightsail magento and i have tried to do a clean install with no themes etc and ...
1
vote
2answers
55 views

Can I disable the Magento Inventory modules?

I have my stock synchronized and managed by SAP, because of it I'm having issues with the inventory quantity vs salable quantity, I won't use multi-source inventory in this project, can I disable ...
1
vote
2answers
3k views

Magento 2 : Override layout.xml File Within Custom Module

Looking at the Magento 2 docs, you can override a base/core layout.xml file - http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-override.html Is it possible, to overide within ...
1
vote
1answer
752 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 ...
0
votes
0answers
33 views

can not install module with artifacts

I am trying to install new module using artifacts and composer. It returns an error at the end > ([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/...
0
votes
2answers
33 views

Override Magento 2 Order Invoice PDF

I can not seem to override the Magento Invoice class. I've created a module, installed it, enabled it. I have the following in my di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
0answers
93 views

Create an info_buyRequest

I like to use a custom function getProductFinalPrice public function getProductFinalPrice($item, $forReindex = false, $storeId = null) { if (!$this->getDataHelper()->isEnabled()) return; ...
0
votes
0answers
22 views

How to make Configuration Product Out of stock to show Price that not $0.00

I used this module as this LINK suggestion but when it out of stock. It shows a price of $0.00 instead of Associates'price. I tried all solutions in searching here. Need Help. I Tried to added this ...
0
votes
0answers
18 views

How to capture authorized payment via admin in custom payment module in Magento 2

I have created a custom payment module and I am able to create a authorize transaction using my payment provider. Now my question is "How to capture this payment from admin panel ?". Because I didn'...
0
votes
0answers
21 views

Move only error message on product view page

can I just move the error message (You cannot use decimal quantity for this product.) under product.info.price?
0
votes
2answers
1k views

How to add phtml file at edit tab of Magento 2 custom module in admin?

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below ...
0
votes
0answers
48 views

composer require problem

I have an error when trying to require artifact module dockergento composer require sm/listingtabs --no-suggest -o --ignore-platform-reqs --prefer-dist Deprecation warning: require.Sm/ListingTabs ...

1 2
3
4 5
60