Questions tagged [module]

Questions about developing custom modules

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

Magento 2 How to add grid/phtml file on Slide out panel [ popup modal ] in custom grid action?

Here is the link of what I expected to do in my custom module http://admin-actions-log-m2.demo2.amasty.com/_router/redirect/admin-actions-log-m2/index.php/admin/amaudit/actionslog/index/ just open ...
0
votes
2answers
563 views

Magento 2 - Disable some modules per store view

I have setup two stores in Magento 2.2.6, each store have their own theme and url address. In one store I have Porto theme installed in the second store I have other theme. How I can disable for ...
0
votes
2answers
1k views

Magento2: Checking if a module exists, after being injected via class constructor

I know I can achieve this with object Manager - but just wanted to see if there is a better way. Perhaps this case is a good candidate for using the object Manager; however, I would like to do things ...
0
votes
2answers
31 views

How can sync contacts and subscribers in Magento 2 with SendGrid? Any suggestions please

I have a website on Magento 2 and I need sync all my contacts from Magento 2 to SendGrid. Track all new subscriptions, unsubscriptions from SendGrid and Magento. Also I need see and manage all ...
0
votes
0answers
19 views

Magento 2 shipping method price ascending or descending

Any one can help me Ok so I have shipping method sorting by price in checkout page. Magento 2 defaults this to price descending all ups and usps. But I would prefer it to be by price ascending. I ...
1
vote
1answer
21 views

Upload image or files in custom module from front-end with ajax magento 2

I want to upload image from frontend custom module using ajax method. Filepath : app/code/Chirag/Userform/view/frontend/templates/insert.phtml <?php $blockObj= $block->getLayout()->...
0
votes
1answer
723 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 ...
0
votes
3answers
1k views

showing product on custom page gives error

i am showing product on custom page created via modules app\design\frontend\base\default\layout\related.xml <?xml version="1.0"?> <layout version="0.1.0"> <...
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
13 views

Magento 2 shipping method usps option show to top

How to change USPS And UPS layout any one please help me
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: ...
0
votes
0answers
12 views

Magento 2 override database connection

I'd like to be able to override the database connection that M2 is using depending on what user is logged in (think multi tenant system). Can anybody point me that the database connection class / ...
1
vote
2answers
28 views

How to translate i18n value from tag in html?

I want to Translate a custom button name using i18n. I tried like this app/code/My_vendor/My_module/i18n/ar_SA.csv "I am the gift Receiver","أنا المتلقي هدية" The affect should take place in ...
0
votes
1answer
79 views
+50

Magento 2 - Extend core framework

I need to add a new attribute for layout containers. e.g.: customAttribute="data-block='minicart'" <container name="minicart-row" htmlTag="div" htmlClass="minicart-wrapper" customAttribute="data-...
0
votes
1answer
55 views

How to create a frontend custom page module with view template files in magento 2.3

I have doubt as how to create Frontend Module with View template files. I have created Module using this reference Magento Documentation "https://devdocs.magento.com/videos/fundamentals/create-a-new-...
1
vote
1answer
32 views

Magento 2 payment method not showing in checkout

I have used this module in many stores https://marketplace.magento.com/ontap-module-mastercard.html. But for some reason in a new instance of Magento that I installed, it's not showing the payment ...
4
votes
1answer
406 views

Magento 2.3.0 - SendGrid Email Delivery Module issue

I have installed "SendGrid Email Delivery" module on my magento (2.3.0 version) application. It installed successfully but when I tried to access it from admin panel to configure their settings after ...
1
vote
0answers
389 views

Magento 2 - Sendgrid extension

I tried to install a new extension on my Magento site (version 2.2.0). I created a new folder in app/code/ like this app/code/SendGrid/EmailDeliverySimplified After that I run this command php -...
1
vote
0answers
19 views

Custom module send email with custom language

I made a custom module that send an email to my customers. app/code/Local/CustomEmail/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\...
0
votes
2answers
929 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 ...
11
votes
3answers
8k views

Magento 2 How to uninstall attributes added by custom module?

So far I know that when uninstalling a custom module, it is possible to remove custom tables or columns added by custom module by using uninstall.php which extends \Magento\Framework\Setup\...
0
votes
5answers
55 views

Custom Module Controller: Invalid security or form key. Please refresh the page

I have a custom module with an admin controller, but when I try to access from the administration page I get the following error: My controller is in Controller/Adminhtml/Login/Index.php class Index ...
0
votes
1answer
29 views

How to create a Block, Layout and Template for backend module in magento 2

I have doubt as how to create Backend Module using block,layout and templates. After creating the block,I have assigned the block in app_appdashboard_index.xml file and I called the block page ...
0
votes
3answers
1k 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/...
2
votes
3answers
678 views

How to override Magento 2 framework file?

I try to override this file : vendor/magento/framework/View/Element/Html/Link/Current.php I create a module.xml, registration.php and di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
23
votes
5answers
11k views

Magento2 CLI module:enable gives error “Unkown module(s)”

In Magento2 I've built a simple custom module and want to enable it by CLI: bin/magento module:enable Vendorname_Modulename But it is giving me the following error: Unknown module(s): '...
0
votes
0answers
21 views

Block is not getting called in custom module - Magento 2.3

I created a custom module to list all categories in a custom page. But the associated block is not getting called in the layout file. I can see the controller function is getting executed and page ...
1
vote
1answer
63 views

Magento 1.9.4.3 Custom Column Filter not working

I have a custom column on my sales order grid showing the ordered items sku's. Done by following the guide here. It worked well in previous versions but no longer does work correctly in 1.9.4.3. When ...
3
votes
1answer
42 views

How to override .phtml file in module?

I am trying to change sign in or create an account message which is called by block named product.review.form in catalog_product_view.xml. /vendor/magento/module-review/view/frontend/layout/...
1
vote
1answer
774 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....
0
votes
0answers
16 views

Magneto 2 :Delete DB fields while admin disable a module from backend

Created a module ,in which created some custom product attributes for products.Thus added few new rows in eav_entity table using InstallData.php file. Everything working fine. But even I disabled the ...
0
votes
0answers
6 views

How to show magnifier size based on different product image sizes?

I need to show the magnification sizes as fixed for all different sizes of images in product pages. How can I change this? <var name="magnifier"> <var name="fullscreenzoom">2&...
0
votes
1answer
20 views

Unable to get payment method from Observer class

I'm unable to get the payment method from the sales_order_save_after observer class in a custom module, i can get the orderId and Name but i have been unable to work out how to get the payment method (...
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
4answers
7k views

How to show a custom attribute in the admin Shipping Address box?

I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
1
vote
1answer
39 views

Something went wrong with processing the default view magneto 2

when I try to access "products" in the backend, I"m getting an error. Debug this [2020-01-15 05:04:13] main.CRITICAL: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1 {"...
1
vote
1answer
37 views

getProduct gives repeated product on cart page as additional info instead current product

I have developed a custom module to show additional product info on cart page. My module is combo of: https://webkul.com/blog/add-product-information-checkout-cart-in-magento2/ (https://github.com/...
0
votes
1answer
154 views

Magento 2.3 - custom import module with magmi integration

I'm trying to write a magento module for importing products from a csv file. I would like to use Magmi to achieve the import. I tried the following code but it doesn't work: namespace My\Module\...
0
votes
0answers
44 views

Magento2.2.6 How to create custom api module?

How to create custom api module for category listing and product filter sales order...etc below added custom api module integrate after check it postman result { "message": "Request does not ...
5
votes
4answers
4k 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 ...
1
vote
2answers
4k views

how to get block data on phtml template in magento 2

what is missing in my code block data not shown in phtml template block page namespace xxxx\Trails\Block; use \Magento\Framework\View\Element\Template; use \Magento\Framework\View\Element\...
0
votes
1answer
25 views

Magneto 2 limiter value sorting

When i change the limit value, i really want to send the same value to all pages vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php public function getLimit() { $...
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: ...
0
votes
1answer
28 views

How to write new line with drawText() below code magneto 2?

Anyone plz help me $Commenthistory = "Order Comment History"; $page->drawText($Commenthistory, 20, $this->y, 'UTF-8'); //$page->drawText(__('Order Comment History'.PHP_EOL)...
0
votes
1answer
30 views

When to use app/code vs app/design

I saw two topics about that but I'm still not sure. I'm discovering Magento 2, I'm a frontend developer and right now, I just want to make my company website's header and footer (html, css) (so a ...
1
vote
2answers
3k 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
1answer
1k views

Magento 1.9 - I want to create my own controller in order to implement multiple contact form sent to specific email address

I'm trying to make 2 multiple contact forms in the Magento web site. And the original one will be inherited from the original core contact module but when it comes to the new one I made, it needs ...
2
votes
1answer
214 views

Magento 2 : How to get collection of all sources "MSI (multi source inventory)?

I have created a custom module and on my custom page, I want the collection of all the sources available on my website. Let's assume I have created 3 sources from backend like "US", "UK", "INDIA". ...
11
votes
9answers
33k views

Magento 2 - How to uninstall module?

How to uninstall module ? I read this document But it was not successful, and display below: php bin/magento module:uninstall SP_Gridthumbs SP_Gridthumbs is not an installed composer package
5
votes
1answer
15k views

magento2 how to override model file? [duplicate]

I would like to override (call the below model file from my custom module called Demo_Customprice /vendor/magento/module-catalog/Model/Product/Option/Value.php How could we achieve this?