Questions tagged [module]

Questions about developing custom modules

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

How to run static tests for a single/specific module? [duplicate]

I am looking for a way to run static tests for a single module as my application is huge. So running static tests frequently and checking code consumes a lot of time. As per my knowledge, Magento ...
3
votes
0answers
44 views

in custom module ajax-loading form translations not working magento 2.3

in ajax-loading form Change English it to italiano and it works but italiano to English not working proper. once transalte to italiano then switch to english store not transalte to english ...
3
votes
0answers
26 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
3
votes
0answers
32 views

Magento 2 - How to create a custom product listing grid in admin?

I want to create a custom page for product listing in admin like the image using my custom module. How could i do that? If anyone have any solution please lighten me up.
0
votes
0answers
25 views

How to add my whole existing simple products catalog to configurable products with different colors/swatches?

So I would like to know the most optimal way how I can merge my existing simple products (let's say 1 product, in 5 different colors, so 5 simple product pages) to 1 configurable product. I would also ...
0
votes
0answers
27 views

Looking for email only signup extension for magento 2

Desired feature: When new user clicks on sign up - There is only one available field - his email address, which he has to fill in. The new user, after entering his email gets already redirected to ...
0
votes
1answer
45 views

Convert Magento 1 Script to Magento 2 (Get Order ID by custom Block)

I am trying to get the ORDER ID, BaseSubtotalInclTax, BaseShippingInclTax, and TaxAmount on the success.phtml page by using custom block. On Magento 1 I had to put the following script in the success....
1
vote
1answer
85 views

Instagram pictures on homepage [closed]

I have to create a custom module (or anything else what let me do what i want to), which will display few latest pictures from my instagram on homepage. I do not know how to use Instagram api to do ...
2
votes
1answer
123 views

Email layout handle phtml doesn't update in magento 2

I am developing a little custom Magento 2 extension that sends emails to admins on certain events. In layout handle's phtml template file I originally made a spelling mistake, which when corrected ...
2
votes
0answers
14 views

Allow Another Free Payment Method Magento 2.1.0 [closed]

I create a payment module for Magento 2.1.0. My module works very well. But I need to give another free paid method with the same module... This is possible? Thanks for all.
0
votes
0answers
237 views

Magento 2.3.2 Invalid security or form key. Please refresh the page error while accessing custom back end module?

I have created custom admin module in magento 2.3.2. when I try access the module it is showing "Invalid security or form key. Please refresh the page" Can you please help me on this ? as per ...
0
votes
0answers
28 views

Magento2.2 Getting error after upgrade module

I am using Magento2.2 after upgrade module than comes this error on frontend side if any one idea reply me Class Amasty\ShopbyBase\Helper\PermissionHelper does not exist
0
votes
1answer
85 views

magento 2 system configuration with a custom .phtml template?

in system.xml: <field id="custom_field" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Custom Field</label> <...
1
vote
0answers
151 views

Magento 2 How to get category tree with checkbox to select only one category?

I want to call the categories into my custom admin form for admin. How can I call that? I want to show all categories into my custom form in admin and it will allow selecting only one category. I ...
0
votes
0answers
60 views

Adding custom JS to existing module causing errors

So I've been trying to add some custom javascript to a module, however when the JS has added it works fine in itself, but it causes a lot of errors for a lot of different scripts, and I can't figure ...
2
votes
1answer
42 views

Looking for inspiration/module meant for guiding customers step-by-step

I'm looking for a module, or inspiration for creating a module that can do the following: I would like to create a page inside my Magento 2 store which is named "Wizard". This Wizard can guide ...
1
vote
2answers
43 views

Display custom block on Homepage

I have a problem with custom module and displaying custom block template on homepage. I create a custom module to show product form specified category. my config.xml file: <config> <...
0
votes
2answers
70 views

Magento2 : Custom Magento extension to display info on success.phtml

I am trying to Create my first custom extension. Unfortunately i think that i miss something. In the magento 2 root directory i have the following files: /app/code/Clud7/Skroutz/registration.php ...
0
votes
1answer
36 views

Magento undefined variable this in custom block template

I have created a custom block and when I try to access a method from my block I get: exception 'Exception' with message 'Notice: Undefined variable: this­ in /Applications/XAMPP/xamppfiles/htdocs/...
0
votes
0answers
74 views

Magento 2 show pagination in admin custom module

I have created a module in which admin form I have shown product collection I want to paginate it. I have used a block and in which I have created Product collection. <?xml version="1.0"?> &...
3
votes
2answers
112 views

Magento2: Custom module not working

I have created new module but it is not working.Please Help me on this. registration <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\...
0
votes
2answers
89 views

Contact Form in Magento 2 Custom Module is Not Sending Email

I am currently trying to create a custom form in Magento 2.2.7. The purpose of this contact form is to provide our trade (wholesale) customers with a separate contact form to our retail customers (i.e....
0
votes
0answers
41 views

How do I add product data and directly to the database, which tables need to be updated in what order?

TLDR: Migrating Opencart to Magento, currently have 300+sku's and 100k+ product pages. What is the best practice for storing complex product data and programmatically adding and maintaining it ...
1
vote
0answers
273 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 ...
3
votes
0answers
71 views

How to reinstall module without any downtime or trigger InstallSchema.php on already installed module?

I am trying to reinstall a module on Magento ver. 2.2.8 to trigger the InstallSchema.php of a module without any downtime. My question: Is there a way of reinstalling the module or at least running ...
3
votes
1answer
43 views

Magento2 : How to call shared package in another module composer.json Magento 2 Market place

My module A depends on B.I uploaded A in the marketplace and B as a shared package. I getting following an error while uploading an A module while submitting in the market place Installation failed,...
2
votes
0answers
21 views

EU cookie compliance

I'd like to have a (if possible) free magento 2 extension to deal with EU Cookie Compliance (RGPD). This module must allow the user to customize it's cookies. Which one would you recommand ?
1
vote
1answer
133 views

Custom modules disappeared after 2.2.9 upgrade

All custom modules have disappeared after upgrade to 2.2.9 from 2.1.9. When I run bin/magento setup:upgrade, last message is "Nothing to import." but the custom modules are not enabled and not added ...
1
vote
2answers
52 views

luma-theme .phtml file override in Custom Module

i want to override this file magento_dir/vendor/magento/module-theme/view/frontend/templates/html/collapsible.phtml And do not want to make custom theme like app\design\frontend\Magento_Theme\...
0
votes
0answers
16 views

Magento 2.3 Cache / Clear Fields

In my checkout steps I have created a few custom fields, and after I fill them out complete the checkout process and am back in store and put a new item in cart and proceed to check out, the same ...
3
votes
1answer
47 views

How to send email by custom form

I created custom form module, if customer submit the form i need to get all values by email. My module files are Customform\ReturnRequest\Block\Index.php <?php namespace Customform\...
1
vote
1answer
268 views

How to remove GraphQL from Magento 2.3?

I'm not planning to use GraphQL in my Magento 2.3 and I would like to remove it at all for now, not just disable it. How could I do it?
0
votes
1answer
30 views

Magento 2 - First Module - AJAX

I'm creating my first module which has been going well, I've managed to create the controller, block and route and can access the page. I'm now trying to perform an ajax query and return some product ...
4
votes
1answer
34 views

Is it good practice to get product collections in helper function and calling in phtml file custom module Magento 2

Hi all, i wanted to know either is it good practice to get product collections in helper function and calling that function in phtml file within custom module Magento 2 Because in my case ...
0
votes
0answers
49 views

Shipping method restrictions by category programmatically magento 2

I want to add Shipping method restrictions by specific category in custom shipping method
1
vote
1answer
48 views

How to create a new price type?

I am now struggling to create a new price type on Magento 2.2.7. Below are what I have tried so far. I have created a module Foo_Bar. And then, first of all, inject the new type into the price pool: ...
5
votes
0answers
27 views

create invoice module same as Admin side in magneto 2 [closed]

How to Create an invoice module the same as the Admin side in Magento 2?
1
vote
3answers
117 views

Magento 2: How to completely hide price from the store

I want to completely hide the price from the store. Be it in the catalog, product, minicart or cart. I need to do this through a custom module. Any help is appreciated. Thanks!
0
votes
1answer
240 views

Magento 2 Get data to admin UI Form without key and collection

Is there a way to get data from a DataProvider to my UI Form component, without having a collection or a key? My DataProvider currently only has a "getData" function and the form is rendered, but I ...
1
vote
1answer
100 views

When ViewModel class need to create in Magento2?

I have followed Magento_Catalog Module and I have found ViewModel folder there. Can anyone please explain when we need to create ViewModel classes when we creating our custom module?
0
votes
0answers
34 views

Admin tab refresh Issue

I have created a custom tab in magento2 Admin in my custom module. On click of this tab (It is the 4th tab) in the section area I have added a grid & a form. My issue is when I search any result ...
0
votes
1answer
56 views

Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/Megamenu/Model/Config/Source/StoreCategories.php on line 284

I have this error when I add special characters to menu or categories like "&" It's from module Ves Megamenu. Warning: Invalid argument supplied for foreach() in /var/www/html/app/code/Ves/...
0
votes
3answers
117 views

Magento 2.3 Installation error at 66%

Magento 2 Installation error at 66% Hi everybody ! I am having an issue installing Magento 2. I followed every step and everything went fine until installation. The installation stops at 66% ...
0
votes
0answers
25 views

Replace add to cart button [duplicate]

Hello I find module to replace text in button add to card and this is no working. Please help this is code Magenticians/Mymodule/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"...
1
vote
0answers
36 views

Where is this text coming from at the end of my checkout URL?

I'm adding a "buy now" button to my site. I'm using the code from here. When I click the button, my site tries to go to example.com/checkout/#93=4, which then results in it going to example.com/...
1
vote
1answer
36 views

How to set varchar on installschemas

I would like to add a new column inside the magento2 database. Write now i add a \Magento\Framework\DB\Ddl\Table::TYPE_TEXT as the column type. here is my code if(!$installer->getConnection()-&...
0
votes
1answer
116 views

How can i add block to existing layout in catalog_category_view.xml?

I want change layout of catalaog_category_view.xml but i can't. I override block category.products and it's work but how can i add my own block to existing category.products block? Because i want add ...
1
vote
0answers
55 views

Why would you add the modules array in app/etc/config.php to source control?

As of Magento 2.2 it's recommended to add config.php to your source control to facilitate pipeline deployment. I have some questions and issues with this. I'm hoping somebody can share their ...
2
votes
1answer
35 views

Why module go to vendor directory if install using composer Magento2?

Can anyone please tell me the reason why module go to Vendor directory when install using composer? Please refer me a link for this reason. In my custom extension, I am using this code in my ...
2
votes
1answer
31 views

Blank Magento Page without error

After enabling the module created, browsing back to the page gives me blank page instead. Viewing the source of the page gives me basic html tags.