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

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

Magento 2 reviews and details show together

In my product page I have the details and reviews shown separated but I want them in the same part. I have this: where "Detalhes" is the details part and "Avaliações" is the review part. I want it to ...
0
votes
0answers
6 views

Unable to Compile in magento2

i'm unable to compile in magento2 if i run the Compile command always give the result like below [dsdfsd@srv2 www]$ php bin/magento setup:di:compile Compilation was started. Proxies code generation......
0
votes
0answers
11 views

Magento 2 add query params via observer to all the URL's

I am trying to add query params dynamically in a checkout page. If the page is checkout, then for all the URL's append a query string " "?checkoutpage=true" Is there any way to add the query ...
0
votes
0answers
11 views

Magento2: Update cart from Admin panel process failed

Suppose I have select 1 product for a particular customer and then select option move to the shopping cart and click update cart button. But the product does not add to the shopping cart. No errors ...
0
votes
0answers
13 views

Fotorama zoom-in swipe doesn't work after finger zoom

Swiping between images in zoom pop-up on mobile using fingers works incorrectly Steps: go to some PDP where few images added for the products open zoom pop-up and zoom image using fingers swipe ...
0
votes
0answers
20 views

Set Ajax Response template to be phtml file

I want to send HTML in response in Ajax. The HTML I want to be of the phtml file. I have used the below code, but in Ajax, I am getting the response as undefined. $block = $resultPage->getLayout() ...
0
votes
1answer
15 views

Magento 2 configurable product variation dropdown attribute/s want to select automatically, if it has single option?

We have configurable product have some drop down attribute variations. here would like to choose by default when the attribute has single option in the product view page. Can you please provide some ...
2
votes
1answer
20 views

Disable default magento free shipping method at frontend ONLY

Store -> Settings -> Configuration -> Sales -> Shipping Methods -> Free Shipping How can I disable this default feature of Magento in frontend only?
0
votes
0answers
22 views

How to send mail of form data using AJAX in custom form?

I have created one inqueriy form in magento 2. now I want send data to given EmailID using ajax. here is my code <form> <div class="form-group"> <label for="Full Name">Full ...
0
votes
0answers
19 views

Multiple select product attribute is not showing in front end

I have created a product attribute(Bookcase Doors) and selected it has multiple select and in advanced attribute properties I have made the scope as Global but I am not getting this attribute at a ...
0
votes
0answers
22 views

Have anyone found Product Tags feature Extension for Magento2?

I want Product tag feature extension in magento2 like magento1. Have anyone implemented before? I know it's not exist in core magento2.
0
votes
0answers
13 views

Magento2: Shipping price issue on cart page

Shipping price issue on cart page and checkout page Shipping method is not showing on the cart page and checkout page. Console error below
2
votes
0answers
12 views

Magento 2.2: How to disable Attribute Set on product page

I have about 5000 types of attributes and when loading the product page it stays locked for 20 seconds. How can I remove this field from the product page?
1
vote
3answers
32 views

interceptor not generate for \Magento\Catalog\Block\Product\ListProduct

I'm trying to create plugin for getProductPrice but \Magento\Catalog\Block\Product\ListProduct Block Class not generate Interceptor Class like Magento\Catalog\Block\Product\ListProduct\Interceptor. ...
0
votes
1answer
26 views

Magento 2 - Overriding cart slider template

I'm a front end developer and recently started working with Magento 2. Currently I'm Working with Magneto 2.2.6. and trying to override Cart Slider template which is I found in my theme ...
1
vote
1answer
16 views

Magento 2 grid column text alignment

I tried to make a custom grid with column in magento 2 like this: <column name="referral_code"> <argument name="data" xsi:type="array"> <item name="config" ...
0
votes
0answers
14 views

Request for quote and checkout at same time

We have a requirement like a customer can quote an item and checkout on same time by click on the process to checkout button. we have 2 type of products on our website. one for quote item and normal ...
0
votes
2answers
35 views

Magento 2 get database prefix on install data

How to get database table prefix on install data? It is showing "table or view not found". <?php namespace ...; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\...
1
vote
2answers
34 views

Magento 2 newsletter subscription redirection to custom page

Default behavior: When I subscribed to newsletter then it displayed the success message in the same page itself. What I want is: When the customer or guest user subscribe to the newsletter I want ...
1
vote
3answers
106 views

How to get decimal value of weight in mini cart?

How to get decimal value of weight in mini cart. I need to display only 2 decimals 11.00 instead of 11.0000
0
votes
0answers
9 views

Magento 2 : Order total does not match with Klarna order total

We are configuring Klarna Payment gateway with Magento 2 web shop. There, we have created two store views for Swedish Krona and Euro currencies. When we put same currency to all store views, order ...
0
votes
0answers
14 views

How to display Custom Shipping Address form field in Magento 2 Admin under Sales->Order?

I followed this, and created new custom form field in the checkout page. I want to display my newly added Custom Shipping Address Form Field in Admin under Sales-> Order . Can you suggest me how ...
0
votes
2answers
21 views

How can we pass table to an html variable in php code? Magento2 TCPDF

I am using TCPDF Library to get PDF Downloadable. I have to pass retrieved data through loops to single vaiable as: $tcpdf->writeHTML($html, true, false, true, false, ''); I have to pass these ...
0
votes
1answer
20 views

Remove flat rate shipping on orders above 1000$?

Is there any way to remove flat are shipping on orders, if their total is above 1000$? I have to use flat rate on this site aswell, so I cant use the built in way of giving free shipping to orders, ...
2
votes
1answer
30 views

Magento226: Fatal error Call to a member function setId()

I am getting this error in magento Ui component admin form , it tried changing container instead of form in Ui form , but that did not help either. Fatal error: Method Magento\Ui\TemplateEngine\...
0
votes
0answers
10 views

Add custom button in magento2 checkout page-(IWD onestep checkout) [on hold]

I want to add custom button in my checkout page.i used IWD free extenstion for one step checkout.
0
votes
0answers
16 views

How to change the billing address fields order in magento2? [duplicate]

I want to change the ordering of billing address on checkout page, I've tried to change checkout_cart_index it changed the fields in shipping step which is good, but I need to change billing address ...
0
votes
0answers
20 views

Magento 2 how to get class name in xml file [on hold]

How can i get a class name to credit limit in myorder(frontend)
0
votes
1answer
30 views

Magento 2: Can I set a completely custom API endpoint without /rest/V1/?

I built a custom module with some API endpoints. For some technical 3rd party requirements, I need to remove the /rest/V1/ from the URLs (only for my module routes). e.g. - Instead of domain.com/rest/...
0
votes
0answers
12 views

Magento 2: Parsed less file is empty

Whenever I run command php bin/magento setup:static-content:deploy -f I am facing this issue parsed less file is empty even though I am seeing this file it is not empty, I have tried all commands, ...
0
votes
0answers
27 views

How to Page Speed available on my magento2x?

Google PageSpeed Insights Unavailable Both Mobile & Desktop. I also Add Google Analytics. How can i Improve below statement: PSI is currently showing a single-page report. Chrome User Experience ...
0
votes
1answer
25 views

Magento 2: Get Related products from Product Id now showing Name and price

Below is my code to get related products from products id, It is working fine but not giving values for name and price it just gives SKU and id $objectManager = \Magento\Framework\App\ObjectManager::...
1
vote
1answer
14 views

how to get Product id from order id

i want to get products ids in Order by using order id, i tried few methdods for it but none of them seems working $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
1answer
19 views

Magento 1 and 2 SQL Select Count of picture of all SKUs?

We are in the final steps to migrate from 1 to 2. Now we found that some picture got lost. Is there a way to select all SKUs and their picture counts like: SKU Count 123 2 234 6 345 2 ...
0
votes
1answer
15 views

Magento 2 : How to get selected simple product Id on checkout_card_add_after observer?

I want to get selected associated product id after an checkout_cart_add_after triggered. If any helps would be appreciable.
0
votes
1answer
11 views

Digital Ocean Hosting for personal development

I'm currently hosting my personal development on DO. My droplet is 1CPU 2GB and 50GB storage. I'm having issues with load times, mind you this is only for development, so I wouldn't even mind 3-4 ...
0
votes
0answers
20 views

Magento 2.2 - How to redirect url with store code to url without store code?

The site is been indexed on Google with Store Code for each store view (it/en/gb/au) now the store codes are been removed from url, so all the links end up in a 404 error. How can I set an automatic ...
0
votes
1answer
15 views

Retrieve Compare Items Collection returning zero Items Magento 2

While I am trying to return compare items in custom module phtml file, it is returning zero items but in database table catalog_compare_item showing all the added items to compare. Class Used : ...
1
vote
1answer
26 views

Magento2 : How to create frontend layout files for controller's different action wise?

I have two controller action [1] /app/code/Mycustom/Custompage/Controller/Mypage/View.php and [2] /app/code/Mycustom/Custompage/Controller/Mypage/View/Mytest.php . I have cretead frontend layout ...
0
votes
1answer
25 views

How to use a PageFactory with a Filter in magento2 [on hold]

I trying to show the selected order ids details on another page. I had tried like below, public function __construct( Context $context, \Magento\Framework\View\Result\PageFactory $...
0
votes
1answer
16 views

magento connection host use beter perform 127.0.0.1 or localhost?

magento connection host use beter perform 127.0.0.1 or localhost? <connection> <host><![CDATA[127.0.0.1]]></host> ...
0
votes
1answer
19 views

External payment gateway integrate in magento 2

External payment gateway integrate in magento 2. Any tutorial, link or any code please provide. Or any Suggestion please guide
0
votes
1answer
32 views

Magento 2 checkout address labels

How can I add a label to checkout addresses fields?
0
votes
1answer
19 views

how to show order delivery date in order confirmation email in magento2.1.7

How to show order delivery date in new order confirmation email in magento2.1.7 plz someone guide me on this thanks in advance.. i have referred this link I want to add delivery date in order email ...
1
vote
1answer
21 views

Mage 2 Headless w/ Angular - Architecture Questions

building a new site using Angular front-end and Mage 2 headless in back-end. Idea is to get all needed data via AJAX calls from Angular to Mage 2 using the REST API... First time doing this, trying ...
0
votes
1answer
22 views

Magento 2 Service Contracts and WebApi

I have implemented the Magento 2 Service Contracts, everything is working as expected, I can use my repository but as I read I can use my Service Contracts for RestAPI so I have implemented API using ...
0
votes
0answers
15 views

magento 2 product url allow slah

how can i allow slash in product seo url my slash gets changed to -. I have product abc i want url of same to be : example.com/myproducts/typeb/abc i am trying to put product url as myproducts/typeb/...
0
votes
0answers
14 views

Magento 2 - How to insert Javascript using Observer

I'm trying to trigger an event on the frontend whenever you add a product to cart. I'm already figured out how to do it when the add to cart action is using ajax requests. However, there is a specific ...
0
votes
1answer
18 views

Magento 2: Update Stock programmatically and checking with isSalable()

I am trying to update the stock programmaticaly, but I'm having some issues. What i want to do is before viewing a product on the frontend, check with an external web service to see if the product is ...
0
votes
0answers
7 views

Edit Gallery Images Json (Fotorama on Product Pages)

I'm trying to remove duplicate product images/thumbnails from rendering on the product pages. Currently overriding product/view/gallery.phtml, grabbing $block->getGalleryImagesJson() early on, ...