Questions tagged [magento-2.0]

Questions related to Magento 2.0 version of PHP eCommerce software and platform. Questions should be related to writing code for Magento. General Magento questions may be asked on https://magento.stackexchange.com

General Magento questions may be asked on Magento.SE. Questions not related to programming are off-topic


Related tags


251 questions
3
votes
0 answers

Magento 2.1 Can't get form create observer like 2.0.x

$actionsSelect = $observer->getForm()->getElement('simple_action'); Magento 2.0.x variable $actionsSelect is working on new ver magento 2.1: variable $actionsSelect use var_dump() is return Null. public function…
Shadow
  • 103
  • 1
  • 1
  • 8
3
votes
1 answer

Magento 2 - Need to be able to have _ in url

I'm working on an extension for Magento 2 and can't seem to find any information on how to route a url with an underscore to my controller. The url I'm trying to go to: foobar/module/abandoned_carts Class namespace and name: namespace…
3
votes
1 answer

Magento 2 load very slowly after changing less file

I'm trying to create new theme. But every time I reload the home page it is going to high CPU loading. My Settings: New theme has just one file: /app/design/frontend/Test/default/web/css/source/_extend.less Magento mode: developer Front-end…
Nikolaev
  • 96
  • 7
3
votes
10 answers

Get customer data from id - magento2

how can we get the customer data from id not from customer session in Magento2. Kindly let me know.
bala.skpm
  • 67
  • 2
  • 2
  • 5
3
votes
1 answer

Installing Magento 2.0.2 on Nginx setup page not functioning

Need some help installing Magento 2.0.2 on nginx 1.9.3 with php-fpm currently I'm using the default configuration provided by Magento ( https://github.com/magento/magento2/blob/develop/nginx.conf.sample ). The issue that's happening is when…
PermaNull
  • 33
  • 4
3
votes
1 answer

Magento 2.0 - How to get Customer Multiselect Attribute Options Value

I'm trying to get custom customer attribute options value scoped on current store from customer session on Magento 2.0 EE. Now I'm getting only the options ids: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession =…
ViSuaL
  • 281
  • 2
  • 4
  • 16
3
votes
2 answers

Get form_key with javascript in Magento 2.0?

I would like to create a custom login page from outside Magento. To do so I need to get the form_key. How can I get the current form_key using javascript and/or PHP from outside Magento? Notes: I am willing to add a PHP file inside Magento to…
Gordova
  • 347
  • 1
  • 9
  • 18
3
votes
1 answer

Magento 2 - How to create an attribute set based on default

I currently have the following code which creates a new attribute set: use Magento\Framework\ObjectManagerInterface; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\ModuleDataSetupInterface; class AttributeModel extends…
jahilldev
  • 3,520
  • 4
  • 35
  • 52
3
votes
2 answers

Disable popup message in Magento 2.0

I am designing my own theme in Magento for the first time (without any base theme). By default Magento loads a popup message that says "Checkout out as a new customer Creating an account has many benefits:...". The question: How can I disable this…
Gordova
  • 347
  • 1
  • 9
  • 18
3
votes
2 answers

Magento 2.0: Adding a static block in a page template

I want to add static block in page (.phtml) template. I followed these steps:- Step1: Navigate to CONTENT >Blocks >Add New Block. Step 2: Create a Static Block (My_block). Now I want to add this Block in page template. I want to do something like…
mahipal negi
  • 317
  • 2
  • 15
3
votes
2 answers

Magento 2 installing language packs (nl_NL translation)

I currently have a fresh Magento 2 installation. A basicly have a store setup that is configured for the Dutch market. I've read the Magento 2 devdocs on installating Language Packs …
2
votes
1 answer

Magento 2 checkout_onepage_controller_success_action event not fired

I am working on Magento 2 platform. I have created my custom modue name MerchantTrack. Into events.xml (MagentoSite\app\code\Magento\MerchantTrack\Checkout\etc\frontend\events.xml) written code below
ajoy
  • 163
  • 1
  • 2
  • 15
2
votes
0 answers

Trying to run magento locally getting : Magento supports PHP 7.1.3 or later. Please read Magento System Requirements, when i have 7.2.18 installed

I have a magento2 store that works just fine on the hosted url (through A2 hosting). I am trying to get a local copy of this instance so that I can develop, test, and then push to staging, production etc... I am using docker and have followed all…
Brandon
  • 335
  • 2
  • 4
  • 15
2
votes
1 answer

SalesOrderQuery in QuickBooks Desktop does not returning All order information

I am making SalesOrderQuery to fetch Sales Orders created in Quickbooks Desktop. I have created some sales orders in QB Desktop and process them like picked, packed and shipped. So now i want to do query to get all information of order like status…
Dinesh Kaswan
  • 369
  • 2
  • 5
2
votes
0 answers

Jplayer playing audio causes error on Safari only for some audios

I have the below script on my page that instantiates all the jplayers on page load and when the play button is clicked, the audio plays. But I am having a strange issue, that for some audios, the play button starts and suddenly stops without playing…
anujeet
  • 167
  • 2
  • 14
1 2
3
16 17