Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [module]

Questions about developing custom modules

2
votes
0answers
12 views

Magento 2.3 - AttributeMerger plugin is updating incorrect element

I am trying to either add an additional class "browser-default" to the country_id select field, or replace the existing "select" class with "browser-default" I put together a quick AttributeMerger ...
1
vote
0answers
17 views

Add customer attributes to Magento shopping cart rules

I have customer attributes added using a module and I need to add add them to Promotions, especially for Shopping Cart Price Rules. I found this tutorial, but looks like I'm doing something wrong, ...
1
vote
1answer
19 views

Magento 2 Import/Export Options Missing

I've installed Magento 2 and under System->Data Transfer there are no options. Do I have to enable them somehow?
2
votes
0answers
12 views

Magento 2: How can I relate/link custom module data to products like Up Sell or Cross Sell?

I have created modules to store complex information like Dangerous Good Informations (UN-No, Proper Shipping Name, Class, Packing Group etc) or Customs Numbers (Taric Codes). Now, I want to relate/...
2
votes
1answer
25 views

Magento2 : How can I add filters to frontend so it should work like a backend filter?

i'm working on adding custom filter for this custom module i want to add filters (Q_ID,Q_STATUS,Q_PRICE) it would work like back end filter Magento admin how i add filter and any idea's??
1
vote
1answer
28 views

Magento2: How to get simple products Assosiate to configurable products [duplicate]

I want to get simple products Associate to configurable products in custom module using factory method. (not using object manager)
1
vote
0answers
22 views

How to change icon of custom menu?

I try to change the icon on my custom menu, and I follow steps on Ibnab post, but doesn't function for me. I looked on every post in this page , but I don't know if all steps work on my Magento 2.3 ...
1
vote
0answers
16 views

Manage Brands / Manufacturers in admin. Show brand logo and story in Product Page

I am looking for a best practice to show content about the manufacturer/brand on a product page. For example brand logo and story/description. This could be achieved just by importing the description ...
0
votes
0answers
20 views

How to set number of images in Instagram feed plugin in Magento2?

I want to set minimum number of images in Instagram feed plugin, in the plugin it is asking for number of images but I want to put the condition that there should be minimum 6 numbers of photos in ...
0
votes
1answer
24 views

Overwrite Controller from vendor module in my custom theme [closed]

I have a controller (part of a module included via composer) and I'd like to overwrite it as part of my theme, how would I go about doing this? I understand how to overwrite XML files and .phtml files,...
0
votes
2answers
30 views

Magento 2 override admin product-gallery.js file in custom module

I have created one custom module named Hs_Mageenhancement and want to override below admin js file. magento2/vendor/magento/module-catalog/view/adminhtml/web/js/product-gallery.js I have created ...
2
votes
1answer
51 views

How I can solve the di:compile error in Magento 2?

When I run setup:di:compile I got error Errors during compilation: Vendor\CustomRegistration\Model\Customer\DataProvider Incompatible argument type: Required type: bool. Actual type: \Vendor\...
2
votes
1answer
29 views

How to add select state dropdown field in custom phtml form and save in database(frontend) in magento2.2.5?

I have added a select state dropdown field in my custom phtml file. But not able to save that value in database in Magento2.2.5? /var/www/html/magento2/app/code/Amy/Contactform/Block <?php ...
2
votes
2answers
30 views

Magento 2 : How to override a custom module which install via composer?

I have installed one custom module using composer as usually that module was installed in vendor directory is there any way to override phtml file in the same module like name but on app/code module ...
1
vote
1answer
17 views

How to create select dropdown field in phtml file dynamically in Magento2.2.5?

I want to create a select dropdown field in contact form(phtml file) which must be called dynamically in magento2.2.5? Refer screenshot This is my from I have override my contact form, I want a ...
0
votes
0answers
19 views

Magento 2.3 Return Custom Shipping Methods

Magento 2.3 I have an external REST API that will return a list of shipping methods based on zip code, how should I set up my custom module return the results in a list of shipping methods to pick ...
0
votes
0answers
16 views

Magento 2 - Problem with Payment Gateway - Not redirect

the bank of my client gave me a module to be installed on my magento 2.2.4 which enables the credit card payment system linked to that bank. they also gave me ID, SIGNATURE and URLs, but when I try ...
3
votes
1answer
51 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 ...
4
votes
1answer
39 views

Creating custom widget, how to use existing block like “RECENTLY VIEWED PRODUCTS” for a custom block, so that It should support all magento themes

registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Relabs_LabAPI', __DIR__ ); module.xml <...
2
votes
1answer
70 views

How to override mini-cart default template html file?

I have Magento 2.2.4 version, And I want to overwrite Magento_Checkout/template/minicart/item/default.html file in my custom module. For this, I created require-jsconfig.js file at below path /app/...
2
votes
1answer
54 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
3
votes
1answer
24 views

Create an Attribute Set and create a Product Attribute in Product Details Group for only One Attribute Set

I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code. The original post and code can be seen here I am able to create an ...
3
votes
1answer
35 views

How to make and install my module via composer with two private repositories in magento 2

Problem Description: I have created two private repositories in github under same user name. Each repository contains different modules. But while trying to install the package via composer throws ...
1
vote
1answer
56 views

Magento Marketplace extension Installation & Varnish Test failed composer memory limit error

I am trying to upload one module in Magento Marketplace but in technical review the Installation & Varnish Test is failed http://prntscr.com/mr5lt5 when I view the report then I see below error. ...
1
vote
1answer
37 views

How to override Customer registration fields to custom module in magento 2

I want to override Customer registration Fields to my custom module i copied the /public_html/vendor/magento/module-customer/view/frontend/templates/ and Layout to app/design/vendor/child_theme/...
2
votes
1answer
38 views

Magento 2.3 - Overide \magento\zendframework1\library\Zend\Locale\Data\xx.xml

Is there anyway to override and not change directly the \magento\zendframework1\library\Zend\Locale\Data\xx.xml ? This is so that I can change the decimal denoter from "," to "." for stores that ...
1
vote
1answer
46 views

How to find the file in getchildhtml('customer') in magento 2

How i find this file and i want to add some fields here <?php echo $block->getChildHtml('customer_form_register_layout3');?> i search in app/design/theme/childtheme/custom module but ...
1
vote
0answers
14 views

How to create custom module with inhertit the Customer registration fields to my module page - Magento 2?

i want to copy the customer registration fields to my custom module page can i copy vendor/module/customer to my module or else how i can inherit to my page Note: All the attributes are ...
2
votes
0answers
25 views

How to add fields to new custom module page in magento 2

Here the registration fields i need this fields to new custom module pages how to do ?? can i inherit this all fields need fields 1.phone no 2.company 3.street address note: this all fields ...
-1
votes
1answer
44 views

Warning: strpos() expects parameter 1 to be string, array given in vendor/magento/module-eav/Model/Entity/Attribute/Source/Table.php on line 157

1 exception(s): Exception #0 (Exception): Warning: strpos() expects parameter 1 to be string, array given in /home/equpo/public_html/demo/vendor/magento/module-eav/Model/Entity/Attribute/Source/Table....
6
votes
0answers
173 views

Layout Not getting Called In Custom Module

I have developed a custom plugin that used to add a custom made shipping method. For that custom made shipping method I had override the existing templates. It was working fine but changing the server ...
2
votes
1answer
17 views

How to call a function which is in a overwritten controller block?

I have developed a module to overwrite a controller. I have the next route: Lecasa/Javinewlistproductcontroller/Block/Catalog/Product/List.phtml This List.phtml file is: class ...
2
votes
1answer
71 views

Magento 2 : Eav module record can't save in custom module table

I create custom EAV module. app/code/VendorName/ModuleName/Model/ResourceModel/Mainpage/Collection.php <?php namespace VendorName\ModuleName\Model\ResourceModel\Mainpage; class Collection ...
1
vote
2answers
24 views

Getting Custom Collection without some fields

It is magento 1.9.4.0 and i need a array with some nodes. When i get the models collection with: Mage::getModel('nstok/nstok') ->getCollection() ...
3
votes
0answers
47 views

Magento 2 : How to create an EAV entity module?

I want to create EAV entity module. I refer this below links. I want to do same in Magento 2. How to create an EAV entity? https://www.youtube.com/watch?v=nr8xuFA_XPU This youtube link is perfect. ...
1
vote
0answers
16 views

Multiple magento modules in the same repository

Can I have multiple magento custom modules in the same github repository? This is the kind of directory structure that I'm talking about |-repository |-custom_module1 |-registration.php |-...
1
vote
1answer
30 views

How to change price, the price calculation in cart through custom module Magento 2?

Here in my custom module: This product with 50 quantities price is 6,000 But when I add to cart this multiplies So how I can fix this? Can I use observer to change this or are there any ...
1
vote
0answers
14 views

Error loading custom module listing page

In listing page from a custom module, i got this error when load more than 50 results. Attention Something went wrong. Something went wrong with processing the default view and we have ...
0
votes
1answer
13 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...
1
vote
1answer
45 views

How to Programmatically Reorder in Magento 1.x in from Admin

I want to create a custom module which creates duplicate order from the existing order. I want to show a simple button (like Reorder default Magento) which create current order duplicate order in ...
0
votes
2answers
50 views

Magento 2.3 - Product stock alert not display

I use Magento 2.3 and I create a custom theme based on Luma theme. I enable the Magento_ProductAlert module from backend but the message "notify me when this product is in stock" is not display in ...
1
vote
1answer
34 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". ...
2
votes
1answer
21 views

Disable Magento RSS module - Magento 2

I have been disabling modules that we don't require and as anyone who has tried this knows some cannot simply be disabled because of dependencies. There are a number of modules we have absolutely no ...
1
vote
1answer
33 views

Translation of a module

How can I translate an extension (module) ? I tried to create the i18n folder and create the it_IT.csv file. But it does not work, how can I do translation?
1
vote
0answers
24 views

How to enable Two Factor Authentication for Customer Accounts

I would like to enable two-factor-authentication for Customer Accounts, but as per the documentation (https://docs.magento.com/m2/ce/user_guide/magento/extension-install-two-factor-authentication.html)...
1
vote
0answers
7 views

Creating custom 2FA provider

I'd like to enable the 2FA extension but I'd like to write my own provider (e.g. not Authy or Google Authenticator). Anybody who can point me in the right direction? I have been working with ...
1
vote
1answer
15 views

What is a Module?

I'm learning about Magento 2 and am curious about the term "module" and how it relates to Magento. What exactly is a module, both in general terms and specifically? If I understand correctly, a ...
1
vote
1answer
26 views

Magento 1.9.4 - Plugin recommedation for changing category prices

Good morning, i need a module to change all product prices for a specific category. Example: I want to increase / decrease the product prices for all articles of the category "towel" by 2% or 3,5€....
1
vote
0answers
45 views

Magento 2 admin panel throw error

Order saving error: Public hash should be defined I am go to magento 2 admin panel and sales and go throw places order this error is coming how to slove it?
3
votes
0answers
42 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...