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

How to increase the width of Tier Price box in advanced pricing

I overwritten Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AdvancedPricing:getTierPriceStructure() Custom fields are added to the advanced pricing section but the width of the custom fields ...
0
votes
0answers
8 views

As capture the token that came through the head and send it to a function that I created myself?

I'm trying to customize the Magento API Engine 2. I would like to know if there is any time of the request, before arriving at webapi.xml to capture the token that came through the head and send it to ...
2
votes
0answers
11 views

How to trigger an index for a configurable if the simple price index was changed

I made a pull request enter link description here for an the ElasticSuite module to make a discount of configurables flag dependent on simples. Now of course the configurable has to be reindexed if ...
0
votes
0answers
8 views

Magento 2 Add Sidebar Order Summary on Customer Account Create

On Magento 2.x I'd like to display the Order Summary via the sidebar on the page customer/account/create. You can find this sidebar on Checkout/#shipping page usually. Is it even possible? I tried to ...
0
votes
0answers
14 views

Invoice email not received while place order in magento 2

I have not received invoice email after placing order. Magento version : 2.2.2 & 2.3.0 Checked in these Payment Methods : Authorize.net & Zero subtotal Checkout Expected result: Order ...
0
votes
1answer
12 views

How to get tracking number for items using order id for an order

I am getting the order information using $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\OrderRepositoryInterface')->...
0
votes
0answers
7 views

Magento2 jQuery.live is not a function on checkout page

When i am going to place an order on checkout page then on page load i am getting an error in firebug like jQuery.live is not a function on checkout page but not display always it shows sometime. ...
1
vote
0answers
15 views

How to truncate product name properly in Magento 2?

I am using 2.3.1 I have truncated product name in the listing page and displayed dots if the length of the name is more than 27 but the problem is that there are special characters like &,'," etc....
0
votes
0answers
8 views

Sorting on parent categories

Let's say that we have the following categories: Category A (60 products) Subcategory A1 (20 products) Subcategroy A2 (40 products) Products are assigned only to Subcategories A1 and A2, but they ...
1
vote
1answer
17 views

Magento 2 equivelent of __(“whatever %s”, $variable)

In Magento 1 you can use something like this Mage::helper('module')->__('Hi %s, there is an error', $name); https://stackoverflow.com/a/21726921/10121426 Does Magento 2 support this? If so what ...
1
vote
1answer
22 views

How to use resultJsonFactory in Model file magento2

I have used below code to print response from my Model file. <?php class CountrylistManagement implements \Vendor\Module\Api\CountrylistManagementInterface { protected $_storeManager; ...
1
vote
0answers
15 views

display subcategoies and their products on parent category page

I want to display subcategoies and their products on parent category page I tried this code on ../Magento_Catalog/templates/category/products.phtml but it shows all product of the parent category on ...
0
votes
1answer
16 views

How to add custom option price when product is adding add to cart using controller

I have to add the custom option price when product is adding add to cart using controller
0
votes
0answers
13 views

can virtual types be used as cronjob instances

I tried to use a virtual type in cronjob as instance but without any success. When I use a real class it works as expected. Is there any hint to get virtual types working in cronjobs? crontab.xml: &...
0
votes
0answers
13 views

Redirected automatically to a store view based on a user group - M2

I have created two store views, one for my normal customers (group) and one for my wholesale customers (group). I need that when a Wholesale customer login will be redirected automatically to the view ...
0
votes
0answers
7 views

Paypal Api sandbox disable

I'm Trying to Disable sandbpx, i get this error : GetRecurringPaymentsProfileDetails failed: Could not resolve host: api-3t.0.paypal.com; Name or service not known(6)
0
votes
3answers
37 views

How to get data from sales_order_item table in magento 2

I am new to Magento 2 and I want to get all data from sales_order_item table in Magento 2. How to get that can anyone answer?
0
votes
0answers
13 views

Package a custom extension

Can anybody help me to provide the complete process of making my custom module install able and update able using composer. I am using my custom bit bucket repository to upload my code base of ...
0
votes
1answer
20 views

Magento 2 Base Url path issue custom theme

I have a Magento 2.3.1 site installed in a subfolder and I have a problem with base URL. When I have a link like this < a href="#" > LINK < /a > Instead of this www.domainname.com/...
0
votes
0answers
8 views

Warning: session_regenerate_id(): Session object destruction failed. on Magento 2 Checkout

I have a Magento 2.2.4 running on a Windows IIS server. When entering checkout, I often get There has been an error processing your request error. When I check the error report, it says * ...
0
votes
0answers
6 views

header links in mobile view are not shown

I have moved the .header.links to another containers. Now the .header.links are in the div with class .header_links and .header_links_menu. So when I pass to a mobile view the links are not shown. I ...
1
vote
2answers
16 views

Magento 2 : Is there any way to stop to sending email to customer while importing customer?

Is there any way to stop to sending email to customer while importing customer ? Is Disable Email Communication : OFF this helpful for that ?
1
vote
1answer
17 views

urlEncode in Magento 2

How get Mage::helper('core')->urlEncode in Magento 2?
2
votes
1answer
16 views

Retrieve guest cart using token in Magento 2

When you create a guest cart you will receive a token that may look like this "696EreQdYt2AAtEceQsHfD2gxGyWFodG" and you can use it to retrieve a guest cart that has an id number. I know how to ...
0
votes
1answer
17 views

How to change “input file” storage location in customer account edit form

I have added a customer attribute called "My File". It gets added in customer account edit form. By default, the selected file(My File) is saved under "pub/media/customer" directory. In my case, I ...
1
vote
1answer
11 views

Magento 2 API add item to Cart ignore price

if i add a item to cart via api it set Magento 2 default price of the item instead price set via API 1st i create a cart for a customer: index.php/rest/default/V1/customers/631/carts via POST ...
0
votes
0answers
13 views

Recent viewed product conflcit with infiniteScroll

I have installed the Infinite scroll extension On my category Listing page. I have also added the feature of recent viewed product, but it not compatible with infinite scoll. I have done the changes ...
0
votes
0answers
14 views

Magento 2 - Configurable products options display false after import

I use Data Migration Tool to import my orders and customers, after the import was successfully my configurable products options is not display, instead the value there I see only "false". Also in the ...
0
votes
0answers
19 views

Plesk Hosting Magento 2 commands not working

I'm Using Plesk Hosting Magento 2 installed but i can't use commands any kind of command not working. i'have tried many different commands all gives error some can advice will be highly appreciated.
0
votes
0answers
12 views

Paypal Review page got error “Can't place an Order” while placing an order using paypal express checkout

I m configure PayPal express checkout but got an error based on PayPal review page which shows the message "We can't place order" while placing an order using paypal express checkout anyone has an ...
1
vote
1answer
16 views

How to get tracking number and its title(FEDEX) for each item in Magento 2

I need to get a tracking number which resides in sales_shipment_track for each item in an order. Right now I am iterating all items of an order. foreach ($_order->getAllItems() as $item) { echo $...
0
votes
0answers
16 views

How to get a simple product id from configurable option in order page in magento 2

How to get a simple product id from configurable option in order page in magento 2
0
votes
2answers
31 views

I need to get product collection by filter multiple category ids in magento 2

I need to get product collection by filter multiple category ids. Here is my code: $catId = [2, 3, 5]; $productcollection = $objectmanager->create('\Magento\Catalog\Model\ResourceModel\Product\...
0
votes
0answers
14 views

Adding subcategory on bundle product on product page ( magento 2 )

is there any way to add subcategory on bundle product in magneto 2 menu and sub-menu
0
votes
1answer
4 views

Admin Menu doesn't slide out and configuration menue doesn't open. Also buttons not working

Preconditions (*) Magento 2.3.1 Ubuntu 18.04.2 LTS PHP 7.2.17 Working in dev environment and and enabled few optimization parameters which made admin panel inaccessible and buttons were don't appear ...
1
vote
1answer
12 views

Pass current sku number to the custom phtml form before submission ( data-bind, placeholder)

i'm trying to past the value of $current_sku to the end the $title text field input on the form. How can I achieve it? Correctly, it's showing in the text input hints.. <?php $objectManager = ...
0
votes
1answer
12 views

Index sql error

When I run indexer:reindex I get the following SQL error SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your ...
1
vote
2answers
21 views

How to get all processing and pending orders programmatically?

How can I get a list of all the orders in processing and pending status in Magento 2?
0
votes
0answers
14 views

Magento 2 installation in GoDaddy shared hosting

Just installed Magento in my GoDaddy shared hosting and getting this error: Can't create directory /home/xxx/public_html/xxx.com/ecommerce/generated/code/Magento/Catalog/Controller/Adminhtml/...
0
votes
0answers
10 views

Magento 2 Customer dashboard ../customer/account/ error Object DOMDocument should be created

i have problem with magento 2 ../customer/account error Object DOMDocument should be created. In report file i have this: a:4:{i:0;s:37:"Object DOMDocument should be created.";i:1;s:14394:"#0 /...
1
vote
1answer
23 views

Does a cron job with no schedule ever fire?

Consider this in crontab.xml which I've found in a third party plugin... <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
0
votes
0answers
7 views

Magento 2 connection reset error when processing large datas

I am using Magento 2.3 in ubuntu 16.4 with apache server. I am syncing data from Dropbox csv into Magento 2 attributes. Everything working fine, but I have more than 17,000 SKU's and need to process ...
0
votes
1answer
13 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
0
votes
0answers
10 views

Magento 2 : Can i put limit for migration of records in Migration tool of Magento 2?

Magento 2 : I am trying to migrate customers using migration tool, I want to migrate huge amount of users to Magento 2. So I want to import these users in batche. Would like to know, Can i put ...
1
vote
0answers
16 views

Optimized way to get Total Delivered Items in Mageno 2

I am looking for an optimized way to get the total number of shipped/delivered items from the entire purchase history of a customer. This is the code i am using right now. /* $this->order = ...
0
votes
0answers
7 views

Magento 2 Data Migration SQL error 'Column not found' Column in m2 DB but not in m1 DB

im having this error: Its the first data migration step, the integrity step. Anyone knows what to do with that? Thanks!
2
votes
0answers
26 views

Magento 2: Use Categories Path for Product URLs is not working

I have two products having the same attributes as categories, attribute set, etc. And I have set Use Categories Path for Product URLs as NO but still, one product has the category in URL another don't ...
0
votes
0answers
7 views

Add custom widget to created block in install magento

I wanted to add my custom widget to a block that I will be creating under install function. But I can't find any tutorial on this. Right now I have copied the code from here so it creates a block. But ...
0
votes
2answers
24 views

How to get dropdown product attribute value Magento2

I have created a product drop-down attribute and assigned a value to it on the product. I need them on product detail page. $_attributeValue = $_product->getResource()->getAttribute('...
0
votes
0answers
12 views

magento 2 getting error on update product action in admin panel

I am getting the below error in the magento admin panel while editing the product options from the action dropdown. Catalog - products. Select a product or 2. Then actions menu select change attribute ...