magento2 – filter attributes related to products configurable in Magento 2

I have a page with a product list that only lists configurable products and all associated products. Filter navigation search attributes of configurable products, but I want to search filter attributes with all listed configurable elements with its simple elements.

For example, I have 8 configurable items on the product list page and each item shows all related products in a table with its attributes. So if there are color attributes in all 8 configurable elements and in some related products, this should not be done in a layered navigation color. Display the number up to 8. It should be possible to configure all the values ‚Äč‚Äčavailable on the list page and the associated products. Below is the link to the screenshot for more information.

The Magento2 order date is incorrect in the admin grid

We created an order in magento2 with API calls. It works well as expected.

We have created_at Date field as 23-01-2020 12:12:12 in the database where
like in the Admin Magento2 Order Grid it will be shown as Order Date as Jan 23,
2020, 5:42:12 p.m. Which does not match the database value. How can
I solve that?

In the Magento2 store I selected the time zone as India / Kolkata

magento2 – product pages are sometimes loaded occasionally, without obvious errors

I find the following problem on an already active site under Magento 2.3.2:

Sometimes product pages are not fully loaded, there are missing (among other things) product attributes / color fields (in our case dress sizes) which are mandatory and thus prevent the order.

* About 70% of the times when a new browser visits a product page for the first time
* approx. 40% with every update

I tried changing Magento mode, clearing all caches several times and changing the PHP version (currently to 7.2, which is provided via Apache as an FPM app). Since it is already live, I have not yet tried to disable add-on modules, although I do not see any that could directly affect the product pages.

No obvious bugs in JS console, Magento backend, or Apache logs except:
AH01070, related to errors in parsing / prematurely ending headers I'm investigating.

Has anyone come across anything similar? If not, do you have an idea how to decide whether it is an incorrect Magento configuration or an incorrect configuration of the web server?

Thank you very much

(only when I'm sure will many magento-related tags be added)

How can I add a voucher to my checkout that is not registered in magento2?

My situation is as follows: I use an apiRest that brings me vouchers. Example: 20% discount for the entire purchase.

But I cannot apply it to the till and it is reflected.

I found this link that tells me how to create a custom voucher, but I don't understand how to make it dynamic:

I also found this other link that I thought would be my solution, but it didn't really work for me:

magento2 – M2.3.3: 500 on the product creation page after adding the attribute programmatically

I programmatically add the product attribute in the following way:

use MagentoFrameworkAppBootstrap;
require '/www/public_html/app/bootstrap.php';
$params = $_SERVER;
$bootstrap = Bootstrap::create(BP, $params);
$obj = $bootstrap->getObjectManager();

$state = $obj->get('MagentoFrameworkAppState');

$eavEavSetupFactory = $obj->create('MagentoEavSetupEavSetupFactory');
$eavConfig = $obj->create('MagentoEavModelConfig');
$attributeSetFactory = $obj->create('MagentoEavModelEntityAttributeSetFactory');

/** @var ProductSetup $productSetup */
$productSetup = $eavEavSetupFactory->create();

$productEntity = $productSetup->getEntityTypeId('catalog_product');
$attributeSetId = $productSetup->getDefaultAttributeSetId($productEntity);

/** @var $attributeSet AttributeSet */
$attributeSet = $attributeSetFactory->create();
$attributeGroupId = $attributeSet->getDefaultGroupId($attributeSetId);

        'type' => 'text',
        'backend' => '',
        'frontend' => '',
        'label' => 'test_attribute',
        'input' => 'swatch_text',
        'class' => '',
        'source' => 'MagentoEavModelEntityAttributeSourceBoolean',
        'global' => MagentoEavModelEntityAttributeScopedAttributeInterface::SCOPE_GLOBAL,
        'visible' => true,
        'required' => false,
        'user_defined' => true,
        'default' => '',
        'searchable' => false,
        'filterable' => false,
        'comparable' => false,
        'visible_on_front' => true,
        'used_in_product_listing' => false,
        'unique' => false,
        'apply_to' => ''

Then I want to create a configurable product through the user interface and on the build page I see a 500 error:

2020/01/26 04:06:54 (error) 1099 # 1099: * 13639 FastCGI sent in stderr:
"PHP message: Fatal PHP error: Not caught. TypeError: Pass argument 2
Magento Framework View Element UiComponentFactory :: argumentsResolver ()
must be of type array, specified zero, called in
in line 222 and defined in
/opt/magento/public_html/vendor/magento/framework/View/Element/UiComponentFactory.php:174 stack trace:
0 /opt/magento/public_html/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
Magento Framework View Element UiComponentFactory-> argumentsResolver (& # 39; custom_text_fie … & # 39 ;,
1 /opt/magento/public_html/vendor/magento/module-ui/Component/Form/Field.php(85):
Magento Framework View Element UiComponentFactory-> create (& # 39; custom_text_fie … & # 39 ;,
& # 39; swatch_text & # 39 ;, array)
2 /opt/magento/public_html/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
Magento Ui Component Form Field-> prepare ()

What field am I missing to get this NULL instead of the array?

PS: I don't use the declarative method suggested by Magento because I don't want to use patches to create new attributes as these are created dynamically based on user input. For this reason, I no longer use the Object Manager (the only way I found that it still works in 2.3.3).

magento2 – How to get StockStatus in a Magento Catalog Block Product View block

I have a type block MagentoCatalogBlockProductView,

I want to check the inventory status of the current product.

The products in my e-shop are both simple and configurable.

For configurable objects, I would have to know whether all children are not in stock or vice versa if at least one child is in stock.

How should I do this?

magento2 – Search / Layered Navigation – How does Magento deal with grouped / configurable / options and their children?

I'm trying to understand why, in the core Magento functionality, the search and layered navigation lead well to parent products when the kids match, but why so many extensions don't.

I can see that when creating the index, the child products of all products are added to the index with "links".

I went through the main classes that were called when creating a product list, I went through everything I could see in terms of levels and product links, and I can't see exactly how it all came together to result in parent products as a result place.

I have Magento Catalog Block Product ListProduct.php Magento Catalog Model Layer Resolver.php Magento Catalog Model Layer.php Magento Catalog Model Layer Context.php Magento Catalog Model Layer FilterList.php and further searched through filters, collections and product links code.

I still can't figure out exactly how everything fits together and when the magic of "matches in simple products becomes matches in parent products" occurs.

This must be done in the search and layer flow and is not an obvious step in the normal building and filtering of collections.

Has anyone dealt with it at some point and can shed some light on it?

magento2 – Theme (Zemez Template Monster) does not support Multi-Select Layered Navigation Extension in magento 2.3.3

I was looking for free and open source multiple select layered navigation.
i found that
Extension that works 100% and meets my requirements for Blank Magento or Magento Luma

Enter image description here

As you can see, I also select multiple categories and attributes and the results are shown with no Ajax loading.

But the problem is that I installed Zemez & # 39; s theme from Template Monster.
Theme doesn't support this extension and I get the results as
Enter image description here

As you can see in the picture after the selection of the brand attribute, the brand and the filtering disappear with the simple selection and also the loading of the page without Ajax.
I have several changes in app / design / provider / theme / Magento_LayeredNavigation / templates / level /
state.phtml, layer.phtml, view.phtml but I get unexpected results.
Please help remove the overwritten methods of the topic and successfully complete the extension.