Questions tagged [magento2]

Magento 2 is an eCommerce project facilitating the improvement of Magento Core products. Written in PHP-Zend Framework. Available under both open-source and commercial licenses via Adobe Commerce.

Magento 2 is the next major release of Magento. It differs from previous versions of Magento substantially, including fundamental changes such as directory structure and naming conventions.

It has been released for GA (General availability) on November 17, 2015 Magento Ushers In New Era of Commerce Innovation with Next-Generation Platform

Release Notes : Release Notes 2.2

Release Notes : Release Notes 2.3

Release Notes : Release Notes 2.4

Latest Release: Magento 2.4.5 Release notes

Links :

5108 questions
1
vote
2 answers

How to get data from ui component form to controller in Magento 2

I'm trying to get data from a form to my controller. I'm using getRequest()->getParams() in my controller, but all I'm getting is the form key. What am I doing wrong? The var_dump echoes out an array containing the key and form_key, and nothing…
Oronatur
  • 17
  • 1
  • 6
1
vote
1 answer

Magento 2: Get category description

I am trying to load a collection of (sub) categories and display their description. I tried the following things (without success). Used a collection with filter to get the root category. With this method only the root category gives back the…
jrswgtr
  • 2,287
  • 8
  • 23
  • 49
1
vote
2 answers

How to create Barcode on PDF in Magento 2.3.x

I am trying to create Barcode in PDF file in Magento 2.3.x Version, Below code was working in Magento 2.1.8 However this is throwing below error - PHP Fatal error: Uncaught TypeError: Argument 1 passed to …
Rahul
  • 763
  • 1
  • 12
  • 45
1
vote
2 answers

Magento 2: Get Simple Product's Price?

I've been building a Magento 2 template however I've hit a roadblock with the way I'm pulling the prices. The prices are being pulled correctly for simple products by using the following (simplified as I'm exploding the variable to split the…
Jas Singh
  • 154
  • 4
  • 13
1
vote
1 answer

Magento 2 - Observer on event 'sales_order_place_after' not working

I am working on a magento 2 observer (without success), to execute a cURL request to a system with the orderid after a order is placed. Currently I just send an email, but that's for testing purpose only Working on a Plesk server with a fresh…
Mark
  • 31
  • 1
  • 3
1
vote
1 answer

Magento 2 ; Unable to pass custom params into the Save Button Of a UI Form

I want to pass a value/params via the save button of my ui adminform. i tried this: public function getButtonData() { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $request =…
theSeeker
  • 297
  • 4
  • 12
1
vote
2 answers

How do I send multiple query parameters to the api?

I'm calling the API to get a list of shipments but I can't seem to page through the results. The API call is successful with only one query parameter but when I call it with two query parameters, I get the error "The signature is invalid. Verify…
Patrick
  • 71
  • 10
1
vote
0 answers

Install PHP 7.2 on Fedora 30 after it's auto updated to PHP 7.3.8 via DNF

Magento 2.3 runs on PHP 7.2.x but no later. I've done a DNF update on a Fedora 30 server which just bumped PHP to 7.3.8, so the Magento install is now borked. How can I slightly downgrade (!) the PHP version to get it back into compatibility? I…
Carl Whalley
  • 3,011
  • 8
  • 33
  • 48
1
vote
1 answer

Magento 2.3. - custom import module with Magmi Integration

I'm trying to write a magento modulo for importing products from a csv file. I would like to use Magmi to achieve the import. I tried the following code but it doesn't work. namespace My\Module\Controller\Adminhtml\Home; …
o3b
  • 11
  • 1
1
vote
1 answer

Create Magento 2 cron job task programmatically

To sync data between 2 portal, I need some action manually trigger, on click of button need to schedule a cron via programmatically. I have found solution but it is for Magento 1. Code for Magento 1 is given below : $timecreated =…
Parth
  • 55
  • 1
  • 2
  • 12
1
vote
1 answer

variable @theme__color__primary-alt is undefined

while compiling, using php bin/magento setup:static-content:deploy -f I am getting the below error Deploy using quick strategy frontend/Magento/blank/en_US 2388/2778 ========================>--- 85% % 2 secs Compilation from…
Deepak
  • 11
  • 2
1
vote
1 answer

Magento 2: Transactional Email Preview Error

I'm trying to get some transactional email templates working however when I try to preview them, I get redirected to the 'Email Templates' page and get ' An error occurred. The email template can not be opened for…
Jas Singh
  • 154
  • 4
  • 13
1
vote
0 answers

Magento 2.2.4: "Sorry, no quotes are available for this order at this time"

The checkout was working smoothly and I've checked the test orders in admin panel. While during the maintenance I clean up the cache and upgrade the static content. Right after unexpectedly, I am getting message at the time of checkout "Sorry, no…
shikhar
  • 19
  • 2
1
vote
0 answers

JQuery UI Tabs not working in IE11 on Magento 2

I'm unable to get JQuery UI Tabs to work within my magento 2 application. They work completely fine in all browsers except ie11 and below so stumped about what's going on. I'm including JQuery & JQuery UI using Require to load them into my…
1
vote
0 answers

Magento 2 - Get data from a custom field in shipping and display in Admin > Sales > Order and Email

I created a module that displays custom fields in shipping at checkout and saves the data in the database in the both the quote and sales order table and I can confirm the data is there. I am trying to get the data to show in the admin when the…
stanhook
  • 63
  • 3
  • 12