Questions tagged [module]
Questions about developing custom modules
3,152
questions
0
votes
2
answers
20
views
Magento 2: how to specify the module name in custom theme?
I need to override success.phtml file from module vendor/magento/module-inventory-in-store-pickup-frontend/view/frontend/templates/success.phtml
I'm not sure how to get the module name from module-...
0
votes
2
answers
12
views
Can not add2cart grouped product when 1 input field is diabled
I need to disable the input field when customergroup = 0 or 1 and quantity is < 0 but when I add the argument 'disabled' to the input, the add2cart button does not put the other available items in ...
0
votes
1
answer
23
views
Overriding a .phtml file in custom theme doesn't work
I've been trying to override D:\Projects\PMM-M2\public_html\vendor\magento\module-checkout\view\frontend\templates\success.phtml by placing the file in my custom theme at location D:\Projects\PMM-M2\...
0
votes
0
answers
14
views
Why dropdown items are displayed in the wrong order?
I created a module with a custom dropdown attribute, but the numbers are not displayed in the right order on the product page. How do I fix this?
InstallData.php
<?php
namespace Test\RingSizes\...
0
votes
1
answer
32
views
Magento 2.4: How to change text "Order #" to "Confirmation #" in printed page that appears post order placement?
It happens too often that customers call or email, worried that there were two orders created when they only placed on order. The reason this happens is that Magento issues an order number such as ...
0
votes
0
answers
9
views
how to add Sumsub Developer Hub js file include in magento 2
How to add Sumsub Developer Hub sns-websdk-builder.js file include in cutome module in magento 2
https://developers.sumsub.com/web-sdk/#generating-access-token
already add but it's not working our ...
0
votes
1
answer
14
views
Magento2 Custom Page Builder, doesn't render widgets on frontend
I have a problem with the page builder on my custom module. In the adminhtml, everything is working fine, and my code propeller is saved to DB, but when I'm trying "echo" my code, the widget ...
0
votes
2
answers
26
views
Magento 2 Module Events
I'm new to magento module development and trying to write my own little module.
Unfortunately, I'm having trouble understanding how to connect events to a REST request.
What I want to achieve:
...
0
votes
0
answers
20
views
Cart Price Rules by condition
In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added.
\Magento\Quote\Model\Quote $quote,
\Magento\Quote\Api\...
0
votes
0
answers
18
views
Magento 2 : Render Product Using Custom Sorting Option
I want to display product on Qty Desc order but shows no product to display. I run sql query used in sorting and it working in as per qty. I have tried below code.
$collection->setOrder('price','...
0
votes
1
answer
35
views
Magento 2.4.2: The following modules are outdated: Perfectmakeupmirrors_PmmHead schema: current version - none, required version - 0.0.1
I just created a custom module to add a metatag in a category page of our Magento site by making use of event and observer. When reloading the category page, below is the error I see. I re-ran the ...
0
votes
1
answer
32
views
How to use theme's _variables.less file in my custom code module?
I have written a custom module that is located in the /app/code folder. My less file is located in /app/code/<Vendor>/<Module>/view/frontend/web/css/source/_module.less. How do I include ...
0
votes
0
answers
31
views
Button click event
I am looking for a jquery script that will run whenever any button is clicked. The button can be any. Once the script is completed then the button will continue to work as normal. I just want a Jquery ...
0
votes
0
answers
105
views
error install module with composer: PluginManager.php(273) : eval()'d code line 188
I have a problem when installing a module with composer, no matter which module, I get the same error. (In PluginManager.php(273) : eval()'d code line 188)
Magento v2.4, PHP 8.1
run
composer require ...
0
votes
1
answer
45
views
because the "Hello World" module is not displayed magento 2.4.3
I am practicing with the development of mageplaza modules. following the steps of the blog, but I don't know if my InstallData.php is badly created, but nothing is loaded to the database. I have the ...
0
votes
0
answers
39
views
How to create multiple file upload in magento 2.4.3-p1
I want to add multiple file upload option in the product edit form, and display it in the product grid in admin, and that uploaded files are display on the product details page in tab. can anyone have ...
0
votes
0
answers
14
views
How to upload multiple files from admin product edit page and disaplay it on product details page Magento 2
I need to develop functionality in which i want multi-file upload control on the product edit page in back-end and that uploaded files are displayed on the product view page in front-end.
can anyone ...
0
votes
1
answer
30
views
How to change filter "and" to "or"?
version : Magento 2.4 safira
I want my website show every products related to filters I choose.
If I choose multi filters, I only got products fulfilled all conditions.
Is there any way I can edit ...
0
votes
0
answers
25
views
how to make custom tier price in add product feature of magneto 2
I want to make a tier price programmatically for quantity-based shipping prices
like the screenshot below, can anybody help me in developing this feature
0
votes
1
answer
30
views
Magento installing different modules to those stated in composer.json
I have successfully updated to 2.4.3 and in doing so have upgraded a number of modules. For some reason, however, Magento is ignoring the module versions stated in the composer:
Two modules for ...
0
votes
1
answer
22
views
create custom module, get existing module configuration
I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key.
how can I ...
0
votes
0
answers
9
views
Magento Native Import Module
Magento has a built-in module for product import and export. I am trying to debug the product import process. Can anyone guide me on how to debug the process? I have tried debugging in ...
0
votes
1
answer
23
views
Control Variabile Print fron Backend
I have created a simple extension. In that, I add blocks on the product page.
On the product page, I am printing some variables through a custom file in phtml above the add to cart button. Example:
$...
0
votes
0
answers
13
views
get all orders whose products contain specific attribute in Admin - Custom module
I want to create a module magento that contains a table to display orders and in that order there is a product containing a specific attribute. I have looked up the solution but there is no concrete ...
0
votes
0
answers
24
views
change product price based on the delivery datetime
I am new on Magento.
I would like to ask how do I change the product's price based on delivery date time.
In my Magento's development, the customer can choose a store, and then select "pickup now&...
0
votes
1
answer
27
views
Magento 2 layout XML reference block added in CMS page
I have a CMS page, and in certain place it references a custom block from my module as such:
{{block class="My\Notification\Block\NotificationForm" name="notification.form" ...
0
votes
0
answers
12
views
Custom attribute image magento 2
I am trying to create a method to upload a custom image to the product.
I have used the following code:
$this->moduleDataSetup->getConnection()->startSetup();
/** @var EavSetup $...
0
votes
1
answer
22
views
Append ACL resource under parent custom ACL resource from another module - "Could not create an acl object: Resource id already exists in the ACL"
Using two modules: Vendor_ModuleA and Vendor_ModuleB, where Vendor_ModuleA will be a backend main menu/ACL module.
Other modules (in this example Vendor_ModuleB) should use the ACL menu of ...
0
votes
2
answers
63
views
Why is this code slow
We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
0
votes
0
answers
63
views
Extension Layout won't work when using a custom theme
I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page.
My extension layout file isn't being executed - instead it just executes my custom ...
0
votes
1
answer
36
views
Can't add block below add to cart button
I am new to Magento and would like to add a custom block underneath the 'Add to Cart' button.
Here is my catalog_product_view.xml file:
<?xml version="1.0"?>
<page xmlns:xsi="...
0
votes
0
answers
14
views
Magento 2 - How to install composer.json of a third party module?
I created a new extension. I have this composer.json in my project:
app/code/Company/App/composer.json:
{
"name": "company/module-app",
"description": "...
0
votes
0
answers
15
views
Magento 1.9 custom modules not working after site cloned
I have just duplicated my Magento website to create a development website, everything looks to be working on it apart from the custom modules. Does anyone know why they would not be working?
Thanks
0
votes
0
answers
47
views
Magento 2 : How to create new skeleton module using Bash script?
I am looking for an bash script which will create the basic new module skeleton. I've found this post useful but it only works from the root. Any solution?
Thanks in Advance!
0
votes
0
answers
22
views
Display custom PopUp on clicking upload button in custom grid
I created the image type field in the grid edit form. Now my requirement is to display the custom Popup when the admin will click on the upload button. It always goes to the local directory for Image ...
0
votes
2
answers
31
views
Magento 1.9: Sql setup Stripe module not execute
I'm installing throught composer the Stripe module, the problem is that when I installed the site, where the module work, crash because can't find the table in Database.
I don't know why the setup sql ...
0
votes
1
answer
56
views
What's are differences between Magento 2 libraries and Magento 2 modules?
The issue is there's no information about this topic in the Magento 2 documentation or anywhere else, so what's a Magento 2 library and what's its main difference compared with a Magento 2 module?
The ...
0
votes
1
answer
36
views
How to avoid JS minification in an external file add via requirejs-config.js?
I have a custom module called Quicklink it has its own JS files and external JS files too, I've added an external JS from a third-party CDN, but when I enable the JS minification in a Magento 2 clean ...
0
votes
1
answer
30
views
Capture payment online after create quote programmatically
I need programmatically to capture payment online using the PayPal Payflowpro method and credit card details. Also, create an order number and invoice after creating a quote then setting quote_id in ...
0
votes
0
answers
37
views
How to send inquiry email to customer on admin reply in magento2.4.3
Hello all magento developers, I want to send inquiry email notification to customer when admin can add reply to customer inquiry in magento 2.4.3.
can anyone have idea then please share here, Thank ...
0
votes
1
answer
21
views
How to create a custom module after installing magento docker image?
I have successfully set up a magento docker image with the help of Adobe DevDocs.
But when I tried to create a custom module under the directory of /app/code. I met lots of error when I tried to ...
0
votes
1
answer
115
views
Magento 2 Setup Custom Module Download Using Composer
GitHub Link -> https://github.com/mahesh-code-work/Module-Learn/
I create one small basic module and try to install using composer.
How to set up the whole setting and what is the right way to do ...
0
votes
0
answers
22
views
create custom module for customer inquiry magento 2.3.5
I want to create inquiry form in which customer can give the replay and admin can send details .
I want to display on product page on click of Button and in customer account section.
0
votes
1
answer
34
views
Add pagination in custom module by ajax call
I have developed Custom module in which data retrieving from db perfectly, but i want to show first ten data(10 rows) at first page and at second page display next ten data and so on by Ajax call.
0
votes
1
answer
57
views
Magento 2.4 Get tracking Information from order/shipment [closed]
Track My Orders Using Order Status in Magento 2
Pending as Ordered
Processing as Accepted
Shipping as On It's Way
Completed as Delivered
0
votes
1
answer
26
views
Dynamic category module for price range based category
Thanks in advance.
I am looking for a script or module that will run via cron and remove products from a category if their price is above 5 USD also it will add products that have a cost up to 5 USD.
0
votes
1
answer
47
views
magento2 custom module installation from git using composer
how to install my custom module on another magento2 project from git using composer
I tried with composer config ->this works fine.
when I run composer require its shows an error
[RuntimeException] ...
0
votes
1
answer
176
views
Magneto 2: How to Add custom text after product image in product list & grid view page via custom module?
How to Add custom text after product image in product list & grid view page via a custom module?
In this picture custom text, I want to add before the product name
0
votes
1
answer
25
views
Magento doesn't recognize module
I have created a new module but when I run the command magento module:status I couldn't see my module name either in the enabled or disabled list
my registeration.php code :
<?php
\Magento\...
0
votes
3
answers
72
views
How to sort modules in config.php alphabetically?
Is it possible to sort the output of the modules node in config.php alphabetically? This way git versioning won't get messed up since Magento sometimes changes the sorting.
<?php
return [
'...