Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

How to extend a layout file from third part module?

I want to extend the layout file of magfan_blog extension. I put my custom layout in theme folder. but it doesn't work. I'm guessing if this has anything to do with the loading order of Magento2. When ...
0
votes
0answers
7 views

Magento 2 System Config Static Image set and image Click Than That Image Prieview

I want to set static Image At system config and click on that image preview, if any one know that, than tell me how to create,I can analysis but system config only create the form field, but i want ...
0
votes
0answers
9 views

How to generate dynamic Coupon Code in Magento 2 and Send in Custom Email Template?

I have created Custom Contact Us Form. Working Well same as Contact Us with Custom Email Template Now I want to add Coupon Code which generates Coupon Code Dynamically and Expires automatically after ...
1
vote
0answers
9 views

Magento 2 REST API create for post operation

I am a newbie in Magento. I am trying to create a Magento Rest API for post operation.I go through many online resources but none of it clarify my doubt. I am trying to create an API for an operation ...
0
votes
0answers
17 views

Product EAV Index

Recently after loading a new products to our site (Magento 2.2.5) I noticed that the Product EAV index was taking 24 hours+ to build. To see if it was doing something or not I used the MySql command: ...
1
vote
0answers
14 views

Data Migration Tool Error: Base Table not Found

I need help really I am this close to data migration but I am getting following error. I am migrating data from 1.9.3.6 to 2.2.5 My database tables have prefix "mg_", I tried adding prefix command, ...
0
votes
0answers
13 views

why is component manager not showing in Magento 2.2.5 [on hold]

I have a new Magento 2.2.5 installed which does not show the Component Manager when I go to System Setup Wizard. It shows Extension Manager - Module Manager - System Upgrade and System Configuration. ...
1
vote
0answers
11 views

Magento2: Add Edit/Delete action link in separate Column in Admin Custom Grid using layout

I have created admin grid using layout. and i have added column generation code in app\code\Demo\Grid\view\adminhtml\layout\demo_grid_test_index.xml i am able to use below code for edit row, but i ...
0
votes
1answer
15 views

Custom price is not getting calculated on cart magento 2

I am setting up the custom price with some calculation during add to cart and update cart. I am using following code to add custom price $fPrice = 39.1467 // after calculation $qty = 24; $item-&...
0
votes
1answer
11 views

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css': This element is not expected

Upgrading from Magento 2.1.7 to 2.2.0 PHP 7.0 MySQL 5.6 Through command line I've run these commands and had no hiccups until I looked at the front end: bin/magento maintenance:enable composer ...
0
votes
1answer
20 views

Magento 2.2 Theme Layout

can anyone elaborate the theme structure of magento 2.2. I already refer the Theme document for it. Also i want to change the category page layout so please guide me. Category description block is ...
0
votes
0answers
12 views

How to create new product attribute with file type?

I have one question : Magento 2 doesn't support attribute with file type ? I tried create new product attribute with file type buy i can't see : Anyone can help me ?
0
votes
2answers
32 views

How to Get Order_id and Order_amount from Magento2?

How to Get Order_id and Order_amount from Magento2 and pass these value to a outside of my magento store site?
0
votes
0answers
9 views

What is routers_match and layout_render in Magento 2.2.4 Profiler?

I'm new to Magento 2. Please help me to know the meaning and how can we reduce load time of routers_match and layout_render in Magento 2.2.4 Profiler?
0
votes
0answers
10 views

how to add extra attribute properties like upload image for attribute in Magento 2

I want a image upload option in Attribute Properties in magneto2
0
votes
0answers
6 views

Clear GRID Serializer Values in hidden field

Currently, I have a working Grid Serializer. Now I want to clear the Grid serializer values without refreshing the complete page. So I have added a jquery script to clear the hidden field $("input[...
0
votes
0answers
14 views

Invalid Option Value

Very annoying on Magento V2, I am trying to make changes to one of my products customization aspects and all I have done is removed two types of delivery leaving one delivery option, I click save and ...
0
votes
0answers
14 views

Attribute Set Restriction for Configurable Product Magento 2

I have created a custom attribute set "Fabric". So now there are 2 attribute set's exists Default, and Fabric. When i went to create a configurable, there is option to select attribute set either ...
0
votes
0answers
13 views

Grunt exec doesn't work

Magento 2 (2.2.4) I ran grunt exec:xyz Running "exec:xyz" (exec) task /Users//.nvm/versions/node/v10.7.0/bin/node: bad option: --force Exited with code: 9. Error executing child ...
2
votes
0answers
6 views

Overriding\Extending Magento_Sales js files

i need to add my custom function call at the end of function loadArea() which located at Magento_Sales/order/create/scripts.js. I already do this with overriding by requirejs-config.js var config = {...
0
votes
1answer
11 views

Is it possible to integrate sms process in magento 2

I have searched sms code for magento 2. But there is only purchased extension only there. Is it possible to integrate sms in magento 2 by only coding?
1
vote
1answer
10 views

Magento2: Missing commands on build server

I try to make a Magento2 Pipeline Deployment and running in a awkward error. But first a few words to the deployment: I use a docker container with installed php and nodejs. I copy in the container ...
0
votes
0answers
10 views

Magento 2 - Remove fullscreen zoom on gallery on mobile only?

I have updated my view.xml in the my theme/etc to try and remove the fullscreen zoom on the gallery on mobile devices only. I have updated the following section to set the fullscreen to false: <...
0
votes
1answer
9 views

Magento 2 Customizable Options for orders not appearing using API

Is there a way to get customizable options from an order to the API? For example, this product allows a customer to enter a name on a t-shirt - This also appears on the admin side of the order - ...
0
votes
1answer
20 views

Magento2 : How to display custom values in checkout page

I am working on checkout page, I have pass some array values to checkout config provider. How to get those values in knockout JS and display by knockout html. Want to display all applied codes in ...
0
votes
0answers
11 views

How to wrap a class between each 2 form fields in checkout page magento2

I have checkout form fields First Name , Last Name , Country , postal code I need to wrap fields like this <div class="row"> <div class="col-md-6">Firstname field</div> <div ...
0
votes
0answers
8 views

Magento 2 - The Selenium Server is not active on host localhost at port 4444

I'm following the steps in https://devdocs.magento.com/guides/v2.2/mtf/mtf_quickstart/mtf_quickstart_runtest.html. On run this command in terminal vendor/bin/phpunit, I'm getting following error in ...
0
votes
0answers
6 views

Where can I find logic of “url_key” field for product?

Where can I find the logic for the "url_key" field in product? Because I noticed it is populated with the product name if not specified when saving new product via API and I was wondering how it works ...
0
votes
0answers
15 views

Product Image does not load on product page and admin side after upgrade magento2.1.x to 2.2.x

After Upgrade magento2.1.x version to magento2.2.x version, I lost all products on the admin side and product view page just display placeholder image instead of the real product image. I run this ...
0
votes
1answer
23 views

Magento2 How to create custom module which will be install in Vendor folder using composer

I have created an extension now I want to install this using composer command in the vendor folder.
0
votes
0answers
9 views

Varnish Intermittent 503 on larger files

I have a standard Magento 2 / Varnish setup with Redis as a session backend and Nginx for SSL termination - most things are working as expected but sometimes I get the 503 backend fetch error from ...
1
vote
0answers
26 views

Error filtering template: Invalid block type

I'm trying to create my own widget in Magento 2 however I get this error: Error filtering template: Invalid block type: Inchoo1\CatalogWidget\Block\Product\ProductsList My code is identical to ...
0
votes
1answer
27 views

Magento 2 how to change customers group based on order status with cron jobs

I'm using Magento 2.1.7 In that, if customer order status is pending and more than 30 days, how to change customer group to wholesale in CRONs? CRONs should run at every one minute. This is my code ...
0
votes
0answers
16 views

How we can add custom attribute in attribute form using observer?

I want to add the new custom attribute on attribute form to select attribute set when creating an attribute. I've checked an event in Magento '...
0
votes
1answer
24 views

How to add a filter to products grid programmatically?

I've created an EAV attribute and I want to add a filter to products grid, like: Could someone tell me what steps I have to do to solve it?
1
vote
1answer
58 views

Magento 2.2.5 : Add custom field in product attribute add form

Go to : Store -> Attributes -> Product -> Edit attribute I want to add custom dropdown as like Used in Product Listing dropdown. I added it. But, It's display in Properties tab instead of ...
0
votes
0answers
8 views

Magento 2 Custom Product Validation

When creating a product I need to make a call to our stock system to make sure that the SKU entered in Magento exists in our stock system. Please, could someone advise the best process for this? I ...
0
votes
1answer
17 views

Change magento2 cms page layout

I am using 2 column left in home page. It is a cms page. In responsive i need to load as <div class="sidebar sidebar-main"></div> <div class="column main"></div> Thanks in ...
1
vote
2answers
19 views

Remove Categories from Layered Navigation - Magento 2

I would like to remove the categories section on the layered navigation but do not see where they are called within layered navigation module.
0
votes
1answer
15 views

M2.2.5 : Can someone explain the role / functionality of the various tables used by the indexing process?

I've read the documentation about indexing in Magento 2, but it's very much on the surface. What I am wondering is how do the internals of the indexing mechanism work. Can somebody explain this to me? ...
1
vote
1answer
21 views

Remove Qty Box from mini cart and the page of checkout page

I have a site to buy a unique product (qty =1) so i need to eliminate Qty from mini cart, i just overrided /web/template/minicart/item/default.html : i removed div Qty but she still there any idea how ...
0
votes
0answers
12 views

I want to add attibute set selection option in attribute add and edit form . How will it possible in Magento2.2?

I am a new in Magento2 development. I want to add attribute set selection option on attribute add and edit form. Can anyone please guide for it. Any suggestions and references are appreciated.
0
votes
0answers
12 views

Can anyone explain how wishlist mage-cache-storage data update on every add product on wishlist in magento2?

I want to refresh wishlist mage-cache-storage data (for remove product from wishlist on product detail page)same like does on add product on wishlist. Has anyone know how data refresh of mage-cache-...
0
votes
0answers
15 views

first order dicount in magento2

tried below script but it is not applied discount for first Order. Any suggestions? Magento 2: How to implement First Order Discount?
3
votes
1answer
27 views

Create Link Dynamically By Customer Group in Customer Account Navigation - Magento 2

I am attempting to add links to certain customer groups that will show on Customer Dashboard. I'm having trouble figuring this out! Help!
1
vote
0answers
14 views

Exception message: We can't initialize Express Checkout Magento 2.2.5

Paypal Express checkout is not working for guest checkout. guest checkout is enabled. i have checked error logs and found below issue. Let me know if any one have a solution for this. main.CRITICAL: ...
1
vote
1answer
21 views

Magento 2.2.5: How to try catch in magento with AJAX?

I'm looking for some way to try catch in Magento with AJAX and then alert the error message out. I'm following some solution but doesn't work. Ok so here is what I've done til now : C:\xampp\...
1
vote
1answer
14 views

Magento 2: Upsell programmaticly add products only adds last item

I am trying to add upsell products automaticly with the Magento\Catalog\Api\Data\ProductLinkInterfaceFactory class, I added following code: EDIT CODE IS UPDATED WITH AN WORKING EXAMPLE $i = ...
1
vote
0answers
14 views

Magento 2 : Add Additional Cart Item Notice to Transactional Emails (Out of stock notice)

I am relatively new to Magento and am developing a site on version 2.2.5. I am trying to figure out how to display the cart item message notice in the transactional email. This is the notice that is ...
0
votes
0answers
14 views

Run magento2.2.3 on Local Machine - MAMP

I downloaded my live magento 2.2.3 based website into my local desktop Mamp directory. I imported the database into the local phpmyadmin. I edited the app/etc/env.php file to have the correct ...