All Questions
248 questions
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/...
3
votes
3
answers
8k
views
Magento 2: store selector for custom module in admin form
Stuck in a new issue regarding adding store selector for my custom module in admin form -
I need to add a store selector and to add the values of a store in a different table as it is working with ...
3
votes
1
answer
5k
views
Checkout page phone number validation
I am trying to give US format phone number validation in onepage checkout page
This is the layout checkout_index_index.xml that i created in my custom module. I know how to make i work by editing the ...
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/...
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 ...
1
vote
3
answers
2k
views
Magento - Add 'Customer Account Navigation' to custom module page
I have a custom module in my magento store. It is currently using the default 2 column layout with magento's left nav as the lefthand sidebar.
How can i go about having the customer account ...
0
votes
1
answer
84
views
create custom module, get existing module configuration
I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key.
how can I ...
4
votes
1
answer
10k
views
Magento 2: Check condition on Click of "Proceed to Checkout"
May be I need to create Event Observer. I would like to check Product's Type Condition & Display Message Accordingly on Shopping Cart Page.
<event name="...
4
votes
1
answer
1k
views
Magento 2: When registration.php is called?
When we built/install new module it should have registration.php as per Magento Standard.
When we run php bin/magento setup:upgrade. Module will be installed.
How actually this command check for my ...
0
votes
1
answer
466
views
Create custom FAQ module in magento 2.3.2
I want to create custom FAQ module in magento 2.3.2. with no customer involvement.
in backend admin will add questions and ans. and in frontend, it should display on product details page next to ...
3
votes
3
answers
6k
views
How to Filter Products Based on Attribute Value "Yes"
I have an attribute for a custom module which defines if a user can comment on the products or not.
Now I need to filter products depending on the attribute value and only display those with attribute ...
0
votes
3
answers
617
views
Custom Page in Customer My Account Page - Custom Module
I Created a custom module. My requirement is to add new link after all links in Customer My Account. When click on that new link a new page should be shown.
My Code is
Step 1. Created new file in ...
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.
1
vote
0
answers
868
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 ...
3
votes
2
answers
9k
views
Magento 2 - Element with same id already exists
I'm trying to set the Magento 2 pager on my custom module, my custom module get the product collection and makes some special filters on the collection. I'm able to filter my products, but when I try ...
0
votes
2
answers
750
views
How to get the template Id in controller? template Id is returning NULL for the custom template in the custom module
Index.php
<?php
namespace Eaglerocket\Customquote\Controller\Index;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\...
0
votes
2
answers
171
views
Need to show the value of the product in the value attribute of input element but it is not giving any value. Where is this get product function?
<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Add to Cart'); ?>
<?php $buttonTitl = __('Get Quote'); ?>
<?php if ($_product->isSaleable()) :?>
<...
2
votes
2
answers
208
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/...
1
vote
0
answers
597
views
Add message on Checkout Page in Magento 2
Already add my custom module to Disable Payment method on the Checkout Page based on Product Attribute in Magento 2
Now I want to show the message to customer on Checkout Page if COD is Inactive by ...
0
votes
3
answers
4k
views
Zend_Json_Exception Decoding failed: Syntax error some time in Magento (All versions)
1 exception(s):
Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error
Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error#0 /var/www/html/magento2/vendor/magento/...
0
votes
1
answer
407
views
Notice: Undefined property: Eaglerocket\Customquote\Controller\Index\Index\Interceptor::$storeManager in Index.php on line 138
<?php
/**
*
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Eaglerocket\Customquote\Controller\Index;
use Magento\Framework\App\Action\...
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 ...
3
votes
2
answers
4k
views
How to add files for custom module under system configuration? [duplicate]
I have my own module in System->Configuration and want to add js and css files for it. Now it is so:
<layout version="0.1.0">
<default>
<reference name="head">
...
0
votes
2
answers
119
views
custom image in shopping cart
I would like to customize the shopping cart by adding pictures right between the headline "Shopping Cart" and below the Item table but haven't figured out yet where the xml files are to overwrite this ...
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 ...
0
votes
1
answer
537
views
How to add a frontend search box functionality for a custom table grid magento2
I have created a custom module and get data in the list format, now I want to add search functionality on the list view, so how can I add that?
0
votes
2
answers
36
views
Query is not working?
/I need those questions whose status is 1 but its not working/
<?php $i=1;
//$coll=$collection->getSelect()->where("`main_table`.`status`= 1");
//$collection->load(true);...
1
vote
0
answers
101
views
How to add custom category rule tab in form in admin side in magento 2.3.5
Hello Friends I want to add new tab in form for applying rule for specific category in magento 2.3.5.
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 ...
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/...
4
votes
3
answers
4k
views
Where to declare a magento registry value
I have a custom module, which uses the sales_order_place_before observer. I have a set of code in there which scans through the products, and adds items to the order, where necessary. However, I have ...
4
votes
2
answers
338
views
magento custom module keep throwing error even after deleting all files
i created a module in magento 1.9 CE to override list.php, and there was some issue, then i removed all the files for that module (the xml under module and all files under app/local/mycompany/), but ...
1
vote
2
answers
995
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 ...
2
votes
1
answer
381
views
Add Attribute to All Magento Customers, preferably an Object
Before continuing I would like to state that I have been looking for over a week through StackOverFlow, StackExchange, Google, and Alan Storm blogs.
Please don't link to another post I've most likely ...
0
votes
2
answers
1k
views
Magento 2 Custom Module Delete Issue [SOLVED]
I'm using Magento 2 Version 2.1.0
{folder path}\magento2\app\code\Custom\Module\view\adminhtml\ui_component\custom_module_index.xml
<massaction name="listing_massaction">
<argument name=...
5
votes
1
answer
14k
views
Magento 2: Creating a custom layout
I'm having trouble creating a custom layout. I have successfully created a layout called home_page.xml which is a copy of the default 1column layout.
I have selected this layout for my home page, ...
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 ...
4
votes
1
answer
644
views
How to create new shipping module with user input during checkout?
I bought a couple of books on Magento extension development and understood the mechanism on how to create a new shipping module. However in my current project I need to allow the customer to enter his/...
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 ...
0
votes
3
answers
606
views
How to disable custom plugin in admin
I have created a custom module to disable free shipping based on some conditions. I have to used
Custom/ShippingRule/Plugin/Magento/Shipping/Model/Shipping.php to do the functionality.
It is working ...
0
votes
0
answers
25
views
If trying to get the current product info then pop up model is not opening
/Blockname.php/
<?php
namespace Eaglerocket\Customquote\Block;
use Magento\Framework\View\Element\Template;
class Blockname extends Template
{
protected $_registry;
public function ...
1
vote
3
answers
7k
views
Magento 2 - How can I define constants or variables once and reuse them in a custom module?
I have a few constants that I'd like to define once and reuse many times within various files throughout my custom module. For example, I write log entries to a custom file. I'd like to add its pre-...
0
votes
1
answer
97
views
Exception Error on Success Page Module
I am currently attempting to modify my version of Magento ver. 2.3.4 by creating a new module to inject a custom attribute into the checkout success page.
The code in the files is as follows
...
0
votes
0
answers
20
views
Can anyone resolve this issues? Two buttons (add to cart )are coming with the disabled mode
I need to apply the code for the add to cart button but it is coming in disabled mode hence unable to do the required changes.strong text
0
votes
1
answer
23
views
This is the error I am facing while sending the mail function
<?php
/**
*
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Eaglerocket\Customquote\Controller\Index;
use Magento\Framework\App\Action\...
1
vote
3
answers
314
views
Where do I specify the file path for phtml? (Clarification please)
Where do I put the phtml file that all of this works with?
Current Files and their folder structure:
app/code/local/Sean/Customform/controllers/IndexController.php
<?php
class ...
0
votes
2
answers
5k
views
Magento 2: How to set meta tags for dynamic pages custom module in Controller, Block or .phtml?
I have created a custom module with admin grid form where data is entered and saved in database then it I retrieve to display at frontend.
So as an e.g I have followed for the frontend part this blog ...
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.
1
vote
3
answers
304
views
Can I dynamically change Layouts?
On the view.phtml is it possible to write php to change the layout depending on what item is displayed on that page?
Using code similar to this:
$this->loadLayout()
->...
0
votes
1
answer
411
views
I want to override customer-account-index.xml from magento-customer
If we want to override customer-account-index.xml from magento-customer. Where I should override?
By making folder name as Magento_Customer in app\design\vendor\theme or app\code\vendor\module..
...