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 [environment-emulation]

The tag has no usage guidance.

0
votes
0answers
10 views

Category attribute's value does not get updated when in store emulation mode

I am trying to update some category attribute's value for a specific store, and i need to do it in emulation mode. So i do something like this: $appEmulation = Mage::getSingleton("core/...
2
votes
0answers
17 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->...
2
votes
1answer
87 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 ...
1
vote
1answer
794 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?
1
vote
2answers
1k 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 ...
0
votes
1answer
54 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
0
votes
1answer
75 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()-...
0
votes
0answers
18 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....
5
votes
4answers
3k 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'...
3
votes
1answer
2k 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 ...
1
vote
2answers
336 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 ...
23
votes
2answers
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 ...
3
votes
1answer
468 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)...