Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

What does ~ and ^ mean before version number after module name in composer.json?

Sorry for this newbie question: What does ~ and ^ mean before version number after module name in composer.json ? "mageplaza/module-core": "^1.4.1" "sebastian/phpcpd": &...
0
votes
0answers
9 views

Why don't possible rewrite this class on Magento\Payment\Model\Method\Cc

I create the rewrite of that class but for some reason magento ignores it, is it because it inherits from an abstract class? etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
15 views

Product details page get product custom attribute and apply custom css

I have create a custom attribute for a product. The attribute name is "hide" When product load at product detail page, if this product custom attribute is "hide", it will apply a ...
1
vote
1answer
19 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
0
votes
3answers
34 views

How to check installed extensions on database magento 2

I need to check installed module on database table I hope your help Thanks Thomas
1
vote
1answer
39 views

Override Magento_Sales::email/items/shipment/default.phtml Template (Magento 2)

I am trying to override Magento_Sales::email/items/shipment/default.phtml Here is my layout file app/code/Mod/Sales/view/frontend/layout/sales_email_order_shipment_renderers.xml <?xml version="...
0
votes
1answer
86 views

Why should I (not) put my extension into app/code?

a dumb question. From: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-file-structure.html Magento installs third-party components in the <Magento install directory>/...
0
votes
1answer
29 views

Custom getLogoUrl for E-Mail templates

I have the following problem: Inside of four different store views, we have the opportunity for the customer, to change between different assortments. This is basically just a filter in the Layered ...
0
votes
0answers
36 views

Magento 2 online refund for custom payment method

I am developing a Magento 2 custom payment module for one of my clients, yet I am now totally blocked in finding a way to process an online refund for any of the created orders. I can't locate the ...
0
votes
0answers
20 views

Magento 2 / ShipHawk multiple warehouses

I need to extend the ShipHawk Magento 2 module so that order line items can be shipped from multiple locations. We are using Magento MSI and I have the functionality built to send the stock inventory ...
0
votes
0answers
19 views

Magento 2: Adding Custom Field to Checkout and Having a Database issue

So I'm trying to add a custom 'checkbox-set' to the checkout page of a vanilla install of Magento 2.3.2, I have it working on the frontend view, though after changing some values in the InstallSchema....
0
votes
0answers
9 views

Indexer not taking correct batch size in Magento 2

I have created a module and a file app/code/Mag/Indexer/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
5 views

any idea of Dutchento VatFallback module? do i able to get documentation to know the purpose of this module

any idea of the Dutchento VatFallback module? do I able to get documentation to know the purpose of this module
0
votes
1answer
32 views

Magento 2 - How I can get category for related products

How I can get categories for related products like in the following image: I use this code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $category = $objectManager->get('...
0
votes
0answers
15 views

How can I customize the filter of the product grid on the admin side in order to filter by RANGE

hope you are all good and in great shape. TLDR: How can I filter my product grid on the admin side using a WEIGHT RANGE? I am a newbie in Magento and I have been doing some progress over the last ...
0
votes
0answers
13 views

How to create a custom product attribute where i can upload as many PDFs as needed, and upload the thing as a whole?

I need to complete a task which i have been struggling with since last week. If i "Go to Seller Store" and then into editing a product (both a new product or one that is already uploaded), ...
0
votes
0answers
7 views

How to use big image from blog post in facebook share instead of logo?

I recently installed an extension module, but when we share at facebook it always use the website logo, I removed the tag from the xml I think so the logo it's not prioritised but keeps using it. Any ...
0
votes
2answers
52 views

Magento 2.4.1 disable Elasticsearch

I want to use Magento 2.4.1 in a shared server, the problem is that the shared server is not support Elasticsearch. Is there any way to can remove the Elasticsearch or to disable the entire search ...
0
votes
1answer
12 views

Magento2.3.5 Di Compile Breaks custom module admin grid

I have an issue whether in developer or production when I run php bin/magento setup:di:compile I get Fatal error: Uncaught Error: Call to a member function setActive() on bool in /var/www/vhosts/dev....
0
votes
0answers
5 views

i want to add slides multiselect drop down in banner form in admin through coding in magento 2

I want to load the slide section in a banner form and want to select the slides from the multi-select drop-down banner form and should save it in the database. I want to create this functionality as ...
0
votes
0answers
33 views

Category attribute value changes unexpectedly after saving category in Magento 2.4

I created a module that uses an Image Uploader UiComponent to upload an additional image to a category and save its path in the database. The controller I use to do this is basically a copy of the out ...
1
vote
2answers
78 views

Magento 2 how to override theme-adminhtml-backend view.xml in custom module?

By default Magento 2 creates more than 20 duplicates of each product image..! (why???) I have got this down to 5 using view.xml in my theme, but there is one extra set of image sizes I need to change, ...
0
votes
0answers
21 views

Issue with plugin that migrates orders

We've just upgraded a Magento 2.1.9 live website up to development 2.4.1 site. The new site has been fully redeveloped with new theme, extensions and content, and the only thing stopping us from going ...
0
votes
1answer
19 views

Magento 2 - Conflict in localisation csv file

I understand the general structure of i18n csv files that is like <key_hook>,<translation_of_that_key> but according to the documentation there is the possibility to add a module ...
0
votes
1answer
17 views

Magento 2.3 - Moving the payment option in the checkout to the first step

Is there an easy way to move the payment options out of the second step (Payment and Review) and into the first step (Shipping Address)? I have searched far and wide and there is almost zero ...
0
votes
0answers
20 views

Best way to manage sensitive custom Module Server-side properties on ConfigProviderInterface

While building a custom module for the checkout process, I need to add certain configuration properties (strings) to use as part of my plugin. These properties need to be kept "secret" on ...
1
vote
1answer
23 views

How to know if my Magento 2 is in developer mode via PHP?

I'm using Magento 2.4 to develop a new module and I need to check if the store is running in developer mode or production mode. How could I get the Magento Mode via PHP?
0
votes
0answers
38 views

My URL for payment notification result 404

I have problem with notifications URL in my custom payment gateway. I have Urlnotification class under Block folder where I put namespace MyPayment\MyGateway\Block; use Magento\Config\Block\System\...
0
votes
0answers
11 views

How to make an artifact from a module instead of installing in app/code?

I have a module from a payment system. I added them to app/code. But now, to make a simple rewrite of the module template, I need to do more than just copy it if the module was in the vendor. Tell me ...
0
votes
1answer
49 views

Magento 2.3 Customer My Account Custom Tab

I am trying to create a custom tab in Customer my account area and adding a link in the left bar to it, have followed the code structure similar to this article: https://www.mageplaza.com/devdocs/add-...
0
votes
0answers
31 views

The Text Appears with the dropdown on Custom Module

My code on a custom delivery time module works all fine but it shows the given text outside the dropdown box , I racked my brain trying to fix this and I still couldn't , please do help!! WorkingOff....
0
votes
0answers
9 views

Adding (complex) 3rd Party JS to Module

I'd like to add a large/complex JS file to my module. It's this: https://github.com/google/open-location-code From what I can tell, it's not being added at all. /app/code/Abc/Pp/view/frontend/...
0
votes
2answers
36 views

Require JS script implementation issue

I am trying to implement the SurveyJS library into my page but it doesn't seem to work at all and I keep getting "Survey is undefined" whenever I call the Survey object methods, as detailed ...
0
votes
0answers
58 views

Message queue topic “inventory.reservations.updateSalabilityStatus” is not configured

Message queue topic "inventory.reservations.updateSalabilityStatus" is not configured. i am getting this error when i click checkout or once Payment method click "Place Order" i am ...
0
votes
1answer
58 views

Getting issue to uninstall ebizmarts/MailChimp module

I try to remove Ebizmarts/MailChimp extension using the "composer remove Ebizmarts/MailChimp" this module install using composer through but getting issues at a time to uninstall can you ...
0
votes
1answer
16 views

How to setup free shipping multiple store view

I have 2 store view Suisse (ch) and France (fr) : free shipping par store view 20 in fr and 30 in ch I have found a extention fro flate rate : Magento 2 Multiple Shipping Flat Rates extension there's ...
0
votes
0answers
24 views

Why code migration tool is missing in magento 2?

Why code migration tool is missing here? -> https://github.com/magento/code-migration Is there any code migration tool or process available?
0
votes
0answers
19 views

How to add custom tab in custom module in magento 2.3.1

How to add Fields Tab custom module in magento 2.3.1 ui component. Please check screem short
0
votes
0answers
10 views

Magento custom related product module

How can we create form in admin backend that takes product_id and attributes like color=='red' or price>100 and category selection to which that related product should be added and displayed in ...
0
votes
3answers
56 views

How To Set Up Different Quantity Of Products Per Magento 2 Store View

How To Set Up Different Quantity Of Products Per Magento 2 Store View : I have same product but different quantity for the this product switch store view (FR / Suisse ) , For the Price i have found a ...
0
votes
0answers
27 views

Changing Url magento 2

I want to change www.m2.com/authors/view/index/id/1 to www.m2.com/authors/author_name.html how can i achieve this help
0
votes
2answers
38 views

what is the correct way to modify 3rd party module?

I have a 3rd party module installed in my magento. I want to do some modification. I should modify the module directly or write another module to override it? Please advise
0
votes
0answers
28 views

Magento 2.3: Override Magento_Sales invoice template phtml for use with Eadesigndev_Pdfgenerator

I am using the Eadesigndev_Pdfgenerator module like other people I've seen asking similar questions but none of the answers help. I have been trying to get this fixed for about 3 weeks and I'm getting ...
0
votes
2answers
23 views

How to add tables to database with foreign key?

I'm trying to extend costumers to add some wholesale info we need, so I'm trying to create a module with an InstallSchema to create, let's say, the table 'wholesale_info' with some columns and getting ...
0
votes
2answers
21 views

Everything in one module or split up in multiple?

Module We're creating a webshop and are mostly creating every file we need in app/code/vendor/module right now. This means we have lots of different features like widgets and logic for multiple ...
0
votes
1answer
17 views

Magento only for virtual products

I want to use Magento only for virtual products. I don't want any shipping methods, other product types, wishlist, compare, and all. I'm not sure what are all the core modules I have to disable to ...
0
votes
0answers
40 views

Magento 2 how to override role resources(acl.xml) and menu.xml?

Basically I have a Custom User Role(Restrict SL) and it is not able to access the selected role resource from role resource tree. I only want to show Store Credit Refund Resources in my custom user ...
0
votes
0answers
11 views

Custom route module not working anymore

I'm trying a page from a custom module, but the magento is showing me this message The URL you request is not accessible. This url is (usually) reachable, I made it over a year ago and didn't change ...
0
votes
1answer
40 views

Updating Module Via Composer will NOT Update Module?

When Updating Module Via Composer it will not Update Module on my localhostx? When I put this line. I get this error on my local host. composer require "route/route-m2" Could not find a ...
0
votes
0answers
19 views

401 The consumer isn't authorized to access %resources on HTTPS

New to magento. Everything worked properly until we deployed the same code to GoDADDY, added SSL. Note that all get API's are having similar errors. The REST API gives this error: THE URL: /rest/V1/...

1
2 3 4 5
61