Questions tagged [module]

Questions about developing custom modules

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

Add code to <head> using a custom module & theme

I'm working on a custom theme for Magento. I'm trying to create a module for the theme that adds some code to the <head> but i'm finding it difficult to get it working. I've created my module ...
1
vote
2answers
3k views

How to get customer session id in magento 2?

I want to get the session-trail in a custom module. Without the session-related code, it is working fine, but it breaks the module when I add it namespace Scaledesk\Trails\Block; use \Magento\...
0
votes
1answer
841 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: $....
0
votes
1answer
1k views

Magento 2 - Prevent form submit on page reload when Product add from sample script to Magento Shopping Cart

Below sample PHP script will list simple/configurable product with add to cart button. When user clicks on submit button, it will redirect to Magento shopping cart page and selected product will be ...
0
votes
1answer
17 views

magento override billing and shipping last name

I dont want to show last name from billing and shipping name everywhere like invoice , sales order , how can i do same with out changing from database please help me with same . i am new to magento ...
1
vote
1answer
19 views

Is it possible to load data from the server using a HTTP POST request within a Magento Module js file?

Is it possible to load data from the server using an HTTP POST request within a Magento Module js file? File located in app/code/MyVendor/myCustomModule/view/frontend/web/js/mycustom.js Example ...
0
votes
0answers
15 views
0
votes
0answers
14 views

How to hide bundle product price in magento 2.3.5

I want to hide bundle product price in magento 2.3.5. I want to hide price if product is bundle product. If anyone can have idea then please share it. Thank you in advance.
0
votes
1answer
36 views

Custom Tab in My account Page goes to 404 in Magneto 2

It added the Buttton but when i click on it it goes to 404 error. My Folder Structure be Like And my code is : index.php <?php namespace Demo\Mod\Controller\Index; use Magento\Framework\View\...
2
votes
0answers
10 views

Add module to Magento Marketplace - where can I find their official tester utility

I intend to add my first module to Magento marketplace. While reading the documents they say that in the first step the module will go into a first automatic test phase using their utility and they ...
2
votes
0answers
13 views

I am having this kind of error while doing mass delete

I am facing this error while doing mass delete action in magento 2.3.5. {"Invalid method delete","1":"#1} Please anyone have idea please Share with me. Thank you In Advance.
0
votes
1answer
29 views

How to add custom payment module development logs?

I am attempting to build a custom payment module but as far as I got I get the error message sh: -t not found when checking out a test order I saw this question but the link in the answer is broken, I ...
8
votes
3answers
7k views

Is it safe to disable Temando_Shipping & Dotdigitalgroup_Email?

There's a couple of Modules that are packaged with Magento Open Source these days that promote Magento Partners. I know that disabling Magento_Signifyd can be done safely without any collateral. ...
0
votes
2answers
976 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/...
0
votes
5answers
1k views

How to limit the results from a Left Join in Magento?

I have a collection that I need to join with another collection... the problem is the table contains 125k rows and so it times out. //Fields $this->addFieldToSelect('id'); $...
0
votes
0answers
24 views

I am facing this error while display data in grid in Magento 2.3.5 [closed]

This error i am facing in magento 2.3.5. Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\M2\vendor\magento\framework\View\Element\UiComponent\DataProvider\DataProvider.php on line ...
1
vote
1answer
17 views

I am facing this error while fetching data to admin grid in Magento

I am facing this error while fetching data from custom table in Magento 2.3.5 the error is: Argument 1 passed to Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider::...
1
vote
1answer
7k 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\...
6
votes
1answer
846 views

Watermark Category Images with Brand Logo

I'd like to add a watermark to each small image (but only in the category listing page) that is based on the manufacturer attribute. I don't want to alter the small image for that product on other ...
0
votes
1answer
935 views

How to change price for configurable products in Product Listing using drop down options in Magento 2

I have created custom module in magento2, and I want to show configurable products options in the drop-down for the configurable product. I have done using custom code, but problem is that when I ...
1
vote
1answer
1k 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 do this for ...
2
votes
1answer
554 views

How to Create a excel file in custom module?

I want to create an excel format file for download in Magento 2 <item name="buttons" xsi:type="array"> <item name="add" xsi:type="array"> <item name="name" xsi:type=...
1
vote
2answers
1k views

Magento 2.1.1: How can we add Payment Information (custom payment) to an order?

I have a custom payment gateway that pass additional payment information back upon the return to Magento store that I would like to store on the associated order, so that it can be displayed on the ...
2
votes
0answers
40 views

Sliding Cart extension for Magento 2 enhances mini cart to the next level with responsive design and conversion oriented features

There is already a full-fledged free extension available on Magento's marketplace and Github Magento: https://marketplace.magento.com/ambab-module-slidingcart.html Github: https://github.com/ambab-...
2
votes
1answer
3k views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...
0
votes
0answers
11 views

How to Create Custom RMA form on frontend of Magento 2?

I want to create a custom form in frontend and using this form customer for Fields I have some fields like below. Customer First Name* Customer Last Name* Company Mobile No.* Email (Should be a ...
0
votes
2answers
22 views

Can't get rid of class from deleted module

I created a module, which I later deleted. The homepage of my site loads, and my categories page loads, but my products pages don't load. I get an error saying 1 exception(s): Exception #0 (...
1
vote
3answers
906 views

Resolved - Admin Grid Redirects to Front End Page Instead of Backend

I took steps according to this article but the newly created link displays the "text block" on the front-end instead of back-end. http://alanstorm.com/magento_admin_controllers/ Can anyone help me ...
1
vote
1answer
29 views

Magento 2.3.5: How to hide Shipping Method

I want to do this thing if customer orders over $50 then give free shipping method will be shown and if customer orders below $15 flat order will be shown and free shipping will be hide.
0
votes
0answers
22 views

How to validate and Submit Login Form Using Ajax

i want to create login form using ajax with validation in magento 2.3.5. so can anyone have idea about it then please share with me. Thank you in advance.
0
votes
0answers
24 views

How to display login on hover in magento 2

In this i want to create a custom module in that one button is in header for login and on hover of that button i want to display login form with ajax.
0
votes
0answers
7 views

Custom module phtml file for custom table data list and view like product in magento 1.9

I want to create a module example: manufacturer. I want to give a link on the site when a user click on that a url will open like manufcaturer.php and it will show all the list of manufacturer later ...
0
votes
3answers
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/...
0
votes
0answers
10 views

Composer to move Custom PHP SDKS to lib from folder during Installation

I am working on creating a module and wanted to submit it to the marketplace. My module interacts with various PHP SDKs, so for development, I have added them into the lib folder, not in the Module, ...
0
votes
1answer
796 views

Exporting Full Custom Grid Data

Trying to export the full grid data of a custom module. The function itself works but there's a limit of 20 (well a limit of how many rows are visible on the page). I need to export the full data from ...
1
vote
0answers
21 views

Magento 2 : place order after a click on place order button in custom payment module

I'm a beginner on Magento. I try to create a custom payment module. All work fine but when I click on the "place order" button on the checkout page, the order is not add to the orders list ...
10
votes
5answers
6k views

Magento 2 does not allow linking Modules using symlinks

I've added a local development module (separate git repo) to Magento 2 using symbolic links and it was working fine until I hit the PHTML templates. After heavy debugging I found out that the Magento ...
0
votes
0answers
13 views

Plugin to fire on customer delete

I am trying to write a plugin (interceptor) to fire when a customer is being deleted in Magento 2. Previously I have written a plugin to fire when a new customer is saved. My plugin for saving makes ...
0
votes
0answers
7 views

Magento 2 : Redirect customer to login page on email change

i want to redirect the customer to the login page when email id is changed from edit form ,i did below code Issues : 1: I am not getting redirected to login page, i can see message **Please Login now*...
0
votes
0answers
6 views

How to post Order Information to custom Shipping API after a complete Order in checkout using Custom Module

I developed a custom shipping extension for Magento 2.3.5 which works fine but I need to be able to post order details to the API to complete the process. How can I achieve this? I am relatively new ...
1
vote
2answers
21 views

Error : Incompatible argument type

I am facing an error while running command di:compile This is my block file <?php namespace Company\Module\Block; class Booking extends \Magento\Framework\View\Element\Template { /** * ...
0
votes
3answers
697 views

Install via cli but exclude some core modules

I'm installing Magento 2.2 via command line using php bin/magento setup:install --backend-frontname="my-admin-value" --db-host=my.db.host --db-name=dbname --db-user=dbuser --db-password=dbpass --...
1
vote
0answers
23 views

Type Error occurred when creating object, attempting to use custom model from custom module

Yes I know, another "Type Error occurred when creating object" post... In addition, I'm probably going about this in a way that will make the seasoned M2 dev need a moment before reading ...
2
votes
1answer
103 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 ...
0
votes
2answers
23 views

I want to update order status using magento's rest api

I want to use Magento Api for Updating Status of order in Magento 2.3.5 so anyone can guide me from scratch how can i use api. I also want to know in Magento how many default api is there and how to ...
0
votes
1answer
796 views

Error in php Module

I have some problem, on my magento,please help~ 2.2.0 php71 centos7 EasyApache 4 PHPfpm suphp MYSQL5.6.38 An error has happened during application run. See exception log for details. [07-Dec-2017 ...
0
votes
2answers
32 views

Get system config data in custom module

I've seen a couple of things about this but I can't seem to get the value I have <field id="template" translate="label" type="select" sortOrder="3" ...
4
votes
3answers
3k views

Create magento 2 Patch

I am working on Module that require quick fix. As I assume I can fix this by creating Magento 2 Patch way. I never created a Patch file before, Can anyone help me How can I create Patch file for ...
0
votes
2answers
36 views

How to Change Order Status using Api in magento 2.3.5

I want to develop new module for changing order status using Api in magento 2.3.5 so can anyone have idea then please share with me. I want to create order status and change it using Api.
0
votes
1answer
2k views

Magento 2: how to get the product attribute option label instead of option value in admin grid in custom module?

I want to show product attribute option label instead of option value in admin grid in custom module? Can any one help me in this? In magento 1 I get this suggestion and same I want in magento 2. ...

1
2 3 4 5
60