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]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

0
votes
1answer
10 views

What is the use of the merger class in Magento Message queue?

Can someone kindly explain the use of the Merger class when using Magento Message queue framework? Also, why is there no fallback merger class ?
1
vote
1answer
8 views

Magento 2 - why are translations from my CSV file not loading

I am using Magento 2.2.7 and theme Techno from Themevast. My app/code/design structure looks like this: frontend/tv_themevast_package/default frontend/tv_themevast_package/techno1 Template is using ...
0
votes
1answer
12 views

How to Increase file size of Importing Products to Magento 2 [duplicate]

I'm looking to import product into M2 but the allowed size is 2MB and my file has 2.33 MB how can I increase the size? Thanks in advance.
0
votes
1answer
10 views

How to join Sales order collection and order item collection

I want to join the sales order collection and sales order item collection How to join the two collection I have collections like order collection > $ordercollection=$this->orderCollection-...
0
votes
0answers
8 views

In Paypal Website Payments Pro Hosted Solution, Credit card form is not appearing when checkout page is loaded Magento 2

In Paypal Website Payments Pro Hosted Solution, credit card form only appears when place order button is clicked. Would it be possible to show credit card form when checkout page is loaded ? I have ...
1
vote
2answers
13 views

Magento2 How to get customer group from sales order item collection

I want to get customer group from sales order item collection. How do i get that? In Magento 1 it is like this $customer_group = Mage::getModel('customer/group')->load($order->...
1
vote
1answer
11 views

Magento 2. Describe different types and uses of JavaScript modules. Which JavaScript modules are suited for which tasks?

Describe different types and uses of JavaScript modules. Which JavaScript modules are suited for which tasks? This is a question for the certification study guide. I know it's kind broad, but still ...
0
votes
1answer
6 views

Customization mistakes and changing the layout type of a core page configuration xml

In the official M2 docs we have this quote Changing handle inheritance. For example, you should not change the page type parent handle. Pulled from here M2 Frontend Dev Docs By this I understand ...
0
votes
1answer
13 views

Why is default Luma theme so slow (Time to interactive) on PageSpeed insight?

I had bad result on Google Pagespeed Insight on small Magento Websites, using default theme and modifying only little stuff, plus adding static content to homepages. And Pagespeed Insight rating are ...
1
vote
1answer
16 views

Magento 2.2.2 error when setting order status with API

I am trying to set the order status of orders to "Complete" using the API. I am running Magento Enterprise 2.2.2. Am I missing something in the data? This is the url I am calling https://localhost/...
1
vote
0answers
20 views

Magento 2 Layered navigation not showing

No matter what I did I couldn't get the layered navigation showing. I have several categories with different product attributes, most of them are dropdowns and still no luck. Steps I took: The ...
1
vote
0answers
11 views

Magento2 change Category-Product position to string

I would like to change the category-product position to be a string. Because I have an exploded view for spare parts and they are numbered with strings (1a, 1c, 605,...). The customer should see the ...
1
vote
1answer
65 views

Magento 2 Seo title product override not working

I overrided the Magento\Catalog\Block\Product\View.php adding this code protected function _prepareLayout() { parent::_prepareLayout(); $this->pageConfig->getTitle()->set($title . '- ...
0
votes
1answer
14 views

Magento2 Swatch change Image does not slide to first Image

I have a problem with product gallery changing swatch (f.e. color). I have a configurable product with different size and different color. each configurable product has it's own color image (I added "...
0
votes
1answer
15 views

Magento 2 - Don't want to remove wishlist items when click 'Add all to cart' button

I want to keep items in wishlist when user click "add all to cart" button. Have any idea how to fix it?
0
votes
0answers
10 views

Swatches inclusion on custom related product template file in Magento 2.3

I am using inclusion on swatches for custom related product template file using the method mentioned on : https://magento.stackexchange.com/a/223599/80609. But i am not able to pass related products, ...
1
vote
1answer
14 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
0answers
16 views

Magento 2 Rest Api - Is this searchCriteria filter correct?

I'm trying to retrieve virtual products, which have been modified before a certain date and which still are in stock I'm using this /rest/V1/products?searchCriteria[filter_groups][0][filters][0]...
1
vote
0answers
14 views

Magento 2 : Create cms block store vise with same identifier

I want to create CMS block with same identifier. For ex. Testing is my identifier. But, content of testing is different in German store view and Russia store view. How to create store vise CMS block ...
0
votes
0answers
13 views

Category Image Not Showing on frontend in magento2

I Am Using Below Code When i Debug by Zend_Debug::dump($sub_category->getData()) Then image showing 'null' value. Image uploaded in admin array(30) { ["entity_id"] => string(2) "88" ["...
0
votes
2answers
21 views

How to integrate Stripe Payment Gateway in localhost?

I want to install stripe payment gateway in my localhost, for my testing purpose. Is there any way exists to download stripe payment extension for testing purpose. Thanks in advance.
0
votes
0answers
17 views

When change a swatch option how to get a selected simple product id from configurable in category product listing page in magento 2

When change a swatch option how to get a selected simple product id from configurable in category product listing page in magento 2 Refer image : https://prnt.sc/nt3fmj
0
votes
1answer
11 views

Getting error on attributeResource save

I'm trying to add an attribute called orchestra_id to Order and OrderAddress. I've made a plugin who have been already activated. So I've create an Setup\UpgradeData model. This is what it look like: ...
0
votes
1answer
15 views

What does render args mean?

In my shipping.html I see this line of code <render args="shippingMethodListTemplate"/> Is this just saying "put the content of this template here" or is there something else going on? EDIT:...
0
votes
1answer
4 views

Magento2 import sales tax rates via admin panel

I have a Excel file saves as a .csv and no matter what I do it keeps saying invalid file format. I exported the excel the tax rates that where on the site then edited the file in excel and saved as ...
0
votes
0answers
7 views

Magento 2 - Location path of the SQL query file which inserts orders in to database

I want to modify the values of the product items will be inserted to table 'sales_order_item' right before the order is placed. So im trying to locate where the exact query is. Also the order ...
0
votes
1answer
20 views

“Restriction is applied to your order…”, when Coupon applied

On my Magento 2.2.7 instance, when a coupon is applied in the checkout, the error message "Restriction is applied to your order. Please review shipping details on Shipping step." is displayed for 5 ...
1
vote
2answers
28 views

How to recover env.php file in Magento 2?

is there any way to recover the env.php file. As my file deleted unexpectedly when editing using command line. Now file is empty and showing with 0 size in the ftp. As i don't have the backup of the ...
0
votes
0answers
14 views

Customized Dropdown Search for Magento 2 [on hold]

I have some csv files that have around 15000 rows of data in each. I am looking to import the CSV with all the data already in it. It has about 10 columns. So if someone selected column 1 data it ...
0
votes
0answers
7 views

Magento 2 configurable product import issue

I have uploaded configurable products using csv and it works fine when all the simple products have the same price. However when the simple products are each having a different price within 1 ...
0
votes
1answer
17 views

How to set a start and end time for Product Status

Am I able to set a start and end time for product status? I'm running an ecom store and would like to know if I can set a date & time for product to enable/disable. For example, if I am ...
0
votes
1answer
24 views

Magento 2 add seo title suffix for every product page

How can I add SEO title suffix for product page?
0
votes
1answer
14 views

How to check if Product Attribute is equal to

Brief On a Product Page, I want to check if a Product Attribute is equal to a specific value. And then output the appropriate text. Where I'm at so far <?php // Helper for Checking Product ...
0
votes
1answer
16 views

Magento2 admin grid: SQL error when sorting by specific field

Database table columns are displayed in custom grid in adminhtml. One of the field has name 'precision' and this causes SQL error when I sort the grid by this field (as this is mysql reserved word and ...
0
votes
0answers
9 views

Override the VAT for calculated shipping costs

I am trying to override the shipping tax amount for the for the checkout, eg: I have created some custom shipping methods which are pulling in from Shipper HQ but I would like to change the VAT rate ...
0
votes
0answers
11 views

How can we modify collection getSize() value after, removing some keys by removeItemByKey()

I need to remove some row from collection. So i used removeItemByKey(). But I need to also change getSize() and count(), which is coming wrong after removing keys. My code is public function ...
0
votes
0answers
14 views

How to Get Product Price Including Tax Magento 2 [duplicate]

how get product price with tax vat price in magento2 currently my product price is 15 after vat its 18 now i am seding detail to google but in google its shows 15.
0
votes
0answers
11 views

Some Images could not be resized. See log file for details

Some Images could not be resized. See log file for details I use Magento 2.2.6. I use allways the same picture only name change! 5781-R101.png do not work ABCDEFG.jpg work fine picture has only ...
0
votes
1answer
26 views

Sftp not able to connect in magento2.2.5?

I am not able to connect to Sftp in magento2.2.5 Here is my code: public function execute() { $connection = $this->sftp->open( array( '...
0
votes
0answers
16 views

Filter Products in list page based on attribute in magento2

I have a requirement like below. Right above the category page i have loaded custom template file with the drop down html. with options like below. ---select class --- test 1 test 2 test 3 ...
2
votes
0answers
13 views

Magento 2.3 - Products URL key regenerate on import functionality

I update the products with no url_key header present (only sku,description) using the import functionality The import should only update the fields which are mentioned in the CSV file. The import ...
0
votes
1answer
15 views

Magento 2 | VueJs Framework

Is there a way to use VueJs Framework under Magento 2 ?
0
votes
0answers
17 views

Magento : How to Add Layout Update Functionality to custom Module

I am trying to add the functionality of layout Update section from widget form in my custom module. how can i do this please anyone guides me. if you confuse about my question. I wanna the function ...
0
votes
0answers
27 views

Search by keyword is not working properly magento 2

When i search by full name of product the result in grid of product does not show the product. So is there a problem to fix and how to make search by sku product functionnal any help please and thanks ...
2
votes
2answers
27 views

Magento 2: How to additonalClasses for Tab in form ui component?

i try this code but it not working with tab in form ui component: <item name="additionalClasses" xsi:type="array"> <item name="my-custom-class" xsi:type="boolean">true</item> &...
1
vote
1answer
38 views

Needed short explanation

I have read many blogs to understand some of the topics in Magento 2 but still not clear about them. They are as follows EAV Dependency Injection Could anyone please explain them shortly? Thanks ...
1
vote
1answer
19 views

jQuery DataTables.js How to Apply It On Admin Grid

I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console: Here is my Code: Add file in /EC/Downloads/view/adminhtml/requirejs-config.js. ...
0
votes
0answers
12 views

Magento 2.3 - Onepage checkout : on click of payment method ajax call removes items from order summary

I have one ajax call on payment method select: select-payment-method.js define( [ 'Magento_Checkout/js/model/quote', 'Magento_Checkout/js/model/full-screen-loader', 'jquery', '...
1
vote
0answers
14 views

Use ProductList widget

I try to display list of products with the widget ProductsList, without success. I have the following code : $block = $this->_view->getLayout()->createBlock('\Magento\CatalogWidget\Block\...
3
votes
1answer
39 views

Move block inside another block

I want to put the header.links into another block. this is the icon.phtml file: <div data-block="dropdown" class="minicart-wrapper"> <i class='fas fa-user-circle action' data-trigger='...