All Questions

Tagged with
61 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

Magento2.1: How to override the template in custom module?

I want to create an extension that will give shop owners ability to edit their product image. So I understand I need this template Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml I ...
3
votes
1answer
271 views

Magento Market place submit extension with licence

I have developed Magento extension that I want to upload on Magento marketplace. I have gone through the process how it works explained Here: https://magento.com/blog/magento-news/magento-...
2
votes
0answers
45 views

Magento 2 very big problem in orders items

A few days ago I was having this problem,( main.CRITICAL: Unable to unserialize value. {"exception":"[object] (InvalidArgumentException(code: 0): ) but I searched for this error, I found it, I ...
2
votes
0answers
738 views

show currency symbol of SAR in both store view

I have store in two views Arabic and English. if I delete this code from /home/store/public_html/site/vendor/magento/zendframework1/library/Zend/Locale/Data/ar_SA.xml <numbers> <...
2
votes
0answers
344 views

custom module name is not listed in setup_module table Magento 2.1

I am running on localhostand entry point of my website is http://localhost.magento2.com/ 1)config.xml have 'Mastering_SampleModule' => 1, but my custom module is not listed in setup_module table ...
2
votes
4answers
217 views

Create Dirty Playground In Magento 2.1.6

The method outlined here to create a dirty playground doesn't work in magento 2.1.6: https://magento.stackexchange.com/a/40848/55108 It generates the error: Uncaught TypeError: Argument 2 passed ...
2
votes
0answers
54 views

Clear the Text box data in the magento 2 module when validation fails in beforeSave event

I have a textbox which gets a input from the User. I have created a validation point using beforeSave function. If the validation fails, An error displays. Along with this I want to delete the value ...
2
votes
1answer
793 views

How to create ui-component and get it in custom block?

In Magento 2.1.4, I created custom template in backend. Company/Module/Block/Adminhtml/Edit/Custom has template Company_Module::html/custom.phtml. custom.phtml code: <div class="sample"> ....
2
votes
1answer
504 views

Custom block not showing up on homepage

I just created my first own module. It is a Block that should be shown on the cms home page. Later on I want to change this into a custom navigation bar that is present on all pages of my shop but for ...
2
votes
1answer
709 views

Magento 2.1: Letter Case for Controller Actions URL Route

I tried to create a custom payment gateway by creating a custom module based on Paypal module, specically Paypal Express Checkout. I was able to replicate the route for controller actions: Start, ...
2
votes
0answers
308 views

Magento 2: implement your own captcha type

Out of curiosity, I was going through the captcha module of M2 and I noticed this interesting code in Magento/Captcha/Helper/Data.php public function getCaptcha($formId) { if (!array_key_exists($...
1
vote
0answers
19 views

Magento 2 - Search only by the product name in Mini Search in header

Search only by the product name The search engine is also almost completely unusable. You search for something like "wright wrench set" and it returns 4712 items. Instead of narrowing results, it's ...
1
vote
1answer
163 views

Magento 2 Uncaught TypeError: Argument 1 […] \DataSetup::__construct() […] must be an instance […]

I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment after adding some new modules, compiling and ...
1
vote
2answers
3k views

Magento:2 How to Image upload in custom module

Image upload working fine in tmp folder, then store in DB. I want to after saving data image stored in the base folder pub/media/events var_dump($data); " ["events_url"]=> array(1) { [0]=> ...
1
vote
2answers
5k views

how to get block data on phtml template in magento 2

what is missing in my code block data not shown in phtml template block page namespace xxxx\Trails\Block; use \Magento\Framework\View\Element\Template; use \Magento\Framework\View\Element\...
1
vote
1answer
64 views

Magento 2.1 Translate text to given locale

I have a situation where I need to save values in couple of languages, Arabic and English at a save form, So I have two fields with the name Product Name and اسم المنتج i.e Product Name in Arabic, So ...
1
vote
0answers
226 views

Update the summary section in checkout cart page

I am stuck on the one problem,I have added one product with custom price in cart using custom-module controller.Product is adding with the custom price but the summary section subtotal and grandtotal ...
1
vote
0answers
63 views

Remove modules with composer

In my current setup, I don't use all features from Magento 2 and I won't. I already tried to disable the modules that I don't need but disabling just disables the output of the specific module. It ...
1
vote
0answers
79 views

Overriding Files from third party module

I'm new to Magento 2 and still trying to get my head around the folder hierarchy. If I want a file from my theme to replace a file in a module I am doing the following. For css, original file that ...
1
vote
0answers
46 views

Call module on product-page with attribute value

I have developed a module and want to call this module on product-page with custom-attribute. I want to call this module on specific product, not on all products so to do that i will create a ...
1
vote
3answers
67 views

Block over-riding not working magento 2

I have been trying to over-ride my customer module in magento 2. I need to Add an icon to 'Sign In' on header link. I have copied vendor/magento/module-customer/Block/Account/AuthorizationLink.php ...
1
vote
1answer
59 views

How to create M2 module which filters by custom product attribute?

Experimenting with Magento EE 2.1.7 and creating modules. I've created an attribute by the name of "brand" and have assigned a few products with brand data so that I can filter them by brand name/...
1
vote
1answer
42 views

How to recreate a core magento file in my own theme?

Due to a bug in CE 2.1+ (See Here, I am trying to replace a core Magento file: \vendor\magento\module-catalog\Pricing\Render\FinalPriceBox.php with my own version. However, I have tried inserting ...
1
vote
1answer
522 views

In magento 2, zip code text box to search the store available or not

I am new to Magento. I want a text box where i can type the zip code and if the store available in that location then i need to show the products of that particular store otherwise we need to show ...
1
vote
0answers
152 views

How to show customer review on magento homepage with rating, customer profile picture?

I want show customer review on magento homepage with rating, customer profile on my magento 2 store. What is the best way to do that? Do you have any suggestion. Highly appreciated.
1
vote
0answers
482 views

magento 2.1 grid on custom tab of admin product edit page

I am trying to create a grid that should be shown on clicking a custom tab of admin catalog edit page. 1. Created catalog_product_new.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
710 views

Magento 2.1 module installation error: Component Dependency Check fails due to SSL/Crypto error

When trying to install a module via the Component Manager of Magento 2.1, I get the following error during the Readiness Check: Command "update" failed: Loading composer repositories with package ...
0
votes
1answer
139 views

Magento 2 - The product that was requested doesn't exist

Magento2.3.0 I have the following error in var/log/exception.log any idea how to come this error main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. ...
0
votes
0answers
16 views

Validate class not found from basename 'Float' - Magento 2

I am using a third party module for tier price. It was working fine but suddenly it gives error Validate class not found from basename 'Float' when I'm trying to save tier price. Any idea why and ...
0
votes
0answers
11 views

Creating an element through the admin panel and getting it in the template

How to create a separate part of the functionality in the admin panel that will look and work similarly to the products, but will be a separate functional. For example, in this part of the admin ...
0
votes
2answers
218 views

Cannot add custom topmenu link with plugin

I want to add custom links to the topmen / a submenu in the topmenu (I need the links for custom filters). To achieve this, I have created a plugin: app/code/Vendor/Module/etc/frontend/di.xml: <...
0
votes
1answer
120 views

magento 2 admin not working correctly

I used wamp to install Magento 2 but admin not working correctly, how can I fix it when I opened "inspect" I found this error
0
votes
0answers
138 views

Customer Custom Attribute gets deleted upon update in Magento 2

We are facing an issue while updating customer information from Customer My account section on frontend that is Customer Custom attributes gets deleted upon update or save customer information. For ...
0
votes
0answers
24 views

How can I call my API of Shipping when the order is placed using my custom shipping module?

I have created a custom shipping method and is appearing in the admin config page, and also is able in the customer order to be selected. Now I need to do an api call to my shipping company when the ...
0
votes
1answer
33 views

How to add custom configs variables to custom shipping method?

I have created a custom shipping method following this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ Now I would need to add a couple of extra variables to admin ...
0
votes
2answers
47 views

adding a new block with overwritten class fails

I have created a new module (to extend checkout): <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
0
votes
0answers
806 views

Magento 2:- how to show selected value in ui components?

how to show selected value in edit form in Magento admin using UI component many-to-many relation public function toOptionArray() { if (!$this->_options) { $...
0
votes
0answers
90 views

Magento 2: How to add Join query in a custom module

want to add join query in getPost function in a single view public function getPost() { if ($this->_post === null) { /** @var Post $post */ $post = $this->...
0
votes
0answers
357 views

How to Upload image in magento 2 using UiComponent

I am trying to upload Images with a custom module in Magento admin <field name="recipes_image"> <argument name="data" xsi:type="array"> <item name=...
0
votes
0answers
65 views

Find referenceContainer in Magento 2.1 module

This is my first attempt to write a Module for Magento 2.1 I have read the documentation for referenceContainer that is not very helpful, I would like to know how can I access and apply my change in ...
0
votes
1answer
671 views

Magento 2 Credit Memos : Template override doesn't work after clicking “Update Qty's” button

I am creating a custom module to simplify the Credit Memo creation for admin users. One of the features is hiding the "Return to Stock" column. I have overwritten 2 files for this: vendor/magento/...
0
votes
3answers
50 views

Use boxslider in Magento 2 in custom module

I am trying to use boxslider in my custom module. NOTE: I am in developer mode UPDATE : In network, i saw that files are loaded as 1) require.js 2) requirejs-config.js ( at top my require ...
0
votes
1answer
57 views

How to create module for module_quote

I am following this Aaron Allen's solution for my problem. Magento 2.1.7 Change Shipping Method Title method.method_title USPS Pirority Mail Day 1 He says "You need to make a module, which is the ...
0
votes
2answers
286 views

How do I set scandir to list the module web/images directory

How do I set scandir to list the module web/images directory? getViewFileUrl generates the file path but what I need is the directory path, so scandir can read the folder contents. Vendor > Module > ...
0
votes
1answer
13 views

layout over riding in account page affecting category page

I am building a custom magento theme in magento 2.1. While developing I noticed that whatever change I am making to app/design/frontend/vendor/theme/Magento_Customer/layout/default.xml is affecting on ...
0
votes
1answer
42 views

How to know if module's output is disabled in magento 2?

I have already tried these solutions : How can I check if the module output is enabled on the Magento 2? But the thing is if I use this solution, it always give 0. $this->_scopeConfig->...
0
votes
0answers
28 views

Custom Module overlaps magento default theme

I have a Sliding contact us module.This module overlaps with the navigation menu of default magento luma theme. How do i fix this issue?
0
votes
1answer
520 views

Magento 2 hide section in admin panel

How do you hide a default magento 2 config section in the backend (Admin Panel)? For example I want to hide the "Mail Sending Settings" section located in Stores->Configuration->Advanced->...
0
votes
1answer
251 views

Get notification when customer updates account

Is it possible to get an email notification to the admin of a magento 2 store whenever a customer changes his account details like address or something? Is there some kind of hook I can make a module ...
0
votes
0answers
1k views

Magento2: Recoverable Error: Argument 1 passed to ::__construct() must implement interface

I am trying to make a shipping method based on percentage. Can someone explain to me whats wrong with the following? I get this error message: main.CRITICAL: Recoverable Error: Argument 1 passed to ...