Modify the Expires Header

In the file: /html/joomla-usa/libraries/src/Application/WebApplication.php are the code: if (!$this->response->cachable) { // Expires in the past. $this->setHeader(‘Expires’, ‘Wed, 17 Aug 2005 00:00:00 GMT’, true); to set the header expires. I want to set the header to cache. How can I set $this->response->cachable to TRUE ? And why I can’t modify the header with: header(“expires: NOW”); or…

Magento 2.2.3 List all configurable’s childs prices when the configurable’s childs are out of stock

For a configurable product, the following code will list the configurable’s childs prices only for the childs that are in stock: if ($_product->getTypeId() == ‘configurable’) { $_children = $_product->getTypeInstance()->getUsedProducts($_product); foreach ($_children as $child){ echo $child->getPrice(); } } When all childs are out of stock, the code above will not show anything. For a configurable product…