Update: Is Magento not compatible with Windows OS and Mac OS?

I am trying to update from the community edition of Magento 2.3.1 to the Enetreprise edition of M2. I am using this dockable image for M2 CE and I try to upgrade to M2 EE.
I have tried below ways:

Open Source Update to Commerce Magento 2

How to upgrade from Magento 2.3.1 CE to Magento 2. *. * EE?

But there is no luck yet. I keep trying and I found this link:

https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

Here a statement is: Operating systems (Linux x86-64)
Distributions of Linux, such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian and similar.

Magento is not compatible with:
Windows operating system,
Mac OS

I did not understand this point, can anyone clarify this? As I know, Magento works on MAC OS and Windows. Is there a stack requirement for Magento not to upgrade to Enterprise Edition?

Set the correct magento permissions

What are the correct Magento permissions and how can they be configured correctly?

magento2 – Magento 2 + Varnish + Nginx + SSL gets real IP

I am having a configuration for Magento 2 with Nginx + Varnish + SSL on the server of Ubuntu 21.04. Now, with my configuration, I only get all the records in Nginx and within Magento admin that come from the same localhost IP that Varnish listens to.
I want to change that.

What is the best way to do it?
Using Nginx and

ngx_http_realip_module

Or reconfigure Varnish with a GeoIP module that I found here:
GeoIP Varnish

For option one, will this add to my Nginx conf file?

server {
listen 8082;
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;
    
}

Do I need to change something in Magento?

Nginx.conf

case file?

magento2 – Magento 2 Color Attribute: How to make the size of the loaded samples coincide with the predetermined ones?

For the color attribute of our site, we would like to use both the default color options and some loaded samples. However, the loaded samples are much smaller, with a white border around them that the default colors do not have. I tried using images of different sizes but it did not help.

The attribute is only for search results in the sidebar, it is not part of a configurable product or anything complex. I hope this can be solved without coding because I'm not the programmer.

Thank you!

Incorrect designs in Adminhtml – Magento Stack Exchange

I noticed a strange behavior in an M2 system, I think this is related to a third-party module. All designs that should be 1-column designs, are actually 2-column designs, so something overwrites the default behavior. In conclusion, they got the wrong body class page-layout-admin-2columns-left instead of page-layout-admin-1column. I followed this thread How can I debug the processing of design files in Magento 2? to debug this, but you can not see anything wrong. So my question is, how to debug this? Any advice is useful.

enter the description of the image here

Cheers,
Jan

How to add country field in contact form in magento 1.9

We want to add a country field in the contact form in Magento 1.9
We need the country option as a pull-down.
In addition, we want to send the selected country in the contact email.

collection – Magento 1 | how to obtain product attribute data

I'm sorry for my English.

Hi. I have this code

    $ productCollection = Mage :: getModel (& # 39; catalog / product & # 39;)
-> getCollection ()
-> addAttributeToFilter (& # 39; attribute_set_id & # 39 ;, array (12.4))
-> joinField (
& # 39; quantity & # 39 ;,
& Cataloginventory / stock_item & # 39 ;,
& # 39; quantity & # 39 ;,
& # 39; product_id = entity_id & # 39 ;,
& # 39; {{table}}. stock_id = 1 & # 39 ;,
& # 39; Left & # 39;
)
-> addAttributeToFilter (& # 39; qty & # 39 ;, array ("gt" => 0))
-> setPageSize (500)
-> load ();

var_dump ($ productCollection-> getData ());

I need to get a product name, and I use this -> addAttributeToSelect (& # 39; name & # 39;) in my collection, but My collection does not return the data.

In the attribute settings, I have this

enter the description of the image here

How can I get all the product data in general?

magento2 – How to get the total number of comments belongs to a category? [Magento 1.9]

I am trying to generate rich SEO data on the category page magento or listing page. I just do not understand how I can get the total number of reviews that got that category.
I do not want to slow down the category page.

Is it possible to obtain that by directly executing the sql command?

Please help 🙁

magento2 – Add a class or id when you change the language magento 2.3.1

If you look at the source code



[... stuff ...]

The source code you are looking for is in provider / magento / module-theme / view / base / templates / root.phtml.

To change this behavior, copy the previous file to your current theme directory.

app / design / frontend / YOURVENDORNAME / YOURTHEME / Magento_Theme / templates / root.phtml

Then do something like this

get (& # 39;  Magento  Store  Model  StoreManagerInterface & # 39;);
$ dynamicVariable = $ storeManager-> getStore () -> getName ();
?>
<html  class = "">

It is a simple example but it should be enough for you to start.

And although I used the object manager, I could do a better job with helper or ViewModel if I use 2.3.

magento 1.9 – Custom attribute with custom source does not appear in Magento1 layered navigation

I have created several attributes and now I want to filter them.

I create the attributes with these values:

$ default values ​​= [
    'required' => false,
    'comparable' => true,
    'filterable' => true,
    'filterable_in_search' => true,
    'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
    'is_configurable' => false,
    'is_html_allowed_on_front' => true,
    'searchable' => true,
    'unique' => false,
    'used_for_sort_by' => true,
    'used_in_product_listing' => true,
    'user_defined' => true,
    'visible' => true,
    'visible_on_front' => true,
    'visible_in_advanced_search' => true,
];

and also specify the respective attribute with this:

& # 39; Cut & # 39; => [
        'type' => 'varchar',
        'input' => 'select',
        'label' => 'Cut',
        'group' => MyCustom_Catalog_Helper_Data::EAV_ATTRIBUTE_GROUP_NAME,
        'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
        'source' => 'mycustom_catalog/product_attribute_source_cut'
    ]

Both arrays are merged correctly when creating the attributes.

In the model of origin, I have declared getFlatColumns () Y getFlatUpdateSelect () I like this:

Public function getFlatColums ()
{
$ attributeCode = $ this-> getAttribute () -> getAttributeCode ();
$ column = [
        'unsigned' => false,
        'default'  => null,
        'extra'    => null,
    ];

if (Mage :: helper (& # 39; core & # 39;) -> useDbCompatibleMode ()) {
$ column['type']    = & # 39; varchar & # 39 ;;
$ column['is_null'] = true;
} else {
$ column['type']     = Varien_Db_Ddl_Table :: TYPE_VARCHAR;
$ column['nullable'] = true;
$ column['comment']  = & # 39; & # 39 ;;
}

he came back [$attributeCode => $column];
}

public function getFlatUpdateSelect ($ store)
{
return Mage :: getResourceSingleton (& # 39; eav / entity_attribute & # 39;)
-> getFlatUpdateSelect ($ this-> getAttribute (), $ store);
}

If I edit my products now and set the filter to cut, I can see the data on the flat table, however the value does not appear in catalog_product_index_eav.

Objective: I wish that the attribute can be filtered and seen in the layered navigation of the filter.

What am I doing wrong?