Skip to main content

All Questions

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

How create Custom Pdf in magento 2 Like invoice , Shipment [duplicate]

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
HaFiz Umer's user avatar
  • 1,690
3 votes
0 answers
105 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
Daniel_12's user avatar
  • 680
1 vote
1 answer
169 views

Instagram pictures on homepage [closed]

I have to create a custom module (or anything else what let me do what i want to), which will display few latest pictures from my instagram on homepage. I do not know how to use Instagram api to do ...
SebastianT's user avatar
1 vote
1 answer
292 views

Custom modules disappeared after 2.2.9 upgrade

All custom modules have disappeared after upgrade to 2.2.9 from 2.1.9. When I run bin/magento setup:upgrade, last message is "Nothing to import." but the custom modules are not enabled and not added ...
Mathieu's user avatar
  • 63
1 vote
2 answers
227 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\...
HaFiz Umer's user avatar
  • 1,690
1 vote
0 answers
297 views

Shipping method restrictions by category programmatically magento 2

I want to add Shipping method restrictions by specific category in custom shipping method
Sagar Patel's user avatar
2 votes
1 answer
370 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.
MCaneda's user avatar
  • 83
1 vote
2 answers
993 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 ...
spencerready's user avatar
3 votes
1 answer
213 views

How can i add a custom javascript module to custom module?

Hi this code is working perfect without magento. <script src="flipbook.js"></script> <script src="jquery.js"></script> <script> $('#side').FlipBook({ pdf: '...
Ibrahim Aldar's user avatar
2 votes
0 answers
212 views

Update Store Summary By Checkout Address Country Change

So Basically I want to update my checkout cart summary when user select country from shipping address ,cart price and currency change according to the country he selected in shipping address.
Xain Ijaz's user avatar
  • 105
0 votes
2 answers
2k views

Integrate js with button on uiComponent xml

I have the following custom form in my admin html and I have tried to insert a javascript function on my custom button click but the page being in a infinity loading loop. view/adminhtml/...
Murilo Pereira's user avatar
1 vote
1 answer
777 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
Murilo Pereira's user avatar
0 votes
1 answer
1k views

How to create custom table programmatically(using code) without using installschema.php magento 2?

Actually I have created a custom grid in back-end for creating custom table there I am providing some fields like- table name, Assigned to Module Name, Number of Input text boxes. Now I want to ...
Hitesh Balpande's user avatar
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: $....
User 69's user avatar
  • 145
1 vote
1 answer
59 views

Magento2: How to get simple products Assosiate to configurable products [duplicate]

I want to get simple products Associate to configurable products in custom module using factory method. (not using object manager)
Hafiz Arslan's user avatar
3 votes
1 answer
223 views

Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code. The original post and code can be seen here I am able to create an ...
Anthony's user avatar
  • 431
1 vote
2 answers
52 views

Getting Custom Collection without some fields

It is magento 1.9.4.0 and i need a array with some nodes. When i get the models collection with: Mage::getModel('nstok/nstok') ->getCollection() ...
bahadirdogru's user avatar
0 votes
1 answer
535 views

Adminhtml form custom renderer - blank page - Magento 1.9

Added custom element to my adminhtml form. It works perfectly fine on my developement site but it won't on production .... the only difference was on dev i made it as a module while on production I ...
Rob D. A.'s user avatar
  • 867
0 votes
0 answers
37 views

Magento 1.9 admin menu is going to 404!

I am using custom module to getting tax report. It is working fine on demo site. Below is the etc/config.xml: <?xml version="1.0" ?> <config> <modules> <DS_News> ...
Vinod Kumar's user avatar
  • 2,065
1 vote
1 answer
289 views

How to Remove/Hide unwanted address fields

I've looked everywhere for an answer to my question. I'm pretty new to Magento. For the shipping-address page of my site, I need to have all of the fields removed. My plan is to have them removed ...
Parkour1309's user avatar
0 votes
0 answers
29 views

Mail from a custom Module after saving data

I am writing a new module (quote request, when user go to the product details page, they can request a quote for the product) I created a form to display in the product details page. When user submit ...
GeorgeM's user avatar
  • 109
2 votes
1 answer
2k views

Magento 2 Create observer on customer create, with custom module

I want to create an observer in my custom module which called when new customer create and delete. In my custom module i want to add custom data when customer created and delete custom data when ...
Utsav Gupta's user avatar
  • 1,243
0 votes
2 answers
591 views

Magento 2 make new method available in list.phtml

If I need to create a method under Magento\Catalog\Test\Block\Product\ListProduct Class This class has methods such as: getProductItem,getProductNames,getProductsCount,getSortByValues I Would like ...
Juliano Vargas's user avatar
4 votes
6 answers
811 views

Getting Items in Cart

I've tried many methods over the web including here too but still I can't seem to be able to get items currently in cart, tried checkout sessions cart model, cart helper nothing works, It sometimes ...
Mostafa Mahran's user avatar
0 votes
1 answer
44 views

Custom Module Layout Problem

I've created a custom Magento 2 Module and I am facing a problem of URL returning blank page If I am calling the block from template file using layout Magento Version : 2.2.4 URL Trying to visit : ...
Mostafa Mahran's user avatar
0 votes
2 answers
1k views

low stock notification to admin without any extension in magento 1.9

I want to create the custom module for email sent to admin for notifying when the product is low qty in magento 1.9.x.
vivek tiwari's user avatar
2 votes
2 answers
207 views

want to add custom module in magento 2 admin panel

Created folders and added code for the custom module but nothing gonna work in my way please help, nothing shown up in the admin panel. Here's my code and folders that I created: public_html/testing2/...
jhon jhon doe's user avatar
1 vote
1 answer
448 views

I want to run an Event Observer once after my custom module is installed

Is there a way to run a function (to call an api) once after a module is installed? It could be during admin page load or in the install script. But i wish to run only once. Thanks
subhas's user avatar
  • 53
2 votes
1 answer
3k views

Magento 2 | Add Admin Configuration Button Action

I need to call a method from an admin configuration button. This is my simple custom module. The button appear on admin but notthing appen on click. No log is write. I cannot understand what I am ...
Altravista's user avatar
0 votes
1 answer
734 views

Submit form to same page in custom module

I'm looking to submit my form to the same page, but it just redirects to the admin dashboard. Here's my .phtml file: <?php $action = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ===...
Jake Punton's user avatar
0 votes
2 answers
3k 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 ...
Pawankumar's user avatar
3 votes
1 answer
2k views

Best way to send email within custom module

I have created a custom form that will post to a controller, where it will then send an email via the following snippet in my post action: $to = "[email protected]"; $subject = "Vish"; $body = "<...
Vaishal Patel's user avatar
2 votes
1 answer
189 views

How to to add external nusoap library in a custom extension?

I have to include external NUSOAP library in my custom made extension. What steps do I have to take as PHP's require_once() or include() doesn't work in Magento.
Subhan Sunny's user avatar
3 votes
2 answers
4k views

Insert in custom table - magento 1.9

(Sorry if my english is bad, but is not my language) My Magento version is 1.9.3.8 I have a custom module that get data when a costumer make an order. I have no problems to get all the information ...
Exe's user avatar
  • 145
2 votes
3 answers
4k views

Create custom route in Custom module magento 2

How to create a custom route in Magento 2 http://127.0.0.1/magento8/trails/post/view/id/13 module:- trails folder :-post controller :- view argument :-id/13 I want to http://127.0.0.1/magento8/...
Nitesh Kumar  Singh's user avatar
0 votes
1 answer
39 views

Error registering a module to create two field in the registration page

I tried to create a module to add two fields to the registration page, namely 'nickname' and 'recomendation' and it gives me an error. Vendor/Module/registration.php <?php \Magento\Framework\...
Nuno Sousa's user avatar
1 vote
1 answer
977 views

Filter collection with attribute from custom module

I have a custom module which I load data with following code inside list.phtml: foreach ($_productCollection as $_product){ $_id = $_product->getId(); $event = Mage::getModel('aw_eventbooking/...
Gabriel G's user avatar
1 vote
3 answers
32 views

I have created a new custom module and it is working fine from back end, but in front data is not displaying

<?php $model = Mage::getModel('custom_homebanner/request')->getCollection() ?> <div class="owl-carousel" id="owl-demo-intro" > <div class="item"> <h2 class="...
YKB's user avatar
  • 91
1 vote
2 answers
928 views

magento 2 - custom router throws Front controller reached 100 router match iterations error

I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example. The problem is the route (MY-SITE/...
Korbin's user avatar
  • 298
0 votes
2 answers
2k views

Observer for Admin while creating an order

Is it possible to have an observer while making an order in the admin panel? I'm trying to change the 'purchased from' depending on which customer group the customer is in. So if a customer is in ...
user2963379's user avatar
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 ...
inrsaurabh's user avatar
  • 1,676
1 vote
1 answer
84 views

Magento 2 - Creating admin page error 404

I have create an admin page but i get 404 error. What i'm wrong? etc/adminhtml/routes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Altravista's user avatar
0 votes
1 answer
2k views

Magento 2 - How to call custom (Self Created) module in home page?

I have created a custom module with view using (Block, Layouts and Templates), its working fine with the url(http://hostname/modulename/index/test) but need to call it in home page. I mean when home ...
Md Amanullah's user avatar
0 votes
1 answer
234 views

Payment Module not showing in Checkout - Magento 1

My Custom Payment no showing at the checkout. Help, please! Life or death issue. My code: app\code\local\FITeND\DuplicatePayment\Block\Form\DuplicatePayment.php class ...
JhAndrade's user avatar
0 votes
2 answers
4k views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/view/...
Konstantin Patroev's user avatar
1 vote
1 answer
64 views

Magento module Custom Magento Reports blank page? [closed]

I try to install magento (in version 1.9.3.7) module from GitHub Custom Magento reports using sql. I have install module via modman from this guide (install via modman): How to install module in ...
DaniKR's user avatar
  • 115
0 votes
1 answer
151 views

Magento 2 Custom Cli comand Area not set

I am geting this error comand "[Magento\Framework\Exception\LocalizedException] Area code is not set " this is my code which I want to add a product. Tip if a comment " $product->save();" I am not ...
user3544190's user avatar
0 votes
1 answer
44 views

How to create a module in magento 1.9

I am new to Magento and trying to create a module in Magento 1.9 by referring to perifay. After copying the code from perifay for controller output is not showing in the browser. I don't know what is ...
user63128's user avatar
1 vote
0 answers
77 views

Call a custom phtml file to particular section Magento ver 1.6 to 1.9

I created a custom module (For Magento ver 1.6 to ver 1.9 ) in which i show custom phtml file and insert custom js and css as well, I included it to two pages only with particular section i.e footer ...
inrsaurabh's user avatar
  • 1,676
3 votes
1 answer
2k views

How to add default header and footer to a custom mail on magento 2.2

I have created a module where I send a custom mail. For this, I have a custom email template. Now what I want to do is to include the default header and footer that appears in all my Magento emails, ...
Alin Lupoiu's user avatar
  • 2,682