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

How magento2 extension available in composer

We have planning to submit a magento2 extension into Magento marketplace. Currently extension hosted in GitHub private repository. After successful approval from "Magento marketplace" (Marketing ...
0
votes
0answers
5 views

How to create Sales rule (Coupon) in magento 2 programmatically

I created the coupon in function its works perfectly now I want to apply sales rules (apply on specific product) my code is public function setCoupon() { // $this->_state->setAreaCode('...
0
votes
2answers
16 views

How can override .xml file?

I want to override this class vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml Actually I want to make customize the Grand Total Column in sales order grid <column ...
-4
votes
1answer
17 views

Optimal image dimensions?

I'm creating my Magento 2, and I'm not sure what kind of images I have to use. What is the best extension? and what size should the image have to upload it?
0
votes
0answers
12 views

Display Configurable product Highest price by default

I need to show configurable product highest price in frontend. currently by default magento is loading lowest price. please help me to solve this issue. Tried by overriding "Magento\...
0
votes
0answers
12 views

Magento 2.2.7. Cart subtotals not showing taxes

According to the configuration of the screenshot, the taxes are still not showing on the cart subtotals. Any ideas why I am missing anyway?
0
votes
2answers
19 views

Magento 2: How to increase customer login session?

I want to increase customer login session. Please tell me how can i do?
0
votes
0answers
8 views

I can't get Magehit extension to work

Each time I enable Magehit and copy the block code to display product on homepage, i get the error below, please how do i solve this? 1 exception(s): Exception #0 (Magento\Framework\Exception\...
0
votes
0answers
10 views

I want to Display a Store switcher drop down in top header

I'm trying to make a drop down for a stores not store views on the top header. I had searched more and more unfortunately always getting the store views solutions. I had created a on Magento_Store/...
1
vote
0answers
13 views

Magento2 : When making configurations options in configurable product sku undefined

When I add configurations to a configurable product the options get the sku undefined+attribute and not the name or sku of the configurable product. See screenshot below Magento version: 2.1.10
0
votes
0answers
10 views

Magento2 : Undefined Index amount in Order/Totals/Tax.phtml file

I installed one GST module on my local instance. after installing that module i am unable to create invoice for sales order. Getting the attached error message.I disabled all my third party extensions ...
0
votes
0answers
12 views

Magento2 : Unable to serialize value while importing product description from CSV for configurable products

Hi, I was trying to add description to products using CSV file for configurable products but when I tried to import the CSV i got the error regarding Unable to serialize value but if I tried to import ...
-1
votes
0answers
15 views

Magento2 : How to get order-total in shipping email

I like to get order-total in shipping email template of magento 2.3
0
votes
0answers
10 views

magento 2 Ui Component Grids displays gone

I am working on Magento 2.2.6 .Each and every grid(Custom/Builtin) are acting strange the column names are gone and few of the grids are showing blank in action column. here I'm attaching a ...
0
votes
1answer
15 views

Magneto2 : What are the Tables effected when an order created

I am creating custom attributes and magento 2.2.6 and I just want the list of the tables effected after an order creates successfully.
0
votes
0answers
12 views

How to show image of the Product in custom email. Magento 2

I'm getting my custom data from email function and also I'm getting the Product image URL to show it in mail now I tried many ways to show my image in email but its not working for me my custom email ...
0
votes
0answers
15 views

Save Button Not Working in Admin Form Custum Module Magento 2

I am Working on A magento 2 custom Module i have a Form as well a Product Grid in my form so i created tabs using block but Whenever i click on save button gives me Javascript Error TypeError: $....
0
votes
1answer
19 views

Inline Edit is not working on admin grid

I need some columns of my grid to be clickable and editable, im doing what magento tutorials say but its not working. I've tried almost everything, and rows are not clickable and the editor does not ...
-1
votes
0answers
14 views

Add Country field in custom Checkout form in Magento2

I added new step on checkout and I created a form for this new step. How can I add Magento built-in Country drop down field and state/province drop down field to my custom checkout form?
1
vote
0answers
21 views

Magento 2.2.7 checkout JS Components will not be loaded

After I updated from Magento 2.1.5 to 2.2.7 my checkout is not working any longer.When i click checkout button it continuosly loading
1
vote
0answers
18 views

Ajax call always returns in error from controller Magento 2

From my controller, I return a JSON data to my Ajax call but it always goes in the error section, even when it's not an error. jQuery.ajax({ type: 'POST', url: '/yxcustomer/index/...
2
votes
0answers
9 views

Loading Product Grid In UI Form But not able to post data to controller

load product grid ui component Am following this code its work fine and showing product grid in UI-component form but how can i post data from listing to controller with other feilds in the form... ...
1
vote
1answer
21 views

Image in invoice email template

I tried to get image for invoice email template. I used below code. Just i'm getting magento placeholder image in email template. <td> <?php $objectManager = \Magento\...
0
votes
0answers
22 views

FPC doesn't work in Magneto 2.3

This issue has been pending for long time. Does this mean this is not critical to Magento? FPC not working in 2.3. Shouldn't this be a critical issue? Is there a workaround or patch for this issue? ...
1
vote
0answers
25 views

Magento 2 - Disable Page cache for login/register page

I am facing issue with FPC, login and register pages, are adding in Page Cache, I need to disable it. I have idea that if we add cacheable="false" in any one of block that is used in login/register ...
3
votes
2answers
36 views

How to resolve Exception #0 (Exception): Notice: Array to string conversion Mailchimp Error

Exception #0 (Exception): Notice: Array to string conversion in /public_html/vendor/magento/framework/View/Element/Html/Select.php on line 244 line 235-244 of the Select.php public function ...
2
votes
1answer
30 views

Getting a CLI error when trying to compile

I am getting this error on terminal: PHP Fatal error: Class 'Cli' not found in /opt/bitnami/apache2/htdocs/bin/magento on line 31 when trying to run these commands: sudo php bin/magento setup:...
2
votes
0answers
7 views

Magento 2 Disabling Redis Session Locking

We're seeing some performance gains if we disable session locking in Redis. We haven't found any issues with doing this in our testing, but wanted to see if anyone has tried that and if they have run ...
1
vote
0answers
16 views

Shipping address changes to customer_address_entity data not from quote_address when refreshed on payment page Magento 2

We Noticed that selected shipping address is saved when clicked 'Next' on checkout/#shipping page in quote_address table. The address is changing to customer_address_entity data if the customer clicks ...
3
votes
0answers
24 views

Magento2 : How to add row/pattern type of customer attribute

How to add a row/pattern type of custom customer attribute (dynamic rows). We have the below attribute in Magento 1, we need to achieve the same in Magento 2. I don't find any code reference for this,...
3
votes
1answer
11 views

Facebook Open Graph image property

Facebook is picking up the wrong image from my Magento web site when shared. I have added the following line to my head.phtml <meta property="og:image" content="https://www.sturdykids.co.uk/skin/...
2
votes
0answers
21 views

How to show image in custom email. Magento 2

I'm getting my custom data from email function and also I'm getting the Product image URL to show it in mail now I tried many ways to show my image in email but its not working for me my custom email ...
3
votes
1answer
19 views

Magento 2.2 - Mobile_detect is not working

require_once($directory->getRoot().'/Mobile_Detect.php'); $deviceDetect = new Mobile_Detect; if ($deviceDetect->isMobile()) { echo "<script>alert('MOBILE');</script>"; } else { ...
2
votes
0answers
11 views

Popup for different products in Magento 2

I have to make a pop-up window under the products on the sales page. Instead of redirecting to ordering, a feedback form should appear. The problem is that I do not know how to tie a pop-up window ...
2
votes
1answer
24 views

TypeError: require is not a function

I add JS file in custom module Vendor\Module\view/adminhtml/layout/default.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:...
2
votes
0answers
13 views

Sort order by category id (or custom order)

i'm struggling on that simple point. How can I order my catalog search by categories ? i want to order my catalog search result like this : Categorie 1 / Category 2 / Category 3 I tried changing ...
2
votes
0answers
8 views

Magento2 set multiple table rate using shipping suite extension

I need user to see table rate quote for SpeeDee service if order is shipping to the region For that i have multiple range of zip code (53001-53299,etc..) For each range i have different weight(e.g. 0,...
1
vote
1answer
22 views

Magento 2: specific store selector for custom module in admin form

Hello I how add this store selector (first in photo) to my ui_component. Maybe someone have xml file
1
vote
1answer
18 views

Magento2 Shipping City For Shipping Amount Caluculations

I need to apply table rate shipping based on following conditions City to City Metro to City Metro to Metro City to Other City to Special Locations I written my own module but ...
1
vote
0answers
12 views

Magento 2 :Sort Attributes in layered Navigation

I want to sort the attributes in layered navigation in the alphabetical order. http://i.prntscr.com/zDuYTVDbSWqv_507ew0JbQ.png Sort in the order as:Climate, Color, ... I tried to override the ...
0
votes
1answer
23 views

add Custom CSS and JS file in admin panel in Magento 2

How can add CSS and JS File in admin panel of specific page.too many pages in admin panel e.g product,sales->order ,order view ,invoice,ship etc . . . I want to load 1 CSS or JS file in New Invoice ...
0
votes
0answers
20 views

Magento 2.3 - How to fetch stock statuses of all the stores

I need to fetch the stock status (In Stock/Out of Stock) of all the stores for the single product. I have configured MSI. Lets say am in store1. In product view page I should be able to get the stock ...
0
votes
0answers
6 views

How can I return custom products to catalog search result in Magento 2?

I am developing a custom search engine for my Magento 2 store. How can override the products returned in catalog search result with a custom plugin ?, and Can I override the result without changing ...
1
vote
3answers
24 views

Difference between Description & Short Description

What's the difference between Description & Short Description Magento Back End. Whether we need to fill both the column in Magento Back end panel while adding the listing the new products?
-1
votes
0answers
11 views

Add Construct In This Class

i have this class but when id add construct not working for me my checkout page break class PaymentMethod extends \Magento\Payment\Model\Method\AbstractMethod
0
votes
0answers
15 views

Magento 2: How to send additional data to the mail from the form?

<?php namespace Ronis\Feedback\Controller\Index; use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface; use Ronis\Feedback\Model\ConfigInterface; use Ronis\Feedback\...
1
vote
1answer
19 views

save custom value in proudct page to database table on add to cart clicked in magento2

I want to save the custom options that are on the product page in the custom table on click of add to cart in magento2 here you can see the options are displaying I want to save it in the database ...
1
vote
1answer
24 views

How to get image and price in shipping email template in Magento2.3?

How to get product image and price in shipping email template. For image i add a code in shipping/default.phtml <?php $productId = $_item->getProductId(); $objectManagerHere = \Magento\...
0
votes
0answers
13 views

Rokanthemes SlideBanner widget does not exist in widget list [on hold]

There is no plugin in the list of widgets. Other theme plugins are all there. I can configure the slider, but there is no connection to the site. Found that in the directory /app/code/Rokanthemes/...
-1
votes
0answers
18 views

Magento 2 Plugin explain in deep

Magento 2 Plugin explain which type of available plugin. All explain all kind of plugin in deep Help Me