Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

Filter by
Sorted by
Tagged with
0
votes
3answers
1k 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
717 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
91 views

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

After exporting products in CSV file products ids don't match Magento 2 backend ids please help this matter.
1
vote
2answers
251 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
56 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
39 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
124 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
47 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
195 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
112 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
31 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
26 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
24 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
34 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 ...
1
vote
0answers
68 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
112 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
67 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
22 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
295 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
25 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
42 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"?&...
2
votes
0answers
34 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
660 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
141 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
26 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
45 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
8 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 ...
3
votes
2answers
286 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
126 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
896 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', '...
2
votes
0answers
173 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
61 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
45 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
13 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
113 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
39 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
28 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
20 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
188 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
29 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
122 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 ...
1
vote
1answer
211 views

magento 2.2 static content deploy errors

I am trying to deploy static content in developer mode in magento 2.2 community edition. I am getting multiple errors in terminal related to css. Getting error as - [Magento\Framework\Exception\...
0
votes
0answers
25 views

Email not sent on order conformation in magento 2

I have created a custom module to send the email to the admin programatically on order place. But it does not send the email. Please help. Thanks in advance. Vendor/Neworder/etc/events.xml <?...
0
votes
1answer
217 views

Magento 2.3 removed Webservicex and Yahoo Finance Exchange

What i see in magento 2.2 and 2.3 is that Webservicex and Yahoo Finance Exchange are removed. Why are they removed? What are the alternative to them? How can i add them back?
0
votes
1answer
101 views

How can I filter all bundle child products in magento 2?

I'm using the MageWorx autocomplete, but it display the child products from bundles
0
votes
1answer
36 views

Add 'Select All' option to Export screen in Magento 2 admin

In Magento admin, under System > Export the user can select individual attributes to be excluded from the export. I'd like to add a 'Select all' link that would select all options. This question was ...
0
votes
1answer
37 views

How to check which js files were used in final merged js

With enabled javascript merging and bundling i get one javascript file. How can i analyze which javascript files across the themes were involved? I suppose var/view_preprocessed should give an answer ...
0
votes
0answers
78 views

Guest Cart vs User Cart Overwrite

We are currently having issues with the Guest Cart merging with the User Cart. Magento 2 Currently if the user shops as a guest and goes to the checkout and logs in; the items they recently added as ...
1
vote
2answers
364 views

Magento 2 - Controller with parameter

I want to create the controller which get the parameter like http://example.com/manufacturerpages/index/id/497 When I do this, It goes to 404 error plus I am also not able to get the id in ...

1 5 6 7 8 9 50