Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
0
votes
2answers
67 views

How to override vendor\magento\module-sales-sequence\Model\Sequence.php

I want to override file in vendor\magento\module-sales-sequence\Model\Sequence.php Magentsales\Modulesequence\registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( ...
1
vote
1answer
46 views

How create Custom Pdf in magento 2 Like invoice , Shipment

I want to create custom pdf with custom text or media can anyone suggestion me any best link or some help Thanks
1
vote
0answers
20 views

filter product list follow condition in custom module magento 2

public function createCollection() { /** @var $collection \Magento\Catalog\Model\ResourceModel\Product\Collection */ $collection = $this->productCollectionFactory->create(); if ($...
0
votes
0answers
30 views

Magento2: how to add fulltext search query in block page

Magento2 : How to add a full-text search query in a block's function within a custom module? This is what I am trying so far: $postCollection->addFieldToSelect('*'); if($search != '') { ...
0
votes
0answers
19 views

Products QTY and Add to Card in Admin

I need to create a Custom Module for update fast QTY (increase or decrease) in stock. My customer don't want to open each product and go to inventory and type the current stock and save. For this I ...
0
votes
0answers
18 views

Magento 2 change store logo with Module

I create a new Module and do some customization. Now I want to change my store logo with this module. I find the file:- vendor/magento/module-theme/view/frontend/layout/default.xml This file ...
0
votes
0answers
50 views

Magento install B2B module causing issues

I am trying to install the module B2B module in my commerce Magento project. However, I am getting below error Your requirements could not be resolved to an installable set of packages. Problem 1 ...
0
votes
1answer
24 views

Magento2.2.5 - Amazon Seller channel Module error

We have a magento 2.2.5 based website and just tried installing the Amazon Sales Channel module (https://marketplace.magento.com/magento-module-amazon.html) however after installing it and running the ...
0
votes
0answers
22 views

Magento 2 custom module select query doesn't work

I have the following query: SELECT `main_table`.*, `secondTable`.* FROM `table_one` AS `main_table` LEFT JOIN `table_two` AS `secondTable` ON main_table.blog_id = secondTable.blog_id WHERE (...
0
votes
0answers
11 views

How can I create a file that will override the core file containing the header section design of the frontend from my own module in app/code

How can I override the header section of the file containing the name of the default message and sign in options from my own module under app/code.
0
votes
1answer
36 views

Error when observer is executed after order is placed

I created a module in order to save order data to a custom table: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
2
votes
1answer
172 views

Custom module causing “Circular dependency” error after upgrading to Magento 2.3.2

I have a custom module with a plugin for Magento\Framework\Encryption\Encryptor that seems to be causing issues after upgrading to Magento 2.3.2 (from 2.3.1.) When I disable the module, everything ...
0
votes
2answers
38 views

Magento 2 : We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer your_db_user@% does not exist

I have migrated a Magento 2 site to a new server and getting the below error when placing order We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer ...
0
votes
1answer
31 views

Magento Observer to block spam orders not working

I'm facing some issues with orders placed by bots. I noticed that all orders are made by a specific phone number and also by a specific street. So I looked for a way to block orders that are made ...
0
votes
0answers
74 views

Newsletter subscribe/unsubscribe email notification event observer

I am writing my own admin email notifications module. So far it has New Order and Low Stock observers set up and working just fine. I want to add the Newsletter subscribe/unsubscribe observer to it ...
0
votes
1answer
18 views

How to place custom template (phtml) file in local module direcotry instead of default template directory

I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages. ...
0
votes
2answers
13 views

Magento 2: Getting Error When Adding Customer Address Attribute

I'm using Magento 2.2.3, i need to add Customer Address Attribute, but when i run setup:upgrade I'm getting error of Wrong Entity ID. Here is My code: CustomerAddress\Attribute\Setup\InstallData.php ...
3
votes
1answer
50 views

Magento 2.2.5 Newsletter (/newsletter/manage/ ) management generates blank page

Newsletter (/newsletter/manage/ ) management generates blank page
0
votes
1answer
25 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
39 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
21 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
21 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
19 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
19 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
40 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
63 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
71 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
135 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
27 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
29 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
45 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
52 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
34 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
39 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
61 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
32 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
40 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
91 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
80 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
12 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
152 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
70 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
31 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,...
1
vote
0answers
14 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
117 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
43 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
14 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
45 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\...
0
votes
1answer
109 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?