Storing and reading tier prices in a JavaScript variable (Magento 2)

Want to retrieve a product’s Magento 2 tier prices as an array and store them in a JavaScript variable for later use? Follow these steps:

You can now access the values from JavaScript, for example using a function that…

Changing the Elasticsearch or OpenSearch port via CLI (Magento 2)

To configure the Elasticsearch port from the Magento 2 command line (CLI), use:

If you use OpenSearch, run this command instead:

This way, you do not need to sign in to Magento 2 admin to change the port.…