Skip to main content

Questions tagged [environment-emulation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
163 views

Does area emulation also influence DI / plugins?

We are reading the Magento configurable configuration inside an API call: private function getSpConfig($product) { if ($product->getTypeId() != 'configurable') { return ...
Alex's user avatar
  • 13.9k
1 vote
1 answer
2k views

Setup Magento2 Docker Config Apple Silicon M1

is there any way to set up a docker compatible environment for Apple M1? Unfortunately Warden doesn't support the new ARM chips for now. are there any viable alternatives to having a working ...
AntonioC's user avatar
  • 187
1 vote
1 answer
2k views

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt

How to install packages php7.2-hash php7.2-openssl php7.2-pdo_mysql if they are not found by apt. php7.2-hash php7.2-openssl php7.2-pdo_mysql root@sample:~# apt install php7.2-hash Reading package ...
Alice's user avatar
  • 148
2 votes
0 answers
29 views

taxClassId are not saved with the rest of the product

I'm trying to update some attributes of my product by a cron to avoid common mistakes. The code causing me trouble is executed in a loop: foreach ($storesIds as $storeId) { $this->...
JeremyC's user avatar
  • 21
4 votes
1 answer
837 views

Best practice to set default store : StoreManager or Emulation?

Context : I'm coding a lot of CLI commands and I noticed most of the time if I don't set what store I'm operating on, it will counter-intuitively be set to the first non-global store. Since more ...
Martin J.'s user avatar
  • 142
6 votes
1 answer
9k views

main.ERROR: Environment emulation nesting is not allowed. [] []

I got an error in system.log main.ERROR: Environment emulation nesting is not allowed. [] [] Why this came and how to fix this?
Rishabh Rai's user avatar
1 vote
3 answers
5k views

How to setup magento 2.1 from existing project

I have an existing project from my personal project repository. What I would like to do is clone this repository and setup the environment, and this is what I have done : Installing php 7.0 and all ...
Gujarat Santana's user avatar
0 votes
1 answer
89 views

magento 2 development environment operating system

I am using Window OS for magento 2 development. Is it better to switch to ubuntu? Is development fast in unbuntu? Thanks
Sharma's user avatar
  • 123
0 votes
1 answer
183 views

Convert environment emulation v.1.9 to v.2

How to rewrite below code to fix version 2.0 $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId); //Dealing with uninitialized translator! Mage::app()->getTranslator()-...
user1989041's user avatar
0 votes
0 answers
30 views

Emulating a different user role

Is it possible to emulate a different user role in code? I'm wondering if it is possible to do something similar to Mage_Sales_Model_Order::sendNewOrderEmail() where a different store is emulated i.e....
Skytiger's user avatar
  • 511
5 votes
4 answers
4k views

Magento 2 local development environment

I have always used MAMP PRO to configure my Magento sites for local dev, but with Magento 2 requiring mysql 5.6, I haven't had much luck setting up site successfully on local server with MAMP...plus I'...
frshjb373's user avatar
  • 466
3 votes
1 answer
7k views

What is App Emulation In magento

I want to know what is app emulation in magento... I saw its forcefully set store id ....in store...but why this is use in magento.. I use this in my project..but i want to know Detail about App ...
Deepak Rai's user avatar
  • 1,155
1 vote
2 answers
369 views

Would your recommend Magento CE for installing on Windows 8.1 OS

I have laptop with Windows 8.1 (64 bit) running. Now I want to develop an e-commerce website for my new start-up which is very small. Whether I can install Magento CE on my laptop with Windows 8.1 (64 ...
A T Manjunath's user avatar
24 votes
2 answers
3k views

Magento Development Setup

this question is directed towards setting up the development environment. I have some specific requirements: I want to be able to use my solution under Linux, Windows and Mac OS, since people of our ...
mpaepper's user avatar
  • 4,700
3 votes
1 answer
723 views

Meaning of EnvironmentEmulation

Can anyone tell me the exact meaning of EnvironmentEmulation? One usecase can be found in Mage_ProductAlert_Model_Email $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId)...
Celldweller's user avatar