Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
1
vote
2answers
43 views

luma-theme .phtml file override in Custom Module

i want to override this file magento_dir/vendor/magento/module-theme/view/frontend/templates/html/collapsible.phtml And do not want to make custom theme like app\design\frontend\Magento_Theme\...
0
votes
0answers
14 views

Magento 2.3 Cache / Clear Fields

In my checkout steps I have created a few custom fields, and after I fill them out complete the checkout process and am back in store and put a new item in cart and proceed to check out, the same ...
3
votes
1answer
45 views

How to send email by custom form

I created custom form module, if customer submit the form i need to get all values by email. My module files are Customform\ReturnRequest\Block\Index.php <?php namespace Customform\...
0
votes
1answer
123 views

How to remove GraphQL from Magento 2.3?

I'm not planning to use GraphQL in my Magento 2.3 and I would like to remove it at all for now, not just disable it. How could I do it?
0
votes
1answer
26 views

Magento 2 - First Module - AJAX

I'm creating my first module which has been going well, I've managed to create the controller, block and route and can access the page. I'm now trying to perform an ajax query and return some product ...
4
votes
1answer
33 views

Is it good practice to get product collections in helper function and calling in phtml file custom module Magento 2

Hi all, i wanted to know either is it good practice to get product collections in helper function and calling that function in phtml file within custom module Magento 2 Because in my case ...
0
votes
0answers
33 views

Shipping method restrictions by category programmatically magento 2

I want to add Shipping method restrictions by specific category in custom shipping method
1
vote
1answer
43 views

How to create a new price type?

I am now struggling to create a new price type on Magento 2.2.7. Below are what I have tried so far. I have created a module Foo_Bar. And then, first of all, inject the new type into the price pool: ...
4
votes
0answers
21 views

create invoice module same as Admin side in magneto 2 [closed]

create invoice module same as Admin side in magento 2. is it possible? Thanks in advance.
1
vote
1answer
71 views

Magento 2: How to completely hide price from the store

I want to completely hide the price from the store. Be it in the catalog, product, minicart or cart. I need to do this through a custom module. Any help is appreciated. Thanks!
0
votes
1answer
98 views

Magento 2 Get data to admin UI Form without key and collection

Is there a way to get data from a DataProvider to my UI Form component, without having a collection or a key? My DataProvider currently only has a "getData" function and the form is rendered, but I ...
0
votes
0answers
29 views

Admin tab refresh Issue

I have created a custom tab in magento2 Admin in my custom module. On click of this tab (It is the 4th tab) in the section area I have added a grid & a form. My issue is when I search any result ...
0
votes
1answer
39 views

Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284

I have this error when I add special characters to menu or categories like "&" It's from module Ves Megamenu. Warning: Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/...
0
votes
3answers
80 views

Magento 2.3 Installation error at 66%

Magento 2 Installation error at 66% Hi everybody ! I am having an issue installing Magento 2. I followed every step and everything went fine until installation. The installation stops at 66% ...
0
votes
0answers
13 views

Replace add to cart button [duplicate]

Hello I find module to replace text in button add to card and this is no working. Please help this is code Magenticians/Mymodule/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"...
1
vote
0answers
35 views

Where is this text coming from at the end of my checkout URL?

I'm adding a "buy now" button to my site. I'm using the code from here. When I click the button, my site tries to go to example.com/checkout/#93=4, which then results in it going to example.com/...
1
vote
1answer
29 views

How to set varchar on installschemas

I would like to add a new column inside the magento2 database. Write now i add a \Magento\Framework\DB\Ddl\Table::TYPE_TEXT as the column type. here is my code if(!$installer->getConnection()-&...
0
votes
1answer
50 views

How can i add block to existing layout in catalog_category_view.xml?

I want change layout of catalaog_category_view.xml but i can't. I override block category.products and it's work but how can i add my own block to existing category.products block? Because i want add ...
1
vote
0answers
39 views

Why would you add the modules array in app/etc/config.php to source control?

As of Magento 2.2 it's recommended to add config.php to your source control to facilitate pipeline deployment. I have some questions and issues with this. I'm hoping somebody can share their ...
2
votes
1answer
32 views

Why module go to vendor directory if install using composer Magento2?

Can anyone please tell me the reason why module go to Vendor directory when install using composer? Please refer me a link for this reason. In my custom extension, I am using this code in my ...
2
votes
1answer
31 views

Blank Magento Page without error

After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.
0
votes
2answers
92 views

Upgrade Magento vendor module(dependency|library) to a newer version

Magento uses multiple "external" dependencies|libraries for example one of them is dotmailer-magento2-extension. This specific module is at version 3.1.1 as it can be seen here vendor/dotmailer/...
1
vote
2answers
33 views

Adding Magento_Catalog to Custom Module

I wanted to override the content of addtocart.phtml which is located in vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml Now I want to modify the content of this ...
1
vote
1answer
58 views

Magento 2 Uncaught TypeError: Argument 1 […] \DataSetup::__construct() […] must be an instance […]

I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment after adding some new modules, compiling and ...
4
votes
1answer
50 views

Magento 2: Insert and select operation (without model) in custom module

Please give me any example or link for insert and select process without using model in custom module of Magento 2.
0
votes
0answers
33 views

Magento 2 - Product attribute grid checkbox yes/no/any filter not working custom module?

$this->addColumn( 'main_table.attribute_id', [ 'header_css_class' => 'a-center', 'type' => 'checkbox', ...
0
votes
1answer
32 views

What's the logic of inherited constructor order parameters

I have this module class namespace VendorName\Module\Block\Magento\Framework\Pricing; use Magento\Framework\Pricing\Amount\AmountInterface; use Magento\Framework\Pricing\Price\PriceInterface; use ...
0
votes
1answer
20 views

Package a custom extension

Can anybody help me to provide the complete process of making my custom module install able and update able using composer. I am using my custom bit bucket repository to upload my code base of ...
0
votes
0answers
32 views

Magento2 - add dropdown city everywhere in store

Magento2 - I want to show city in dropdown for everwhere in store. I was tried with https://github.com/EaDesgin/Magento2-City-Dropdown but its not working properly.
0
votes
0answers
11 views

Mass Action assigned to a custom button in Sales Order page Magento 1.9

I am working on a custom module. One part of that module creates a button above the Sales Order Grid. The current code for that button is; public function addNewButton($observer) { $...
2
votes
1answer
51 views

How to Insert record in database-table through custom module in magento2

I have create a custom module and database-table using following this steps and i understand the table displaying in customer_side. Now I Need to Know the Insert operation in customer_side please ...
1
vote
1answer
39 views

Get confirmation email from ProductAlert module

Currently I have extended Magento_ProductAlert module so that user can subscribe to out of stock product by entering his email address. So far everything works - email gets saved in database and email ...
0
votes
2answers
28 views

Magento 2 Enable/Disable Module [duplicate]

I installed a new extension on my site, but couldn't enable it. ran command php bin/magento module:status I can see it was enabled, but it's disabled on module manager. Thanks
0
votes
0answers
41 views

Overwrite Proceed to Checkout button url

I am building a custom module and I need to show cart items in a custom page when user click the “Proceed to Checkout” button from mini cart or from cart page. How to change the “Proceed to Checkout” ...
1
vote
1answer
30 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
1
vote
0answers
31 views

Magento user permission unchecked on save custom module

I've developed a small custom module. It worked as expected but I can't save user permission: I can see the module in the admin panel and in the Role Resource Tab (System->Permissions->Roles), but ...
1
vote
2answers
95 views

How to pass store code to custom URL in magento 2

I would like to add store code to a custom URL in Magento 2.3.0 Actually, I want to pass store code to a custom URL in my custom module based on relevant store order. Let's take an example: public ...
2
votes
2answers
30 views

Magento2 : I am getting this error when i upload two custom module and css and js file

I am getting this error on my live site as production mode and I uploaded only two custom module and js and css and two overwrite file in our theme.Below share error as warning showing I apply all ...
0
votes
1answer
235 views

Magento 2: Header and footer not loading in custom module's CMS layout

I am developing a custom theme which inherits from Magento/blank. I am attempting to develop a CMS homepage layout within a custom module. I have created the module and successfully applied the ...
1
vote
2answers
20 views

Executing a module when the user opens the page

I have a module that records the user's IP on the debug log when he visits the page "example.com/iplog/index/test". My module is located in the app/code/IpLog folder and contains the modules.xml, ...
1
vote
3answers
96 views

Magento 2: How to override theme LESS styles within custom module

I am running Magento 2.3 on Ubuntu 18.04 server with Apache 2.4, MariaDB and PHP 7.2. Magento is running in developer mode. I have created a custom theme which inherits from the Magento/blank theme. ...
1
vote
1answer
25 views

What does module:disable actually do?

Background: I seem to be having trouble disabling modules on my M2 2.3.1 store. Example: I had installed the CommerceBug development module but wanted to test my site without it so I ran module:...
1
vote
1answer
40 views

Magento 2 error on an overriden constructor

I have 2 custom modules installed, when opening a front end of a module1, i get error related to module2, this is the error Argument 4 passed to VendorName\Module2\Block\Magento\Framework\Pricing\...
4
votes
1answer
46 views

After uninstalling modules using Composer and removing all trace of them, Magento is still looking for them via ModuleList\Loader->getModuleConfigs()

I'm trying to remove some modules (all Amasty modules) from my site for debugging purposes, but no matter what I do, Magento keeps looking for the Amasty_Base module and I can't get rid of it. The ...
0
votes
1answer
87 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
1
vote
0answers
44 views

How to share wishlist email from a custom module in Magento2.2.5?

I have created a custom module for wishlist, and I need to share email from wishlist which include multiple products in Magento2.2.5? My Code: <?php namespace Emipro\GuestWishlist\Controller\...
1
vote
2answers
195 views

Unable to override Magento\Catalog\Model\Product\Url, Type Error occurred when creating object

I'm trying to override the Magento\Catalog\Model\Product\Url class so that I can modify the getURL() function, but I'm getting the following error: Error filtering template: Type Error occurred when ...
1
vote
2answers
70 views

How to override login.phtml in a custom module in magento 2 [duplicate]

How to override customer login.phtml file in custom module, whenever i try it not doing what I expected
0
votes
0answers
44 views

magento 1.9 Custom install setup

I'm not able to create a custom table with my module, I followed many tutos but seems like my install is never called. My module work fine except for this part. I don't understand what's wrong... In ...
0
votes
2answers
226 views

Modules disable after upgrade 2.3.1

Good afternoon, I recently upgraded from version 2.3.0 to 2.3.1 through composer It happens that some modules were disabled during the upgrade, I would like to know the reason and what I do with them (...