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 [magento2.2]

General questions about the Magento 2.2.x versions

1
vote
1answer
157 views

How to save the data for customer custom attribute in magento 2

I created a custom customer attribute using an install script. $customerSetup -> addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'is_mpowersync', [ 'label' => 'Is ...
0
votes
0answers
22 views

Google Analytics not tracking categories on M2

When I go on my GA Conversions : E-commerce : Overview and then I click on Product Category (Enhanced E-commerce) it give all results for category (not set), how can I verify if the Enhanced is up ...
0
votes
0answers
47 views

Stock and Out Of Stock filter in Layered Navigation

I try to add Stock and Out Of Stock filter in the Layered Navigation. I set the configuration of the attribute "quantity_and_stock_status": In the storefront I look the filter, but if the ...
0
votes
0answers
49 views

How to Fix Base table or view not found: 1146 Table Magento 2.1.13 to 2.2

Recently I upgraded Magento 2.1.13 to 2.2 and getting this below while running bin/magento setup:upgrade. Please suggest the fix. Upgrading schema.. SQLSTATE[42S02]: Base table or view not found: ...
0
votes
0answers
28 views

Why di compile not working with 100% in magento 2? [duplicate]

I have Magento 2 setup But when I run cmds: php bin/magento s:up Next then I ran php bin/magento s:d:c Every time try this without error it will be moved to next How I can solve this? My ...
2
votes
1answer
25 views

Magento 2 overriding core js file not working

I have a core js file that I want to override, but everything I have tried has failed, including essentially copying the method used by another core file being overridden that does work. Here is what ...
1
vote
2answers
91 views

Magento 2 - Freight options for UPS possible?

Magento 2.2.4 Running a B2B store on M2 CE 2.2.4, we tend to have some larger orders in both price and weight. Looking through the default shipping method options, FedEx gives a minimal amount of ...
1
vote
1answer
30 views

move minicart before top.search magento 2.2

I have moved the mini cart before top.search using below code in my theme under app/design/frontend/Mytheme/luma_child/Magento_Checkout/layout/default.xml <?xml version="1.0"?> <page ...
2
votes
1answer
345 views

Magento 2.2.8 upgrade - Problem with “Unable to unregister protocol phar” during compile

First, some background. I have 6 Magento 2.2.x sites on a development server. 4 of the 6 upgraded just fine. I used the same standard composer upgrade process on all of them. They're on a single ...
1
vote
0answers
27 views

how to set custom design layout for custom attribute category in magento 2

I have created 3 attributes. First for Design layout left or right custom category attribute. Second for Enable disable custom category attribute. Third attribute for product which is enable for ...
0
votes
1answer
24 views

There is a problem that only No is returned even if Yes / No is set for Catalog Input Type for Store Owner in Attribute Properties

The selectable products and simplified products were saved with Yes. No was output when acquiring the corresponding attribute code on the front end. The following is the code written when getting ...
1
vote
0answers
43 views

Listening to Home Page

I wanted to listen to the redirection of the home page in magento2. I used the controller_action_predispatch events and checked the full action cms_index_index. But what I am facing is, The page gets ...
0
votes
1answer
27 views

Is there any event on which we can observe eav attribute option save

I tried eav_entity_attribute_save_after but its not working. Which event triggerd during eav attrbiute save can anyone please help me on this.
1
vote
0answers
67 views

How to remove interlacing from the PNG files in magento 2?

I have added a third-party extension for XML sitemap. When I generate a sitemap, I am getting "Service Unavailable The server is temporarily unable to service your request due to maintenance downtime ...
0
votes
2answers
57 views

How to get the product image in Magento 2

I want to get the product image in Magento 2. $collection = $this->productCollectionFactory->create() ->addStoreFilter($this->_storeManager->getStore()->getId()) ...
0
votes
1answer
32 views

How do I block visitors from directly viewing images

I want to prevent visitors to the site from going to http//... ...img.jpg and viewing the image there and instead see them redirected land on the main page. I have tried editing some the .htaccess ...
0
votes
3answers
59 views

Add CMS block to bottom of each product list

I would like to add a CMS block to the bottom of each product list whehter it is on a category page or the search result page. Since I would like to add it on every list I'll try to do this via layout ...
0
votes
1answer
38 views

Magento 2 how to add a Javascript addeventlistener to element

I am trying to add an event listener to an element, but no matter what I try, it won't work. Here is what I have so far (this is in the html web templates page): window.addEventListener('load',...
1
vote
0answers
9 views

searchCriteria returning every result

I'm currently using PowerShell's Invoke-RestMethod to access Magento APIs. My problem is I'm trying to pass some searchCriteria in a $body variable to look for a specific 'increment_id'. Here is the ...
0
votes
1answer
25 views

Quote weight validation

I want to use a custom quote validation doing the same like the validateMinimumAmount() method, just for some volumetric weight calculations. I already wrote the related helper methods, one of it is ...
1
vote
2answers
41 views

How to override the js in magento2

I want to override core js in custom module. define([ 'quickSearch', 'jquery', 'underscore', 'mage/template', 'mage/translate', 'jquery/ui' ], ...
3
votes
0answers
126 views

How to display and save extension attributes on Magento 2 Admin create order page

I have created extension attributes to order for rest API services. Also, I'm able to display the attributes on the order grid. How can I display the same attributes on admin create order form and ...
1
vote
1answer
66 views

Payment method in Checkout page issue in Magento 2.2.6

I am facing the serious issue which road block for the order placement in my Magento instance. I have made some customization in Checkout side. And it was working properly. Suddenly, I am facing this ...
0
votes
0answers
45 views

IE 11 issue- XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff

On my Magento 2.2.6 site IE11 customers are no longer able to place order or navigate the site. In the console I get two errors- XMLHttpRequest: Network Error 0x2eff, Could not complete the ...
0
votes
0answers
42 views

Gift Wrapping for Items not calculating correct total including tax

I'm using Magento EE Cloud 2.2.7. while adding gift wrapping for quote items, it is showing incorrect total (price incl. tax). Grand total is shown correctly. Totals Data: gw_items_base_price: "5....
0
votes
1answer
28 views

How to resolve wamp issue with Magento 2.2.7

I have installed wamp 3.0.8 for 32 bit Windows 10 OS in my laptop. And I have downloaded Magento 2.2.7. While hitting http://localhost:8080/magento I am getting this error. Please help me to solve the ...
0
votes
1answer
42 views

Magento 2 - Programatically updating the inventory store wise not working

I have a function to update the product inventory progrmmatically.below is my function in the helper file. protected $stockRegistry; ... public function __construct( .... //Some code-- \Magento\...
0
votes
0answers
19 views

Magento 2 need add weight in Summary bundle product page

Please! See this print: http://prntscr.com/n21cfy I need to add an attribute weight in Summary bundle product page. Get the weight of each simple product attached in bundle product, same place i ...
1
vote
0answers
17 views

Magento 2 how do show cart summary in sidebar.additional

I need to show products my customer already have in the cart in sidebar.additional with name products in the cart, qty, price (each product), and total cart. Something like order summary in onepage. ...
0
votes
0answers
32 views

Compile email-inline.less not working

I created a header.html located in the app/design/frontend/{VENDOR}/{MODULE}/Magento_Email/email/header.html not within this header.html I added a div tag that has a class of custom-border. <...
0
votes
0answers
20 views

How to add product qty and product price store wise progrmatically in magento 2

I want to create product progrmatically. product creating section is done, after creating the product i want to update the product qty and price store wise. I have following array which return me the ...
6
votes
1answer
86 views

Magento 2 - Cache warmer for multiple server

I have integrated a cache warmer module. Using cronjob it runs and creates cache for all the pages, and it's working properly. I have multiple servers (Let's say 2 servers), until now there is no ...
1
vote
0answers
54 views

magento 2.2. Community configuration DHL This shipping method is currently unavailable

I have already setting like this one. and when I go to checkout on option shipping method there show This shipping method is currently unavailable. If you would like to ship using this shipping ...
2
votes
1answer
37 views

Preference class doesn't work

I'm trying to replace a class method "wrapResult" from: \Magento\Catalog\Pricing\Render\FinalPriceBox Never enter into this method. Try to stop the execution with die () or with xdebug, enter ...
2
votes
2answers
99 views

How to set the category ids to a products from category path?

I want to progrmmatically create products from a xml. Ex : I am getting the product categories as like below. Default Category/Beer , Default Category/Beer /CRAFT, Default Category/Beer /CRAFT/...
1
vote
0answers
15 views

Claue theme and image positioning in Google

A few months ago we migrated from 1.9.2 to Magento 2.2.4 and also changed the template, using Claue. Before we had an average of 120 clicks a day in the images positioned in Google and now 20 on ...
1
vote
0answers
15 views

How to add category Path when creating product progrmatically in magento 2

I want to create products programatically by reading an xml file. Reading from xml, and creating product part is completed. I have no idea how to assign the products to category. This is my xml node ...
1
vote
0answers
17 views

How to get category detail along with subcategories and products in PHP file not PHTML?

I have looked over internet but can't find a solution to get detail in my controller or block file i have tried Registry Tried get id of category from param Also tried from Magento\Catalog\Model\...
6
votes
1answer
164 views

M2.2 - Advanced Search - Search Multiple SKUs?

I am trying to use Magento's Advanced search in an effort to return multiple SKUs. I have tried methods via the frontend/url like searching using quotes, +, & and more.. "SKU1""SKU2" SKU1&...
1
vote
0answers
17 views

Render full header from API

I need to pass the whole header to another website through an API. Do not ask why, this is the task. I asked some help from one of my colleague, he suggest me to create a controller, what has a ...
1
vote
1answer
106 views

Paypal Payflow Fraud Transaction - (Carding) on Magento 2.2.2

My website is running on Magento 2.2.2 and I am using Paypal Payflow as a payment method. The issue that we are facing is someone with different IP addresses is using our website for Carding and my ...
0
votes
0answers
17 views

Magento 2: Product review page layout gets changed

When I click on "add your review" button of the product domain_name.com/concession-trailer-8-5-x20-black-1599.html it redirects me to domain_name.com/review/product/list/id/1427/#review-form ...
0
votes
1answer
31 views

How to get the store id for customoptions?

I have 3 languages in my site. I need to add different titles based on language. If I add through back end it will take much time (more than 300 values I have to enter for each product). If I get the ...
2
votes
1answer
35 views

Using getUrlPath in Magento 2.2.7 - URL Redirect

I have this script working on Magento 1.9 but can't figure out how to use it for Magento 2.2.7. <?php require_once 'app/Mage.php'; $sku = $_GET['sku']; $store = Mage::app()->getStore(); $path = ...
2
votes
1answer
55 views

How to add return form in magento 2.2? [closed]

How to add return form in my Magento 2.3. I added "MAGEWORX" for shipping service ?
3
votes
1answer
123 views

Magento 2: Make category field required in product form in backend

I want to make the category field required for product form in the backend. I have tried to add the required class in the block class, but nothing happened. Since the category field is not an input ...
1
vote
1answer
38 views

How to enable customer account in Magento 2?

I am not able to log in to Magento 2 frontend. "You did not sign in correctly or your account is temporarily disabled." This message is showing after the correct login. How to solve this ...
3
votes
1answer
116 views

Magento 2 - Page cache with hole punch

Magento page cache cached some of the blocks that has dynamic value, like Wishlist count on header for logged in customers I can make it dynamic using Ajax, but then it came to my knowledge that it ...
2
votes
3answers
42 views

How to export all customers based on ordered items SKU?

How to find all customers who ordered a certain SKU ?
1
vote
1answer
28 views

Move theme layout elements on a product view from within a Module Magento 2

I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't ...