Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
1
vote
0answers
33 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
1answer
49 views

InstallSchema not running even though module is not installed

I searched all over and don't see anyone with the same issue. Below are steps I tried to solve this with no success I deleted the module from setup_module table. I don't see any errors in var/log/...
0
votes
0answers
24 views

What are some simple custom modules to play with Magento 2?

I'm learning Magento 2 modules. I would like to create custom modules from beginner level to advanced. Can you please tell me what are simple concepts that can be created as a module in Magento 2? ...
0
votes
0answers
17 views

Magento 2: Add Comment box after each items on cart page

I am developing a new website in Magento 2 and there is a requirement of adding comment box of each product on cart page so please suggest what is the best way to do it by programmatically. I search ...
0
votes
1answer
21 views

Magento 1.9 Custom Module Error

I am a noob of Magento 1.9. I have these custom module files: app/code/local/mypackage/custommodule/block/mymodulename.php app/code/local/mypackage/custommodule/etc/config.xml app/code/local/...
0
votes
1answer
27 views

Magento 2: Create a custom module for banner slider

I want to create a custom module for banner slider in Magento 2. Could anyone please guide me? Looking forward to hearing from you.
1
vote
1answer
23 views

Magento 2 - Missing js files in a certain store view

In Magento 2, is there a way to disable a module for a single store view only in front-end, like Magento 1? Because that's what happened to me. I have this module named Vendor_XXX that loads several ...
0
votes
0answers
15 views

Custom Fields Best Practise

I'm very new to Magento development, but i've migrated over from wordpress development. One of the things I love most about wordpress development is how easy it is to make almost everything on the ...
3
votes
0answers
36 views

Magento 2: Set custom discount price to existing cart/quote in controller

I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered: I want to add discount to ...
0
votes
0answers
35 views

Magento 2: Get store information in frontend files

I'm completely new (like 3 days in) to Magento Development so I apologise in advance if i'm asking a silly question! I've really struggled to find a good magento course online so now i'm at the stage ...
2
votes
1answer
34 views

Magento 2: Multilingual Module

I am creating my own module and as I am creating some text, that will be shown in the website. The store manager, which installs my module, needs to have the possibility to translate my text into ...
9
votes
6answers
257 views

Magento 2: Changing Price of Product in Controller doesn't work at the moment!

I tried to change the Price of my Products like this: Controller.php: [EDIT] <?php namespace MassiveArt\ShoppingCart\Controller\Index; use Magento\Catalog\Model\ProductFactory; use ...
2
votes
2answers
34 views

Magento 2: Required files to create a module

I'm aware that the only required files for creating a module are registration.php and module.xml. But I'm seeing some of the popular blogs mentioning composer.json file in addition to the above. Any ...
0
votes
0answers
24 views

How to code Many to Many Relationship in Magento 2

I am working on a custom module named "Amendments". I successfully write CRUD code of both "Categories" and "Amendments" models. I just can't figure out "How to establish a link between both entities"....
0
votes
1answer
33 views

Magento 2.X: Module URL rewrite

Magento ver. 2.3.2 I am writing a Magento 2 module. I'm trying to re-write a CMS page URL: https://www.test.com/url-test/cat1/cat2/cat3/ https://www.test.com/url-test?path=/cat1/cat2/cat3/ I have ...
3
votes
1answer
43 views

Magento 2: Logging in a custom module

I created a new Magento 2 module and followed the injection-based logger object creation. protected $logger; public function __construct(\Psr\Log\LoggerInterface $logger) Now, when I log using ...
3
votes
1answer
40 views

Magento 2: After adding products to cart programmatically, cart is not refreshing until reloading page

Hello Magento 2 Friends. I have an ajax call to an controller, which adds some new products to the cart programmatically. This works fine, but the problem is that the cart and the mini cart are only ...
2
votes
1answer
45 views

Magento 2: Add multiple products to cart programmatically does not work if cart is empty!

I have the same problem as mentioned in this Question: Magento 2: Add multiple products to cart programmatically But it was never answered. This is my Controller.php: <?php namespace MassiveArt\...
0
votes
1answer
30 views

Error when running di compile after upgrade from 2.2.9 to 2.3.2 (TEMANDO)

I've tried disabling the temando module but i'm still getting the error. Repositories code generation... 1/7 [====>-----------------------] 14% < 1 sec 74.0 MiB Fatal error: Declaration of ...
0
votes
0answers
7 views

Magento 2 - add stored procedure via installer

There are lots of articles about how to add stored procedures / triggers in Magneto 1, but what is the best practice to do this in Magento 2?
2
votes
1answer
57 views

Magento 2 add custom button next to cart button

I want to add a button next to the cart showed in the screenshot. Any ideas how to achieve this? (EDIT) Only need to know what to write in the layout.xml This is the current XML code <?xml ...
2
votes
1answer
48 views

Magento 2 I want to set a custom price of a product programmatically but only for this one session

I have a little problem because I first add some products into the cart -> this is working. But I also need to change the price of this products I add. The problem about that is, that I only want to ...
0
votes
0answers
23 views

Why the edit hyperlink in action column is not displaying often in custom admin grid? [duplicate]

That edit option in action column is working fine but it is not showing often. Please help me. Action column code: <actionsColumn name="actions" class="AdminGrid\Grid\Ui\Component\Listing\Grid\...
0
votes
0answers
57 views

Rename Module Name Magento 2

Have you tried Renaming the Vendor/Module name with different cases For instance: Vendor_Module to VENDOR_Module? After renaming the module name I tried to setup:upgrade, but got the below issue, ...
3
votes
2answers
63 views

Controller URL does not work

I have the problem that i always get the error 404 not found, if I want to get the url of my controller. This is my filestructure: And this is the URL I am trying to get loaded: http://localhost/...
1
vote
2answers
50 views

How to migrate M1 module in M2 - Module Migration

We will go to Magento 2.3 and need to integrate an old Module which handles the Order Exportation for our Fulfillment Service. I'm really new in Magento 2 and try to learn it step-by-step. I have ...
1
vote
1answer
38 views

How to edit module/extensions code directly from Magento 2 admin dashboard as we can edit plugins in wordpress?

Is it possible to edit Extensions in Magento 2 admin dashboard as we can edit plugins in Wordpress? Like in Wordpress: Is there any option in Magento 2 admin dashboard ?
0
votes
1answer
41 views

Magento 2.3.0 : Admin panel mass status action change after not updated in custom module grid record

I am using Magento 2.3.0 and I create custom module for video gallery in admin side module grid mass action change status after not updated in grid but message comes on successfully updated. If any ...
0
votes
0answers
9 views

Magento2.3.0 How to display video gallery on custom page inside

I am using Magneto2.3.0 In fronted side want to collection like Video Album, if i click album than get video collection which is belongs to album. From admin side I manage for all functionality ...
0
votes
1answer
17 views

How do I obtain the value of an order (cart) without taxes, shipping order and voucher discounts?

I am trying to develop a module that calculates the value of a parameter and shows it in a page. (I am 95% sure that I need the value that is shown by default in cart subtotal at the cart checkout) ...
0
votes
0answers
32 views

Magento 2 System Config Plugin

I have created a custom tab in system config and added 1 field Module Enable Yes/No and 1 Dynamic fields which is depends on Module Enable. When Module Enable is set Yes I created various dynamic ...
0
votes
0answers
26 views

Magento 2: Add an attribute to global search

Is it possible to add an attribute from a custom module to the global Magento 2 search system? For context I've got a couple of custom attributes added to the sales order records (an external legacy ...
0
votes
1answer
32 views

Magento 2 adding a custom link in a new column to product_listing.xml

Trying to add a new column with a link into magento 2 product_listing.xml that passes entity id to a custom module. I have created the Ui Component [company]/[module]/Ui/Component/Listing/Column/...
2
votes
1answer
43 views

Magento 2.3: I am trying to add text into the small cart, but it's not working

I want to add text into the cart showed in the picture, but unfortunately my code does not work. This is my file structure: Code in ButtonGet.php: <?php namespace MassiveArt\ShoppingCart\Block; ...
0
votes
1answer
45 views

How to use Magento2 Module Select2 Ui Component ? How active module in default.xml?

I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent I never had to use UI components. I want to active Select2 on ...
0
votes
0answers
73 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
1answer
44 views

Magento 2 giving error while creating New Module In PathValidator.php line 63:

I am creating a new module in Magento 2 when I run the command bin/magento module:enable Module_Name it's giving following error Path "/var/www/vhosts/magento2-blank/app/etc/" cannot be used with ...
0
votes
2answers
56 views

Magento 2 What we can do when two modules override same block?

I have two modules which are using the same block function. i.e. module 1-> ABC, module 2-> XYZ both modules are using preference method to override core module's block file. => Let say in core ...
3
votes
6answers
109 views

Magento 2.3: How can I get the customer ID with PHP?

I am trying to get the items of the cart as well as the customer ID in my Module. But the problem is that I don't know how to get the customer ID properly. In the Moment I have this Code and it works:...
1
vote
0answers
68 views

extension work on 2.2.1 but not work on 2.3.2

I have an extension "redirection after customer login/reg/logout", it works on Magento v2.2.1 but when I set up on 2.3.2 so not work :(. issue not saving form value system.xml to core_config_data. ...
3
votes
2answers
83 views

How can I add a custom button by using a custom module in Magento 2.3?

I wanted to add my own button in the Shopping Cart as I tried to show you in the screenshot. But I didn't find a tutorial that worked for me. Do you have any idea how I can do this? (I want to make ...
0
votes
2answers
46 views

Magento 2 :- how to get email address in sales_quote_address_collect_totals_before events

How to get email address in sales_quote_address_collect_totals_before events guest user email address. <?php namespace xxxxxx\xxxx\Observer; use Magento\Framework\Event\ObserverInterface; ...
1
vote
2answers
107 views

Magento 2.3 Extensions on Ubunu 18.04

I installed Magento 2.3 successfully on my Ubuntu Maschine and tried to start to make my first own module. I followed this tutorial: https://www.cloudways.com/blog/create-module-in-magento-2/. But I ...
4
votes
1answer
52 views

Can I create a module including only a helper class?

Is it possible to create a module/extension with only a Helper class declared? I am trying to create a module because I need to use a function on more than one phtml files. So far I got this code: /...
-2
votes
1answer
32 views

how to show shipping method selection for each item in cart

Can anyone give the solution for the below. I am using magento 2 CE. I want to show all shipping methods for each item in the cart on the shopping cart page and the customer can select the shipping ...
0
votes
0answers
19 views

how to get guest email address in CollectTotalsObserver page in magento 2

how to get a guest email address in CollectTotalsObserver page in Magento 2. public function execute(\Magento\Framework\Event\Observer $observer) { /** @var \Magento\Quote\Api\Data\...
0
votes
0answers
17 views

Magento2: show payment method custom page

I want to order virtual product from my account section with going to checkout for that I want to call all the available payment method (not COD) Is there a way to do so.
1
vote
1answer
54 views

Magento 2 zend error BarcodeRenderer.php

Has anybody encountered this error before? I'm not even using temando nor is it enabled. I did try enabling it to see if that would fix it but no luck. Fatal error: Class 'Zend\Barcode\Renderer\...
2
votes
2answers
86 views

No region found within the locale 'en' while running UpgradeData.php

I'm trying to set up 2 stores I created using InstallData script, but When I run php bin/magento setup:upgrade, I'm getting an error No region found within the locale 'en' and the process stops. What ...
1
vote
0answers
30 views

Disable Magento Gift Card Extension

I want to disable (complecty remove everything that comes with this module, I mean options in My account, checkout, cart etc) but disabling it by command seems problematic beacuse of modules that ...