Magento warning require bootstrap.php: failed to open stream: No such file or directory in autoload_real.php

Magento Warning display while we access the website or try to run the composer install command.

Actual Warning Message:

Warning: require(/var/www/html/vendor/composer/../phpstan/phpstan/bootstrap.php): failed to open stream: 
No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 73.

Solutions: Continue reading “Magento warning require bootstrap.php: failed to open stream: No such file or directory in autoload_real.php”

How to change sort order of product attributes from product edit page in Magento 2?

As a Magento beginner, You thought about changing the position of product attributes displayed on the admin product edit page.

If you don’t know how to change the sort order on the product edit page, This tutorial is for you to fix the sort order rendering on the product edit page.

Let’s say the product has assigned Attribute set to Default. You need to confirm the product attribute set from the product page. Continue reading “How to change sort order of product attributes from product edit page in Magento 2?”

How to update special price by REST API magento 2?

You can add/update special prices by REST API in Magento with V1/products/<SKU> endpoint.

If you want to give offers/discounts to the products over a specific period of days, you can give it with the help of REST API.

Endpoint URL: <BASE_URL>/rest/V1/products/<SKU> (Example: https://magento245.test/rest/default/V1/products/my-sku) Continue reading “How to update special price by REST API magento 2?”