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

0
votes
1answer
11 views

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

I want to progrmmatically create products from a xml. Ex : Default Category/Beer , Default Category/Beer /CRAFT, Default Category/Beer /CRAFT/BOMBER BEER, Default Category/BEER, Default Category ...
0
votes
0answers
8 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 ...
0
votes
0answers
10 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 ...
0
votes
0answers
14 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\...
2
votes
0answers
17 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
11 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 ...
0
votes
0answers
9 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
10 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
29 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
27 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
33 views

How to add return form in magento 2.2? [on hold]

How to add return form in my Magento 2.3. I added "MAGEWORX" for shipping service ?
2
votes
1answer
89 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
33 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 ...
1
vote
3answers
34 views

How to export all customers based on ordered items SKU?

How to find all customers who ordered a certain SKU ?
1
vote
1answer
22 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 ...
1
vote
0answers
11 views

When I try to get quote shipping address, it returns customer default address. Does the quote session not updated with value in the table?

When I try to get quote shipping address, it returns customer default address instead of returning from my quote_address table. I'm trying to pre-populate checkout fields with quote address details. ...
0
votes
0answers
18 views

how to add first color as default select in recent products in home page in magento2 [on hold]

I want to do the first color of color swatches should be selected as default in most recent product view in home page in magento2 in my home, most recent products are coming under that product color ...
1
vote
0answers
41 views

Magento 2 Associate Developer Exam

I'm starting to prepare for the Magento 2 Associate Developer Exam. Can you help with some tips for this preparation? Some books, tests, sites or something else? Thank you very much.
2
votes
0answers
14 views

Is it possible to set default checked for selected Product Categories?

For some specific requirement, I want to have some of the categories for the product selected by default, How I can achieve this?
3
votes
2answers
42 views

Run Magento 2 inside a Docker Container

Is there a way to run my existing magento 2 project inside a docker container? I have an existing project that is run inside a vagrant but I'm encountering a lot of issue in the vagrant and we decided ...
2
votes
0answers
36 views

Get Quote and Quote Items using Magento 2 SOAP API

I am working with Magento 2 Rest APIs ( For Abundant cart ) and having issue with Quotes, I am able to get all Quotes ( with desired filters, is_active = 1, items_count > 0 ) using API : /rest/V1/...
1
vote
1answer
40 views

Magento 2 filter not working on custom customer attribute

I have created custom customer attribute. It is displaying in customer grid in admin panel but when I try to filter on my custom attribute, I get error SQLSTATE[42S22]: Column not found: 1054 ...
0
votes
1answer
23 views

Only 1 product adding to order when creating orders programmatically in Magento 2

I am in a process of creating orders programatically in Magento 2. below is my code: <?php namespace Eight65media\MpowerSync\Helper; use \Magento\Framework\App\Helper\AbstractHelper; class Data ...
2
votes
0answers
31 views

Magento 2 - Failed Authorize.net Transactions Are Not Being Canceled and Not Getting a Response from Auth.net

I have a pair of sites I manage that are on Magento 2.2.4 and 2.2.5. Both are using Authorize.net Direct Post and I have applied the Authorize.net MD5 patch from Magento to utilize the signature key ...
2
votes
1answer
20 views

M2.2 - Get Total Image Count for All Products

I recently did a migration from M1 to M2, and with doing that, all images came along. Some products tend to have north of 10 images, and some more like 1-3. I am trying to find a simple and fast way ...
1
vote
0answers
9 views

whenever loading url and reloading getting white blank page and it loading 2 -3 secs it's coming

We are working magento2.2 version hosted website. Everything working Fine but when loading website www.example.com it's getting some time white Blank page and again loading page as usual after 2-3sec....
1
vote
0answers
22 views

Magento 2 ExportButton component Product grid not working

I have added ExportButton on admin product grid and when i click on export it shows error Exception #0 (Magento\Framework\Exception\LocalizedException): A joined field with this alias is already ...
0
votes
1answer
32 views

Override onepage/link.phtml

we are trying to override the cart "go to checkout" button in a custom module, but can't get it working state. (CE 2.2.6) I am using view/layout/checkout_cart_index.xml with the following content &...
0
votes
0answers
12 views

Unable to add prototype.js and protype/window.js in custom page Magento 2

How to add prototype.js and protype/window.js in custom page Magento 2? Anyhelp from anyone would be highly appreciated! Thanks in Advance!
2
votes
2answers
221 views

What is the meaning of triple curly braces {{{ }}} in phtml template files? When and how do we use them?

There is a phtml template file in one of the third party Magento 2 extension which has triple curly braces {{{ }}} in it. When is this notation used, What does it represent?
3
votes
0answers
29 views

Magento 2 How can I add State and Country attribute for customer in Admin?

How can I achieve State and Country field functionality in Admin under customer Account Information? I have referred this link to create in front-end https://magecomp.com/blog/create-country-...
1
vote
0answers
44 views

Product prices always round up [closed]

I'm using a minimal modified Magento CE 2.2.7 with a free Solwin template, nothing fancy. When I add products, Magento automatically rounds up the prices. eg: €2.30 becomes €2 €2.60 becomes €3 I ...
0
votes
2answers
41 views

How to disable welcome email in magento2.2 [duplicate]

I want to know how to create a custom module to disable this welcome message.
1
vote
0answers
34 views

Magento 2.2 - How to Create a custom dynamic checkout form

I have to solve following situation and need some help for the way of the solution. I have to create a custom checkout form, which input elements are defined in a db table. If the user has the ...
1
vote
1answer
22 views

Enabling DHL Marketplace in Magento 2

How can I add DHL Market Place in my Magento 2 admin? Been searching on how to enable it but can't find any solution. Should I just copy the download file into the app folder? or do I need to go to ...
1
vote
1answer
26 views

Should we update mySQL and Maria in Magento 2.2?

I am getting messages from our server that we need to update the installation of MySQL and possibly install Maria. (MySQL 5.6 to 5.7) Problem is that we are on a self hosted VPN and the server ...
1
vote
1answer
25 views

Get Postcode and make ajaxcall to API

im have no idea if im doing it right or not, and also i cant it put it work, im tyring to make a ajax call to get some information from a API and then present in the html, but first i need to check of ...
0
votes
2answers
57 views

Magento 2 : Custom Column Error

So, I have added a column to sales_order table. It is varchar type and it has some data in it. I found tutorial: here that show what I want to achieve exactly. Now, I am running Magento 2.2.3. and ...
0
votes
0answers
9 views

Rest API to a Magento 2 Site

Is there a way to make a REST API call to a website built in Magento 2? The scenario is I have multiple site and the header of these sites are shared whether I go to website 1 or website 2. Now when I ...
0
votes
0answers
26 views

Custom Magento Extension Enable and Disable by my custom admin module not working

I want to admin user can able to do module enable disable from back end, Its reflecting but doesn't worked. Please help. below is my system.xml code <?xml version="1.0"?> <config xmlns:xsi="...
2
votes
0answers
30 views

Magento 2 - product details tab title as an clickable link url to another page

How to make the product details tab title is clickable link, and grab the SKU from the current product page to the link? For example, I created a custom product tab called "Download", and when ...
4
votes
2answers
54 views

How do I post JSON to a web API method?

I want to send a JSON string via API, and then parse the JSON in code. I don't want Magento to try to convert my JSON parameter to a PHP object. I'm trying to add this to the stock registry API. ...
0
votes
0answers
13 views

How to add code to Magento?

I need to implement Magento for a customer, but it also needs an Magento-SAPB1 implementation by some Web Services that we already have, so i just have to invoke it from de E-commerce backend and ...
1
vote
0answers
22 views

Magento 2 : How to add configurable product to cart with the selected custom options?

I had a configurable product with two variants such as color and size and I have one customizable custom option, I am trying to add this product to cart with a custom controller, but it says the ...
0
votes
0answers
15 views

What is the best way to save a custom field in shipping address?

I have added a custom field on checkout in shipping address section using below code. etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
2answers
41 views

Unable to serialize value problem with Magento 2.2.6

Please teach in order to solve the problem. cd /vagrant sudo php bin/magento setup:upgrade sudo php bin/magento setup:di:compile sudo php bin/magento setup:static-content:deploy sudo php bin/magento ...
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 ...
1
vote
1answer
28 views

How to add module template on theme template

Please check the picture below.
0
votes
2answers
75 views

Magento 2 - get final prices include tax and round

I've custom block phtml in my old store and I need to be converted to Magento 2. Magento 1.9.x code: $_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(...
2
votes
0answers
32 views

Magento 2.2 Layered Navigation Category Page issue

Thank you for taking time to read this: We have customised our theme to show Category images on Category Pages – and also Category Banners. All this is controlled form the Category Settings from ...