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
0answers
8 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
8 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
8 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
0answers
12 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
0answers
9 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
12 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
7 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
13 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
14 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
13 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
12 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
14 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
8 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
11 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
14 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
12 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
6 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
14 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 ...
-1
votes
1answer
19 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
0answers
11 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
1answer
24 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
15 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
13 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
26 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
37 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='...
0
votes
0answers
21 views

Magento2 shipping method when amount is greater or equal to $amount [duplicate]

In Magento 2.3 I want to hide flat shipping when free shipping is applied. means I want shipping flat rate per order on minimum purchase 10$. When buyer purchase above 10$ flat rate will hide and free ...
0
votes
0answers
26 views

Third level categories Url is not working in magento 2

Shop Colors Rushmore Boston Mill Little Cottonwood This my category structure. But child category URLs are not working. Link: mysite.com/shop/colors/rushmore.html
1
vote
1answer
36 views

magento 2 get configruble attribute [duplicate]

how I can get all attributes that used for creating a configurable product? did we have API for this? and how we can create configurable attribute by admin panel
2
votes
1answer
78 views

Magento 2 - All products attributes updated after update from collection

I have got collection in $collecction from Magento\Catalog\Model\ResourceModel\Product\CollectionFactory with some certain conditions I am updating a custom attribute viewed_count in foreach loop ...
3
votes
1answer
23 views

Magento 2 Mini-cart doesn't close when click on outside in iPhones

How can we close the mini cart popup on Magento 2? (clicking outside is not working). I have already tried the following method on footer.phtml. It's working on android phones and browsers but iPhones,...
2
votes
2answers
28 views

Magento 2: How to hidden tab fieldset in form ui component?

i want hide this field. everyone can help me plz!
4
votes
1answer
25 views

Magento 2: Insert and select operation (without model) in custom module

Please give me any example or link for insert and select process without using model in custom module of Magento 2.
2
votes
0answers
15 views

Magento2.2.7 PLP sorting breaks after we place orders

Whenever we place an order on store front and come back to any category page, the sorting is not working(sorting breaks) . To fix this we needed to run a reindex on the below indexers and clear the ...
2
votes
0answers
24 views

How to override default search result in magento 2

I want to override default Magento search result, as I am not getting idea from which file all data is displayed from which I want to filter the data. Following are the requirements for overriding ...
0
votes
0answers
20 views

redirection from payment gateway to website make empty cart

We are using Paytm extension in our client's website https://www.safaribags.com which builds on Magento 2.1 When customers click on "Pay with Paytm" button, the customer redirects to the Paytm Pay ...