Find attribute_id
SELECT * FROM eav_attribute where attribute_code = 'is_anchor'
Update all of them with anchor_id from above (usually is ID 51)
UPDATE `catalog_category_entity_int` set value = 1 where attribute_id = 51
<?php | |
/** | |
* class for cache control | |
*/ | |
final class CacheControl | |
{ | |
private function __construct() | |
{ | |
// no instances |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.
<?php | |
/** | |
* Updated price.phtml without WEEE | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the MIT License | |
* It is available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/mit-license.php | |
* |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
Adyen Test Card Numbers | |
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform. | |
For all cards use the following expiration and CVV2/CVC2/or CID for Amex. | |
For all cards: | |
Expiration Dates CVV2 / CVC3 CID (American Express) | |
08/2018 OR 10/2020 737 7373 |
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue([product_id], 'thumbnail', [store_id]); | |
$product = new Mage_Catalog_Model_Product; | |
$imageUrl = (string)Mage::helper('catalog/image')->init($product, 'thumbnail', $image)->resize(100, 100); |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
You only need Docker installed. Add to ~/.zshrc
, or ~/.bashrc
, or whatever you're using;
lh() {
mkdir -p lighthouse && \
docker run --rm -it -v "$PWD":/usr/src -w /usr/src markhobson/node-chrome /bin/bash -c "npm i -g lighthouse && lighthouse --enable-error-reporting --chrome-flags=\"--headless --no-sandbox\" $1 --output html --output-path ./lighthouse/index.html" && \
open lighthouse/index.html
}