Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

How to create a local callback to a JS via CDN using RequiredJS?

I've some JS files included in my themes and modules, but sometimes these files are not loaded, becaused of adblock or CDN server down. I checked the RequireJS documentation and I saw that it's ...
1
vote
1answer
222 views

Redirect to login with add cart button for guest user

I'm trying to redirect guest users to the login page when they click on the Add to Cart button and they are not registered. But I can't do it. I am using an Observer with the following event <...
1
vote
1answer
67 views

Magento 2 payment method not showing in checkout

I have used this module in many stores https://marketplace.magento.com/ontap-module-mastercard.html. But for some reason in a new instance of Magento that I installed, it's not showing the payment ...
0
votes
4answers
175 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\...
0
votes
0answers
21 views

Magento 2: custom module not always sending email

I created a custom module to send emails and on it was working good. Today I moved the website on another domain and I noticed that the module sometimes works and sometimes it does not. I would say ...
2
votes
1answer
169 views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...
1
vote
1answer
41 views

Custom Module Admin Grid View “Search by Keyword” Not Working

How to make my search bar work in my custom grid module? I have added the search field by inserting this code <filterSearch name="fulltext"/> inside my <listingToolbar name="listing_top"> ...
0
votes
2answers
122 views

Can i save every order placed with custom payment method to order status complete?

I have integrated Custom payment module. I want to save every order placed with custom payment selected should be set to complete. ( If the selected payment mode is with MYPay ) Order Status -> ...
0
votes
3answers
104 views

Magento 2 How to create simple module that echoes text on checkout success page?

I have tried all examples found on Magento forums but I can't make it work. I need to get Order ID and customer email on checkout success page. Here's my module structure: TV2M/GoogleSurvey/...
0
votes
0answers
37 views

Product Key is not synchronised. Order placement failed

I am using Square-Up Extension After click to place order button error come Product 40982 is not synchronized. Order placement failed. anyone helpe here thanks in advance
0
votes
1answer
737 views

Create a custom graphql module with filter attributes magento 2

I need to get all attribute values of product based on the category id. I had implemented this logic in rest api but I couldn't find clear solution for graphql module. My schema.graphqls file is ...
1
vote
1answer
53 views

Can I change the extension from .HTML to .phtml?

I've got a custom payment module. I've .HTML checkout button page in this path. \app\code\vendorName\moduleName\view\frontend\web\template\payment\vendor.html Can i change .phtml instead of .HTML
0
votes
0answers
12 views

How to create custom country/states Manager menu inside sub menu in cms menu in magento2 through programatically?

I don't know how to implement this task. In CMS menu inside sub menu Country/states Manager I will click the menu it will display beolw screenshot output.https://prnt.sc/pu5z5k. Please anyone help me?...
0
votes
0answers
21 views

Module Upgrade Issue

I have created db schema and also write the code for upgrade schema. Also changed the version in module.xml file. After that i am running this comman "php bin/magento setup:upgrade" and running cache ...
0
votes
1answer
28 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 ...
1
vote
2answers
218 views

Magento 1.9.4.3 Custom Column Filter not working

I have a custom column on my sales order grid showing the ordered items sku's. Done by following the guide here. It worked well in previous versions but no longer does work correctly in 1.9.4.3. When ...
0
votes
0answers
33 views

Magento 1.9.4.3. - Upload multiple files in checkout onepage

I'm looking for a custom module that allows me to: Load more than one logo at checkout Confirm the upload of the logo and send the files to my email when the customer clicks on "confirm order" Save ...
0
votes
1answer
14 views

Magento 2.2.2 custom observer attribute name not valid atomic type

I have a custom observer for admin admin_system_config_changed_section_{{$section_name}} the following are: events.xml: <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www....
0
votes
1answer
76 views

Delete Table record having foreign key constraint Magento 2

in my custom module, I have two tables with 1 to many relationships. Now in my admin UI Grid whenever I delete the record it does not delete it. My question is how i can delete record from both ...
0
votes
1answer
32 views

When use block vs view model?

I'm creating a module using blocks and view models, but when is it better to use view models instead of blocks?
2
votes
1answer
347 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
38 views

Magento 2: issue with update module | PHP Version

I want to update the payment module Dotpay to 1.0.15 - require PHP Version 7.1+ So I run command with PHP 7.1: composer71 require dotpay/magento2-payment:1.0.15 But during update I received issue: ...
1
vote
1answer
22 views

override theme .phtml file into custom module

How can override theme .phtml file override into custom module. Path theme .phtml file is app\design\frontend\ThemeName_CompanyName\Module_Catalog\templates\product\view\pricedifference.phtml and ...
1
vote
2answers
280 views

Magento2.3: How to load custom JS in custom module?

I have created a custom module and now need to add custom js file into that module. I have read many post about this but not having a clear answer. Can anyone please help me with this?
2
votes
1answer
63 views

Set custom discount price to existing cart/quote in controller

I know I asked the question once before, but i got no answer, so I try it again and hope for an answer this time. I also saw some other guys that tried to get an answer for this question, but none of ...
0
votes
0answers
26 views

Magento Multi URI or translations for routers frontName in custom module

I have a custom module which response to a URL like this: https://example.com/uri-in-english It's a multi-language store so I need to set another frontName with an equivalent URL. For example: ...
0
votes
0answers
15 views

Magento2: issue with import product

I have a written individually module for importing products from an .xml file. To this time all work correct. But today when I try import product then I received error: php bin/magento offer:product:...
0
votes
1answer
126 views

Magento 2.3: How can I add PayPal Express Checkout integration on custom page?

I'm new to magento.I'm working on magento 2 custom checkout module due to integration with client ERP system. All of my checkout process are using custom table like custom_order_table and ...
0
votes
0answers
17 views

How can I create custom csv from products

I want to create custom export csv with products information in everyday. Heads: 1. identifier;manufacturer;name;category;product_url;price;net_price;image_url;description;delivery_cost 2. ABC123;...
0
votes
2answers
26 views

How to add custom JS file?

I have created a custom module for Megamenu. I have js file which needs to be added to this module. Some of my queries are: Can I add the js file directly on my module?. If yes, how to do it? Do I ...
0
votes
1answer
264 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
2
votes
0answers
73 views

Magento 2: How to install custom module in app/code folder only using composer.json file?

I'm trying to install my custom module using composer.json file and after run composer update command my custom module installed successfully in magento2. Actually I want to install my custom module ...
0
votes
1answer
49 views

How create A-Z Product List Page in Magento 2?

I need to create a page listing products alphabetically from A to Z and show only the products starting to each letter.
0
votes
0answers
48 views

Magento 1.9.4.3 item not added to basket when button clicked

I have just successfully updated to 1.9.4.3 from 1.9.4.2. However, in one of my custom blocks the add to basket doesn't work, item does not get added to the basket. Analysing the url from $this->...
0
votes
0answers
34 views

Magento2 custom layout unable to access custom module phtml file for products

For my Magento2 website I have created a custom module and layout for products. I have assigned that custom layout for that product from product edit design section. And from that layout, we are ...
0
votes
0answers
8 views

calling array from di.xml into fieldset for admin panel

In Magento 2.3 I am trying to set a field to the table from another module. I injected it via the di.xml. <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"...
0
votes
0answers
49 views

Di.xml error Cannot instantiate interface

I am trying to use the di.xml to pull a table from different module to populate a dropdown in the admin panel. When I write the XML code below it is throwing this error: PHP Fatal error: Uncaught ...
0
votes
0answers
9 views

Mage 2.3: Create a new dropdown field in admin side custom module and its options should come from another custom module's table?

i have two modules and one gets a drop down on the admin side populated by the other values. The problem i am having is the collectionfactory is causing an error. Warning: Declaration of vendor\...
0
votes
2answers
70 views

How to show message box in Magento 2

How to show the message box in Magento 2 (on the home page). message box working the whole site except for the home page.
1
vote
1answer
76 views

I have many spam customer in Magento 1.9 so how can i remove?

Guy's I have a Magento 1.9 site and some days ago I check my admin side so found lot's of spam customer so I can add google Recaptcha at that time. But it already has many customers are in site so ...
0
votes
0answers
19 views

Own module in bitbucket - different branch for 2.2.x and 2.3.x. How to install with composer?

i have own module in bitbucket (written at the time when was magento 2.2.x) which is overwriting magento-catalog ImageBuilder.php file. Now after testing this with 2.3.x i found, that it isnt working....
1
vote
1answer
39 views

Module layout file not being used

I have a simple module Alpine_AlpineCustom but it seems that my layout.xml file is not being applied properly and I just can't see why. I can see via Commercebug that the layout file ...
1
vote
1answer
86 views

Magento 2: how to add css ONLY to custom module

I created a custom module that overrides the addtocart.phtml file. In that module, I also created a css file. Here is what I did: Here is my layout - catalog_product_view.xml: <?xml version="1.0"...
0
votes
1answer
338 views

Magento 2 - 401 controller in magento admin

I currently have a module that adds a field to the admin cms page. I've written a controller and on input change I want to ajax this controller. This is the simple controller I added to start testing:...
0
votes
0answers
26 views

Block referencing not working with specific theme

I've been trying to add more blocks to my theme's existing header block but I just can't get it to work. Below is code from my layout file in a module that I have created. As you can see, it is very ...
0
votes
3answers
418 views

How to get product collection in controller in Magento2

I am creating a new module in magento2 and in controller file, I try to get product collection in controller index.php file so how can I get product collection in Magento 2. so give me suggestion to ...
0
votes
1answer
178 views

Magento 2 with Gatsby and GraphQl issue

I am trying to integrate the magento2.3.2 with gatsby js and Graphql. For reference please check this link https://www.gatsbyjs.org/packages/gatsby-source-magento2/ I have integrated everything but I ...
0
votes
0answers
22 views

Magento 1.9 Show Adminhtml Billing Address Form in Custom Module Admin form

I am Creating a Module That requires a form in Admin Panel. The form i want is exactly like the billing address form in adminpanel->create new order. Is there any that i can call the Billing Address ...
1
vote
2answers
237 views

How to override newsletter.phtml (my account option) in Magento 2

I would like to edit the "General Subscription" text in my custom theme present in the My Account page under the Newsletter Subscription menu. I've already located the page which is: app/design/...
0
votes
1answer
177 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....

1
3 4
5
6 7
60