All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
0answers
38 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 ...
0
votes
1answer
33 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. ...
1
vote
3answers
781 views

Magento 2:- How to get customers now online?

Magento 2:- How to get customers now online? Want to get all customers data current login.
0
votes
1answer
21 views

Magento 2 - Autoload error Module 'Iazel_RegenProductUrl'

After update composer Please help me, I get this error. Module 'Iazel_RegenProductUrl' from '/var/www/vhosts/exm.com/httpdocs/app/code/Iazel/RegenProductUrl' has been already defined in '/var/www/...
0
votes
0answers
20 views

Magento2 - Dropdown in mini Search

After that overwrite Magento\CatalogSearch\Model\Layer\Search\Plugin\CollectionFilter file I take help Below URL: Add custom dropdown in mini Search magento 2 This code not working $query = $this-...
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 ...
1
vote
0answers
15 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 ...
0
votes
0answers
14 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 ...
1
vote
2answers
4k 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
3answers
1k views

Magento 2: Adding JS from module

I have a module, and I want to add a javascript generated in the module at the frontend footer. The javascript has to be built dynamically because it depends on server variables. I've thought of a ...
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 ...
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]=> ...
0
votes
1answer
751 views

Magento 2 Class Inject in Constructor

I am trying to create a simple module based on this answer https://magento.stackexchange.com/a/125519/45358 I just need a function to check if customer is logged or not in a custom theme header.phtml....
2
votes
1answer
651 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
633 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, ...
6
votes
4answers
5k views

How to solve admin grid error?

I am getting this error in admin custom module of Magento 2. Something went wrong with processing the default view and we have restored the filter to its original state. admin grid error.
0
votes
2answers
2k views

Magento 2.1: Get Breadcrumb Array

How can I get the breadcrumb array from my template? I'm able to get the object: $this->getLayout()->getBlock('breadcrumbs'); and full breadcrumb path as final HTML $this->getLayout()-&...
2
votes
2answers
2k views

Magento 2 - How to change position of Sign in and My Account link?

How can i move account creation link and sign in link after the search box. Need Help
1
vote
5answers
4k views

Magento 2.1 UI component form addFieldToFilter() on null

I am trying to make a UI component form for creating products in Magento 2.1 module. However, I stuck with the problem that it throws this error: Fatal error: Method Magento\Ui\TemplateEngine\...
19
votes
2answers
23k views

Magento 2.1.1 How to load Order with Increment ID using OrderRepository object

What would be the latest best practice to load Order using increment ID (instead of Order ID) using OrderRepository
1
vote
1answer
39 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()-&...
1
vote
1answer
95 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
331 views

magento 2 - custom router throws Front controller reached 100 router match iterations error

I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example. The problem is the route (MY-SITE/...
0
votes
1answer
198 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
1
vote
2answers
385 views

Cannot add new cli command “Class does not exist” on setup:upgrade

I am trying add custom command for beginning 'hello world'. I'm doing all by guide but always have this error [ReflectionException] Class Hesoy\HelloWorld\Console\Command\HelloWorldCommand ...
2
votes
1answer
251 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/...
3
votes
2answers
2k views

Magento 2: How to solve Duplicate Of Template Name?

When I installed a new module and did the setup:upgrade I received this message:
0
votes
1answer
130 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
111 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
110 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
2answers
1k views

M2 Module to Override Login Page Title

I have written a module to override vendor/magento/module-customer/Block/Form/Login/Login.php in app/code to change the page title. My override code is below: <?php /** * Copyright © 2013-2017 ...
1
vote
1answer
326 views

Magento 2: How to stop event/observer if another already ran

I have 2 events running if subscribe to newsletter is checked on the checkout page. sales_model_service_quote_submit_success newsletter_subscriber_save_after Can i prevent event #2 from happening if ...
3
votes
2answers
3k views

How to load a popup in the home page?

I need to show a popup when the store loads and need to ask users to select the city, then only products deliverable to these cities must show. In the backend, I added some cities to a new attribute '...
0
votes
1answer
554 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/...
2
votes
1answer
2k views

Magento2 Disable All Modules of a Particular Vendor Name

I would like disable all module of a particular vendor in a single command. I know we have php bin/magento module:disable [Vendor_ModuleName] command but as far as I know it doesnot take wild cards ...
0
votes
1answer
327 views

How to publish my module in magento Marketplace?

I have developed a module for magento 2. In particular is a custom shipping method, I would like anybody could be able to use my shipping method. How can I do to put my module downloable. I tried on ...
2
votes
3answers
2k views

Magento 2: How to get visitors data

I want to get visitor Id in my custom block for getting product view history of non logged in customer public function __construct( \Magento\Customer\Model\Visitor $customerVisitor ){ $...
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
30 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 ...
1
vote
1answer
417 views

Can't see the custom shipping method just added

I need to add a custom shipping method. I was fallowging this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ I was able to configure my custom shipping method. I set ...
2
votes
1answer
547 views

Send custom email by using cron job magento2

I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details. I am new to Cron jobs so can you please explain it. Thanks in advance
6
votes
1answer
1k views

How to add a color picker field in Admin form?

How to add color picker in my custom module of Magento 2 admin panel form? Not in System Configuration.
4
votes
2answers
993 views

I created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error? [duplicate]

Recoverable Error: Argument 1 passed to Webkul\Grid\Controller\Adminhtml\Grid\Index::__construct() must be an instance of Magento\Backend\App\Action\Context, instance of Magento\Framework\...
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
46 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
1answer
219 views

Magento 2 Extension Vendor name start with digit Not working

Try to create Magento 2 Module, Vendor name start with digit Like : app/code/3dvendor/3dmodule (3dvendor_3dmodule) when run "php bin/magento setup:di:compile" command we get error Is it valid ...
0
votes
1answer
274 views

Add customer attribute with yes/no option

I need to create custom Customer Attribute with Yes/No option. I successfully created ones with Text input previously. What I need now is, create a separate attribute for set if Customer is on Hold or ...
0
votes
0answers
939 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 ...
0
votes
0answers
707 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
1answer
136 views

Override function does not work

Although I have seen many examples of overriding a function in Magento2, I still cannot manage to make the following work: Disabling the Welcome-Email for new customers. The Welcome-Email is sent by ...