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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# Replace any brackets with real values | |
# Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal | |
ssh [user]@[host] | |
cd ~ | |
mkdir [mydomain_com].git | |
cd [mydomain_com].git | |
git init --bare | |
vi hooks/post-receive | |
# Enter the code from the "post-receive" file (in this gist); save + quit |
bin/magento dev:urn-catalog:generate .idea/misc.xml |
<!-- for Module declaration --> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> | |
<!-- for Routers --> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> | |
<!-- for Layouts --> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<!-- for DI --> |
/** http://getbootstrap.com.vn/examples/equal-height-columns/ **/ | |
/** http://getbootstrap.com.vn/examples/equal-height-columns/equal-height-columns.css **/ | |
/* | |
* Row with equal height columns | |
* -------------------------------------------------- | |
*/ | |
.row-eq-height { | |
display: -webkit-box; | |
display: -webkit-flex; |
.clearfix:before, .container:after { content: ""; display: table; } | |
.clearfix:after { clear: both; } | |
/* IE 6/7 */ | |
.clearfix { zoom: 1; } |
Person | Group | Age | |
--- | |
Bob | 1 | 32 | |
Jill | 1 | 34 | |
Shawn| 1 | 42 | |
Jake | 2 | 29 | |
Paul | 2 | 36 | |
Laura| 2 | 39 | |
function scrollToElement($el) { | |
$('html, body').stop(true).animate({scrollTop: $el.offset().top}, 800); | |
} |
<?php | |
/* | |
Plugin Name: Rewrite Rule Tutorials | |
*/ | |
add_action( 'init', 'pmg_rewrite_add_rewrites' ); | |
function pmg_rewrite_add_rewrites() | |
{ | |
add_rewrite_endpoint( 'json', EP_PERMALINK ); | |
add_rewrite_rule( |