Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

Magento 2: Submitted Form not calling Controller

To continue with the question below Magento 2: How to define Scope For Router.php app\code\Custom\Module\view\frontend\templates\posts\view.phtml <form class="form post reply" action="<?...
0
votes
0answers
7 views

Magento 2.3 Bundle Issue

I have searched everywhere for the past 2days but cant find a answer. I have magento 2.3 with a custom theme. Im trying to add a bundled product. On the backend i add the product successfully but then ...
2
votes
2answers
1k views

Custom Contact Form - Override Controller

I am trying to add a contacts form on multiple cms/products pages. I copied the default contacts form phtml and pasted it into a new phtml file. However, submitting the form redirects to the contacts ...
10
votes
6answers
10k views

Magento 2 - How to rearrange Customer “My Account” links

Now it looks like this: Account Dashboard Account Information Address Book My Downloadable Products My Orders Newsletter Subscription Billing Agreements My Product Reviews My Wish List I want to ...
0
votes
1answer
18 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()) :?> <...
0
votes
0answers
15 views

Magento 2 Remove Tier Price using Plugin

How to remove tier price using plugin ? I have no idea how to remove this price :(
0
votes
0answers
16 views

Need to modify the product detail page for adding a button beside the add to cart button

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** @var $block \Magento\Catalog\Block\Product\View */ ?> <?php $_product = $block->...
4
votes
1answer
2k views

Magento2.1: How to override the template in custom module?

I want to create an extension that will give shop owners ability to edit their product image. So I understand I need this template Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml I ...
0
votes
1answer
18 views

Unable to edit integration

We recently cleaned up our Magento 2.4.2 store so we had no generic users. Since we did this we noticed one of our integrations shows as inactive and we are unable to Activate or edit the integration, ...
0
votes
1answer
15 views

How to determine if MSI is enabled or not

I am building a Magento 2 module that makes changes to stock information. Bearing in mind stock management APIs are different in Magento depending on if MSI is being used or not, what is the best ...
0
votes
2answers
1k views

Custom button to set custom order status

I created a custom module to add a button to the order view page. The button shows up and now it is time to create the action attached. When clicking the button I want 2 things to happen: Set the ...
1
vote
2answers
27 views

How to specify which page js module is included on

I am following this tutorial https://devdocs.magento.com/videos/fundamentals/add-a-javascript-module/ At the end of the tutorial it says Now we’ll go to any product view page, and we should see the “...
0
votes
1answer
12 views

Magento 2: Custom Order Date and Shipping Amount in Programmatically created Order

Below is code to create order Programatically , it is working fine , i want to set custom order date and custom shipping Amount , i can not find way to do same public function createMageOrder($...
0
votes
1answer
965 views

Magento 2 - The product that was requested doesn't exist

Magento2.3.0 I have the following error in var/log/exception.log any idea how to come this error main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. ...
2
votes
2answers
2k views

How to assign customer group automatically based on address information

How to assign customer group automatically following by address information When customer register on our website, customer write the country where they live. If customer live in United State, we ...
2
votes
1answer
50 views

Magento 2.4: Create Order Programatically with custom Order ID

Please Note - I am able to create order programatically , just i want new created order to have specific order ID instead of auto generated order id Below is code to create order Programatically , ...
0
votes
1answer
29 views

Custom Tab in My Account Page Not Showing Up

I am currently trying to add a tab called "Product in Range" under the My Account section. The tab is showing up on the My Account page but once I click, I get a page not found error. Can ...
4
votes
2answers
3k views

Magento 2 custom module not loading and it throws error

I am using windows 7. app\etc\config.php <?php return array ( 'modules' => array ( 'Test_Module1' => 1, ), ); ?> When I add My Test_Module1 in app\etc\config.php admin all ...
13
votes
6answers
17k views

How can I decrypt an encrypted configuration value?

This is the code that I'm using to get the value from a specific field saved via the admin panel. protected $_paymentData; protected $_scopeConfig; protected $logger; public function __construct( ...
0
votes
0answers
15 views

Php information on custom module for checkout page

I have created a working custom module that shows a message on checkout page following this solution https://stackoverflow.com/questions/56974955/need-to-write-a-custom-message-on-checkout-page-in-...
1
vote
1answer
1k views

Admin Ui Form component JS error

What Im trying to do I started creating my own module for Magento 2. Module is simple - manage news articles in admin side and display them in frontend. No problems displaying data in frontend so far....
1
vote
1answer
379 views

Type Error occurred when creating object: Magento 2 EE 2.3.4

Environment: Magneto EE 2.3.4 PHP 7.2.23-1 OS Ubuntu 16.04 Error: Type Error occurred when creating object: Custom\Module\Model\ResourceModel\Module\Grid\Collection\Interceptor Situation: I ...
0
votes
0answers
18 views

How to get data controller to html file using variable in magento 2?

How to my post data is get controller file to html file. I have create email send extension in contact us form. But I have no idea how to store get data in controller to html file. $data = $this->...
1
vote
2answers
4k views

Create Custom Tab into Magento 1.9 Admin Panel

This Problem is related to Backend side (Magento 1.9 Admin panel) not for Frontend side: Part: 1) - I wanna Create Custom tab (suppose 'CategoriesInfo') in magento 1.9 admin panel. (like parallel to ...
0
votes
3answers
39 views

Magento 2.4.2 Modules won't work

This is registration.php <?php use Magento\Framework\Component\ComponentRegistrar; ComponentRegistrar::register(ComponentRegistrar::MODULE,'Mymodule_Newmodule1', __DIR__); routes.xml file is ...
2
votes
1answer
1k views

Magento 2: How to define scope in di.xml & Router.php

I'm using Magento 2 CE Version 2.1.0. app\code\Custom\Module\etc\frontend\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
2answers
1k views

InstallData not working

I have InstallSchema.php as follows: <?php namespace Namespace\Module\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\...
1
vote
1answer
1k views

Combine multiple shipping carrier rates with different shipping methods into one rate

Looking for a plugin or a way to combine shipping rates for multiple items that ship through multiple carriers into a single rate during checkout. Here's an example of what I'm talking about. Item 1: ...
1
vote
1answer
986 views

Debugging a Module in Magento2

I have one module working fine on one Magento Instance(installation), but If I am installing the same module on another Magento instance on the same server, the view in front-end is not showing. I ...
0
votes
1answer
28 views

Can't access Magento 2.2.1 admin,

Can't access Magento 2.2.1 admin, Stores > Configuration, anyone have this error before? How I can fix this. Thank you 1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 2 in /home/...
2
votes
3answers
3k views

Magento 2 : We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer your_db_user@% does not exist

I have migrated a Magento 2 site to a new server and getting the below error when placing order We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer ...
0
votes
2answers
2k views

show .phtml file in admin custom module

Hi i see this question a few times here but i can't solve my error, i got well until the blank page in my admin custom module, I follow this tutorial. So can somebody tell me the right direction i got ...
1
vote
1answer
31 views

How to add Custom Step on Checkout and move Shipping methods in that step In Magento 2.3.5

In this i want one custom checkout step can having only shipping methods inside the step means shipping address and Shipping methods are on different steps on checkout page. So, Please can anyone have ...
0
votes
1answer
1k views

Magento 2 get custom module data in theme phtml

I have created the custom module and inserted all the required fields detail in the database. Now, I want to list all rows in below file path: I have tried with the $objectManager, but direct call $...
0
votes
0answers
20 views

custom module not working after installation of new extension

i have created a custom module form and then for email functionality i installed Mageplaza extension but then my form module stopped working and when i disable Mageplaza extension module then only ...
0
votes
1answer
34 views

Cannot override list.phtml in module

I've created a module that modifies list.phtml to eventually place some data under the price in product category listing. I'm using Magento 2.4.1. Module can be downloaded here: https://www.dropbox....
0
votes
1answer
40 views

Create extension attribute to inventory source

I have a requirement to add the custom attribute (delivery_time) to each inventory source. my-vendor/module/etc/di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3....
2
votes
2answers
6k views

Magento2 : Retrieve Multiselect Values in system.xml

I have created a system.xml file with a multiselect type field somewhere in my admin system config. I just want to know on how to retrieve the selected values in that field?
4
votes
1answer
4k views

Magento 2: How to add a browse button to upload file in admin section?

Working on Magento 2 custom module implementation and want to add a browse button to upload a file in admin form. I have gone through the Magento2 : Admin module Image upload code to display form ...
0
votes
0answers
8 views

Magento 2: Marketplace upload issue. Custom Admin menu missing

My extension is working properly on my local but when I submit my extension to the Marketplace they decline it. The Manual QA fails. And the report says that according to the document the custom admin ...
5
votes
4answers
5k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
0
votes
1answer
3k views

How to add WYSIWYG functionality on my custom Magento 2 module?

Today I'm using the textarea to fields in my custom module, but I want to improve with the WYSIWYG. How could I use WYSIWYG in a custom field in the admin configuration panel that my module creates? ...
0
votes
1answer
1k views

Magento 2 Credit Memos : Template override doesn't work after clicking “Update Qty's” button

I am creating a custom module to simplify the Credit Memo creation for admin users. One of the features is hiding the "Return to Stock" column. I have overwritten 2 files for this: vendor/magento/...
0
votes
1answer
1k views

Magento 2 : Invalid block type while creating custom grid in backend

I've been trying to create custom gird in magento 2.0.11 but it keep returning Invalid block type: This error occurs while executing the file Tomrain/Appcustomizer/Block/Adminhtml/...
0
votes
2answers
18 views

How to change layout and template from module?

When creating a theme I can override the Magento header by placing files under app/design/frontend/company/mytheme/Magento_Theme/layout/default.xml and app/design/frontend/company/mytheme/...
1
vote
1answer
1k views

How to find the block to override for the navigation menu magento 2

current setup: Magento 2.2.4 installed with composer. I want to replace the navigation menu with a different navigation menu (MCP Menu Creator Pro). I think I am supposed to extend the magento/...
0
votes
2answers
2k views

Get Wishlist product collection in Controller of Custom module Magento2

I am trying to get Wishlist product collection in Custom module controller for the new functionality. I searched in google and I got this: Inject this class in your constructor: protected $...
0
votes
3answers
127 views

Magento 2 : Module to send Delivery Notification

Anyone know a Module for Magento 2.1 Which will able to send Delivery Notifications of items? ( For UPS or FedEx ) Ex: Item in Transisit Notification. Item Arrived to Destination Country ...
0
votes
0answers
6 views

How can I integrate Magento website with wordpress website and create a SSO(single sign on) between both websites?

I am trying to integrate a new website(Wordpress website) with a Magento website, I've made the API integration using php curl, I've also add the Magento website url to the new website. I can create ...
0
votes
2answers
1k views

Helper Data not found - Can't access admin panel

Admin Panel only shows the following message: Fatal error: Class 'Mage_Sean_Adminmerchant_Helper_Data' not found in /home/makeyou/public_html/app/Mage.php on line 546 I deleted all files within: ...

1
2 3 4 5
62