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
21 views

How to “reset” or reinstall Magento 2 without data loss

While working in Magento 2 somehow I have managed to either corrupt some files or permissions. I haven't been messing with xml files but jumping from development to production and back to development. ...
1
vote
0answers
18 views

I want to know how to change the value of “fotorama _ _ caption _ _ wrap” printed in Magento 2 product details

Magento 2 outputs the product title by default. I want to know how to change the title value to a custom attribute (brand) instead of hiding it. I would also like to know the detailed procedure for ...
0
votes
1answer
24 views

Magento 2 + Docker Setup [duplicate]

Anyone have an idea of how to setup docker in ubuntu 16.04 for Magento2? Also able to describe docket concept basic will be better. Thanks
0
votes
2answers
21 views

Magento 2 changing from production to developer I get error Element 'remove': This element is not expected

Magento ver. 2.2.7 Template: Techno Themevast: https://themeforest.net/item/techno-store-electronic-magento-2-theme/22239747 In developer mode everything was working. I switched to production and it ...
1
vote
0answers
12 views

Allow Backorder for Admins only Magento 2

Does anyone know how we can setup to allow backorders to happen only for orders placed in the backend admin? So customers on the frontend store would not be able to place an order for an out of stock ...
0
votes
0answers
18 views

Magento 2: Exception #0 (InvalidArgumentException): Invalid return type

Hi all! I recently wanted to migrate my store in magento 1 to magento 2, but once I finished the migration, there is a plugin that starts to fail. That plugin that is failing is "Transbank" with the ...
0
votes
3answers
31 views

Magento 2.2.8 | setup:static-content:deploy gives errors | Cannot read contents from file jquery.fileupload-ui.css No such file or directory

I can't deploy static content on my production site. Running command: php bin/magento setup:static-content:deploy en_GB Gives me following error: [Magento\Framework\Exception\FileSystemException] ...
1
vote
1answer
19 views

Unable to process binding click: function()

I'm trying to implement a click event in one of the button I added under the Magento_Checkout module specifically under payment.html view. Now I added the below code File location: app/design/...
0
votes
0answers
17 views

Magento 2 after exporting products csv products id does not match back end product ids

After exporting products in csv file products ids does not match magento 2 backend ids please help this matter. Any help would be appreciated. Thanks in advance..!
1
vote
2answers
27 views

Get a list of all category names and ID's - Magento 2

How can I get a list of all category names and their ID's from a store on Magento 2.2? For example something like this Clothes 2 Shirts 5 T-shirts 7 T-shirts 8 Shoes 10 Sport shoes 12 ... It can be ...
1
vote
1answer
21 views

Add HTML attribute for field in checkout

it's possible add custom attribute in div (or input) that contain field of checkout in $jsLayout array? In my case i want add tabindex attribute
1
vote
1answer
20 views

Magento 2 - Recently viewed product collection from Model

Please read description carefully before marking it as duplicate I want to get recently viewed product collection from Model instead of Block I have check similar post but no one answered it ...
2
votes
2answers
19 views

How get products URL in magento 2.2.5 sql database

I am using magento 2 enterprise edition i am trying to get products URL from sql database for this i have seen catalog_products_entity_varchar but in value attribute column products imgages are given ...
1
vote
0answers
15 views

How to add pager limit in core file in magento2?

I want to add some condition for pager in order collection. In Magento\Sales\Block\Order\History.php; protected function _prepareLayout() { parent::_prepareLayout(); if ($this-&...
1
vote
1answer
23 views

How get products name magento 2 sql database

I am trying to get products name(value) and when i see my db table catalog_product_entity_varchar but in which in the column of value all base images are given so please tell accurate table or any ...
0
votes
1answer
19 views

Apply a jQuery whitespace trim to an adminhtml filter input

My goal is to load a simple jQuery function to trim any whitespace in an admin backend filter input. The use case involves a scanner inputting codes with spaces that will turn up no results. I have ...
0
votes
1answer
16 views

Passing PHP Variables with requireJS in phtml

On my text.phtml template I'm trying to add js by requirejs but can't get the php variables to pass through with them coming up as undefined. Relevant text.phtml $_option = $block->getOption(); $...
0
votes
0answers
17 views

How to add an automatically generated coupon code to the welcome email

I want to add an automatically generated coupon code to the welcome email. Each coupon code can only be used once. I don't know much about magento. Can anyone tell me what to do?
0
votes
0answers
11 views

How to move the “shop by” block

i need to move the "shop by" button in mobile, inside the toolbar block, and i cant do it. Any help?
1
vote
0answers
18 views

Create link directly to specific tab in adminhtml customer edit page?

I have created an extension that adds a custom tab in the adminhtml customer interface. After submitting the form on the page, how can I return the user to my custom tab instead of the default tab on ...
0
votes
0answers
17 views

Magento2 We cannot create an empty shipment

My environment is Magento 2.2. 6. After receiving the order, we verify the invoice creation. Currently, when I create and send an invoice, I get a "We cannot create an empty shipment." error. The ...
0
votes
0answers
37 views

How to Show Product thumbnail in Sales -> Orders Grid in Magento 2

How to show product picture on the Sales -> Orders grid? So when a product is sold it would be great to see its picture next to the product SKU in the Sales -> Orders grid. Any Idea?
1
vote
0answers
18 views

Magento2: How to get the text box value in paste event in ko template

I want to get the otp value after paste event. <div class="cod-enter-otp required enter-otp hidden mgt20 pmtd"> <div class="field mrg0"> <label ...
2
votes
1answer
67 views

I can see attribute in Catalog -> Products grid but how to Shown Product attribute in Sales -> Orders grid in magento 2

I have created a custom attribute "item location" for every product. It was created in Stores -> Attributes -> Product, then assigned to the default attribute set. So every item has its own ...
2
votes
1answer
33 views

How to concatenate the success message in magento 2 in cart?

I created a module to alter the cart message. app\code\Eight25media\Changemsg\etc\frontend\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2
votes
0answers
18 views

How to add the order items images to the the sales_order_item table?

I need to save the images of the ordered items in the sales_order_table when the order is placed using API.
1
vote
1answer
13 views

JS Scripts triggers Cart/Delete

I want to know what JS file and where can I find the JS file that triggers the cart->delete. I'm using Magento 2.3 and upon searching I found a file in vendor/magento/module-checkout/Helper/Cart.php ...
0
votes
1answer
15 views

Questions for migrating differential data from Magento 1 to Magento 2

Magento 1.9 runs on a production server. Magento 2.2 runs on a test environment server. I have finished setting up the migration tool. No errors. We built a database on the test environment server ...
1
vote
2answers
26 views

Getting error when using $messageCollection->getLastAddedMessage()->getText(); in magento 2

I created a module to add available qty to cart when customer request more than available qty. below is my code set. app/code/E25media/MagentoCommunity/etc/frontend/di.xml <?xml version="1.0"?&...
1
vote
0answers
25 views

How to get the ordered items images in the order detail API in magento 2?

I need to get the product image in the order details API of the customer. Please help me to guide how can I achieve this. Thanks in ad
4
votes
2answers
213 views

Magento 2 - Slick slider function not working

Slick slider function is not working after ajax response, This is the order of my code. Firstly I got a product collection response, Then I wrote a slick slider function. but slider function is not ...
1
vote
0answers
21 views

Move shipping address and methods to custom step in checkout

I want merge email fields, shipping address, shipping methods and payment methods in one custom step. I added step and email fields to it without any problems, but my custom address renderer don't ...
1
vote
0answers
22 views

Magento 2.2 admin order rounding price error

The amount of my order is 50.688 but in the orders listing view I've got 50.68 instead of 50.69 in my order details I've got 50.69. It's correct what can I do to make a best rounding in the listing? ...
0
votes
0answers
9 views

A problem occurred while attempting to migrate Magetno 1.9 differential data to Magento 2.2

I dumped the Magetno 1.9 database a few months ago. The dumped database was rebuilt in the development environment and the data was migrated to Magento 2.2. Below is the current problem. The ...
1
vote
1answer
25 views

How to add available qty to cart when customer request more than available qty?

As asked in the question, Is there any possibility to add available qty(in stock) to the cart when customer requesting more than available qty. How magento behave with this situation? ex : I have 5 ...
0
votes
0answers
5 views

Customize Frontend Menu in Admin

Is there a way or what should I do if I want to use the Frontend Menu generation? The idea is to use the menu generation in the frontend and use it in the Admin area. I have an observer that listen to ...
2
votes
2answers
117 views

Magento 2 - Get Collection using custom product Ids and also sort them as the same order as product Ids passed

I need to get the collection using custom product Ids but it should sort the collection based on the sequence product Ids given Here is what I am doing now, but it is not sorting in sequence $...
4
votes
1answer
34 views

Why have my configurables stock status Out of Stock

All I found so far is from the User Guide in Step 4 under 2.: The Quantity is determined by the product variations, so you can leave it blank for now. The Stock Status of a configurable ...
1
vote
1answer
32 views

mixin is not a function

Hi I have created a mixin but it gives the error "mixin is not a function". Vendor/CustomCustomer/view/base/web/customercustom.js define([ 'jquery', 'underscore', 'uiRegistry', '...
0
votes
0answers
44 views

User Login not Working after Migration 2.2 into 2.3.1

I have Just Migration Magento 2.2 store in 2.3.1 Version but Customer User login not working after that. Give me below error. The account sign-in was incorrect or your account is disabled ...
1
vote
1answer
29 views

Difference between core_abstract_delete_after and core_abstract_delete_commit_after events in magento 2

Can anyone please explain to me what is the use of core_abstract_delete_after and core_abstract_delete_commit_after events in magento 2. For your information, it is declared in (Magento\Framework\...
1
vote
1answer
24 views

Remove class on div from empty.xml layout

I am running Magento 2.2. I have custom HTML I want to add to a CMS page. After navigating to the page where this HTML resides, the content is automatically displayed inside a div with class page-...
0
votes
0answers
9 views

Get proper category url for Multisite

I have created a category for each website so one root category for website 1 and another root category for website 2. Now website 1 is set to a domain url of https://website1.com and this is the base ...
0
votes
1answer
27 views

How to use Magento 2 cache?

I have a requirement where, I have huge custom data(around 5000) to display in a page. Currently, I have displayed them in a table and it takes time when I load the page. I want to save the collection ...
0
votes
0answers
26 views

Magento 2.2 - URL translations

we are implementing one Magenot 2.2 shop and I want to ask how is possible to translate URLs and set system to use this URLs. Eg.: we are able to use URLs example.com/zakaznik/account instead of ...
1
vote
1answer
27 views

How to set the product store view in magento2?

How to programmatically changes the product from default store view into all store view. Thanks.
0
votes
0answers
17 views

Magento 2 : How to Show Price Without Added Prices From Customizable Options

How do I change the product price template on product page so that it does not change the unit price when options with additional fees are chosen. So a product with price 14$ will still say 14$ even ...
4
votes
1answer
54 views

Difference between SearchCriteria VS SearchResults Vs SearchCriteriaBuilder and when should we use it?

For searching in repositories we are using searchCriteriaInterface but i noticed sometimes we are using SearchCriteriaBuilder as well. In which case we should use searchCriteriaBuilder? What's the ...
0
votes
0answers
16 views

Magento2 Multistore only showing default website [duplicate]

So I have been struggling with this multiple times now and every time just procrastinated it because it wasn't a priority. We are running a Magento 2.2.2 store using php 7.1.22 and Nginx 1.14.0. We ...
0
votes
1answer
38 views

Get total order value on success.phtml page using onepage checkout

I posted this question: How can i get the order total value on success page easily? Magento 2.2 But it never got resolved. Unsure how to rerequest help about it. But I need to get it solved. I am ...