Questions tagged [module]

Questions about developing custom modules

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

Shipping estimation calculation takes forever

I'm only using 1 shipping method, flat rate $6. On one page checkout, is there a way to disable 'shipping calculation' and directly show $6 for shipping fee? Only estimate-shipping-methods takes ...
0
votes
0answers
18 views

Magento 2.3.5: Creating a custom category bottom toolbar

I'm trying to create a custom category bottom toolbar without the h1 title. I've done the following. Created a module with the following structure /app/code/Vendor/ToolbarBottom /app/code/Vendor/...
1
vote
1answer
38 views

Magento 2.4 - PayPal Smart Button Style

I want to change the button style of the PayPal Express Checkout, but is not work, I have create a module to rewrite the PayPal but how I can add my changes there? I create di.xml file on following ...
0
votes
0answers
10 views

How to get delivery date module into store-selector / instore-pickup in checkout?

So I got this module to pick a delivery-date,- time and comment. It is visible on /checkout/#shipping at the bottom of the form for every shipping method but I want it to only show for "In-store ...
0
votes
1answer
24 views

Magento 2 - How I can rewrite this file

I want to change the following file: vendor/magento/module-paypal/Model/SmartButtonConfig.php but if I made the modifications directly in the vendor file when I will upgrade my store this ...
0
votes
0answers
8 views

How to send array variables in Magento 2 email template?

I have created a custom module to send custom email template. But i want to send array value so need to use the loop i have tried in mail file but it doesn't work. Any one have any idea how to send ...
0
votes
0answers
26 views

Magento 2 Developer Training Prerequisite

I am taking Magento courses in Adobe commerce, but finding it difficult to follow the code structure. I am basically a OOPS and SQL developer so not that familiar with latest front end technologies. ...
0
votes
2answers
19 views

How to configure Magento 2 to have personal/private develpment extensions just for myself

I have several development tools which I personally use like: https://github.com/ho-nl/magento2-Ho_Templatehints https://github.com/mage2tv/magento-cache-clean Is it possible to somehow configure ...
0
votes
1answer
27 views

How to override magento/module-checkout/view/frontend/web/template/minicart/item/default.html in custom module

I have custom additional options in quote and want to hide few options in the mini cart. How to skip a specific index in Knockout js array from the following code <dl class="product options ...
0
votes
1answer
28 views

custom module stop working after Magento 2.4.3 upgrade

I have a module that extend the functionality of other module, in fact it display the product name and product price as a variable, after I upgrade the Magento to 2.4.3 this module stop working and I ...
0
votes
0answers
28 views

How to extend app/code/Smartwave/Megamenu/Block/Topmenu.php this file Function in Custom Module or in Child Theme?

I need to extend a function from this file app/code/Smartwave/Megamenu/Block/Topmenu.php. By using a module or in child theme. How can i achieve that to extend that file like how to modify that ...
1
vote
1answer
62 views

Get additional_information from sales_order_payment to show in backend sales order grid

I have a custom sales order grid module I want to extend, to show the information from the field additional_information, in the table sales_order_payment. I have this right now, but it ain't showing ...
0
votes
0answers
23 views

How do I pass JavaScript variables (from jsfile) in to PHPfile in magento 2

How i pass the js varible from custom js file in to my custom module php file, because i create dropdown in header and i need to use that value for adding some condtion in php file and custom js file ...
0
votes
2answers
18 views

Change order status for custom module

I want to use one offline payment method module, I install this module is there any way to change the status of the order to be Processing instead of Pending? Right now all my orders have status ...
0
votes
0answers
12 views

Auto configure custom widget programmatically after enabling it in Magento 2

I'm struggling with some concept of auto-configuration custom widget provided by the module. By default, the widget should be configured by the merchant, which is obvious, but my question is - is ...
0
votes
1answer
122 views

Magento 2.4.3 issues - compatibility issue with a shop by brand module

I have installed multiple shops by the brand module but they have a common issue after I upgraded to Magento 2.4.3... there is no issue on 2.4.2  composer require coderkube/brand:1.0.1 --no-update ...
0
votes
0answers
13 views

How to create a module to add .well-known/file via controller?

I need to create a dynamic file to add the controller route below and change the content via the admin panel. mystore.com/.well-known/file I can't create a static file, and the admin option is ...
1
vote
1answer
38 views

How to call php block function with parameters from a js file?

I'm new to Magento, and I'm not sure how to make this work. I tried searching a lot but could not find anything related. I have a block function in my custom module which takes 2 parameter public ...
0
votes
1answer
13 views

Installation module-wysiwyg-advanced-master

I wanted to thank and congratulate the creator of this amazing module and ask him for more detail about the installation. In fact I am not a confirmed developer and I am having trouble installing the ...
3
votes
0answers
29 views

is mixin for library file's method possible?

I was solving one of the issues from the other stack exchange question. The fotorama library file which is located in lib/web/fotorama/fotorama.js has one method navUpdate(){...} at 2765 line. I want ...
0
votes
1answer
12 views

Magento 2.3.6 - Stock do not go from 1 to 0

We have Magento 2.3.6 and MIS is disabled. So we have an issue when products are sold from any number down to 0 it does not decrease at all. E.g. if we have 10 left of a product and someone buys 10 ...
0
votes
3answers
62 views

Get error after disabling a module

I have upgraded Magento from 2.2.4 to 2.4.0, i have custom modules that are not compatible with the new Magento version. So i disabled the module but when i run php bin/magento setup:di:compile I ...
-1
votes
1answer
46 views

Magento 2.4.2: How to change the shipping label?

With a custom shipping module, I am adding brokerage and duties to the shipping cost for an order from Canada. How can the shipping label be changed so that it reads "Shipping includes brokerage ...
0
votes
1answer
21 views

magento cli error after module installation by composer

i use magetno 2.2.3 . the bin/magento cli is working fine until I add a module by composer require [module name] --ignore-platform-reqs.after that it gives me a long term error : so how should I ...
0
votes
2answers
182 views

Magento 2.4.3 - Module and Theme Installation not working

I have installed Magento 2.4.3 via composer and trying to install custom frontend/admin theme and custom modules. These modules are already working in version 2.3 that have been copied and added at ...
0
votes
1answer
32 views

Loading Admin Settings into JS

so I'm trying to add some new configurations to my checkout page, and I added 3 new settings to the admin page, but now I would like to load them to my JS file, but I don't know what to do to achieve ...
0
votes
1answer
26 views

magento cli not working for any command and gives a long error

i have magento 2.2.3 . for deleting cache or enabling modules or any other usage of magento cli i take one error . it begins with this phrase Unknown package has no name defined and it is continuing ...
0
votes
0answers
10 views

Generate product URL in CMS page, Catalog Search page, Sitemap, Canonical URL with category path

I want to generate or print the product urls in CMS page, Catalog Search page, Sitemap, Canonical URL with category path. currently my product url in CMS page, catalog search page and in canonical ...
0
votes
1answer
38 views

enabling module error in vendor after installing with composer by CLI

I add a module with composer and then try to enable it by writing the command php bin/magento module:enable SR_UnicodeUrl but I get a long error in response that starts with this phrase Unknown ...
1
vote
1answer
68 views

Magento2 Getting error while downloading module via composer

Magento2 I have created a custom module & uploaded on package list so that anyone can download the module via composer. For downloading the module we are using the following command. sudo ...
0
votes
1answer
47 views

Magento 2.4.2: How to get order sub total in my custom module?

With the code below, I am trying to get the order sub total. Please note I am querying the table that I created in the Magento Database. $subtotal = $request->getOrderSubtotal(); doesn't get the ...
0
votes
0answers
11 views

Error log showing a template file but module not found in my files

My Magento 2.2.6 Website is become very slow when we are adding product or updating product in backend and some time website is crashing . So when i check the log file i have found following error ...
0
votes
1answer
25 views

Getting error on extending in Custom Module vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml file in Magento 2.4

On extending the file vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml File in Magento 2.4 getting error like 1 exception(s): Exception #0 (Exception): Warning: ...
0
votes
0answers
10 views

Allow backorder per website

We created a module to allow backorder per store view rather than default. This module works in Magento 2.3.3 but I tried to implement this to a Magneto 2.3.6 installation also. However, I get this ...
0
votes
0answers
21 views

Magento 2 | construct() must implement interface

I am trying to send an email from the Magento 2 backend, in the order section item. My code is this: namespace Vendor\Module\Helper; use Magento\Framework\App\Helper\Context; use Magento\Framework\...
0
votes
1answer
28 views

Magento 2 - Add custom attribute to custom section admin

I installed my "customsection_adminbackend" module which adds a new menu item in the Magento 2 backend. For now in this new section there is only a text "Hello world", but I would ...
0
votes
2answers
47 views

I want to add custom div after add to cart button on single product page in Magento 2

I am creating a custom extension for Magento 2. Currently i want to show custom div on single product page under Details tab. How to achieve this ? can someone please give me tutorial or reference or ...
0
votes
0answers
16 views

How to double the items in the cart by updating the quantity in the product cart page?

Double the value in the cart by updating the quantities.
0
votes
0answers
16 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
2answers
31 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
0answers
46 views

How to implement Custom online shipping method with shipping API?

I have created one shipping module.I need to integrate flash express API's in that. How to integrate the APIs?
0
votes
1answer
31 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\...
0
votes
4answers
81 views

Not able to install Google Pay module(unboundcommerce/module-googlepay)

As per the requirement I need to integrate Google Pay in my Magento 2 site. But I am getting an error added below. Command php -dmemory_limit=6G vendor/bin/composer require unboundcommerce/module-...
0
votes
0answers
26 views

Warning: Can not use a scalar value as an array in /var/www/demo/vendor/magento/module-email/Model/AbstractTemplate.php on line 472

I have created the custom template for sending the emails. <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr>...
0
votes
1answer
20 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\...
0
votes
2answers
26 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
votes
2answers
45 views

I need to display table data in my custom module at the front end of the site. Its saying wrong argument for $collection

/*Showdata.php Controller\Index */ <?php namespace Eaglerocket\Customquote\Controller\Index; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; use Magento\...
0
votes
0answers
22 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 ...
0
votes
0answers
15 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 ...
0
votes
2answers
31 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()) :?> <...

1
2 3 4 5
63