Skip to content

Instantly share code, notes, and snippets.

DEGW01JLAWHORN:pwa-studio jlawhorn$ yarn workspace @magento/venia-concept add --tilde react-responsive-carousel
yarn workspace v1.17.0
yarn add v1.17.0
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning "workspace-aggregator-04b08289-9d24-402b-94d1-2631934fee55 > @magento/[email protected]" has unmet peer dependency "@babel/runtime@^7.2.0".
warning "workspace-aggregator-04b08289-9d24-402b-94d1-2631934fee55 > @magento/[email protected]" has unmet peer dependency "react@^16.8.0".
warning "workspace-aggregator-04b08289-9d24-402b-94d1-2631934fee55 > @magento/[email protected]" has unmet peer dependency "react-dom@^16.8.0".
@jlawhorn
jlawhorn / Handles Based on Login Status.xml
Last active August 29, 2015 14:05
Provide Custom Layout Based on Login Status
<customer_logged_out>
<!--code here-->
<customer_logged_out>
<customer_logged_in>
<!--code here-->
<customer_logged_in>
@jlawhorn
jlawhorn / Unwrap CMS Content.xml
Last active August 29, 2015 14:05
Remove the .std Wrapper from CMS Editor Content
<reference name="content">
<action method="unsetChild">
<alias>cms.wrapper</alias>
</action>
<block type="cms/page" name="cms_page"/>
</reference>
@jlawhorn
jlawhorn / Add a Body Class.xml
Last active August 29, 2015 14:05
Add a Conditional Body Class
<reference name="root">
<action method="addBodyClass"><className>class</className></action>
</reference>
@jlawhorn
jlawhorn / Remove Items from Right Sidebar.xml
Last active August 29, 2015 14:05
Remove Common Items from Right Sidebar
<reference name="right">
<remove name="catalog.compare.sidebar" />
<remove name="right.reports.product.viewed" />
<remove name="sale.reorder.sidebar" />
<remove name="right.poll" />
<reference name="right">
<action method="unsetChild"><name>right.permanent.callout</name></action>
</reference>
</reference>
@jlawhorn
jlawhorn / Remove old jQuery.xml
Last active August 29, 2015 14:05
Remove Old Version of jQuery Brought in by jqzoom
<catalog_product_view>
<reference name="head">
<action method="removeItem">
<type>skin_js</type><name>js/jqzoom/jquery-1.3.1.min.js</name>
</action>
</reference>
</catalog_product_view>
@jlawhorn
jlawhorn / Remove Product Tags.xml
Last active August 29, 2015 14:05
Remove Product Tags from Product View
<catalog_product_view>
<reference name="product.info.additional">
<remove name="product_tag_list"/>
</reference>
</catalog_product_view>
@jlawhorn
jlawhorn / Remove Footer Newsletter.xml
Last active August 29, 2015 14:05
Remove the Footer Newsletter with Layout XML
@jlawhorn
jlawhorn / remove common head files.xml
Last active August 29, 2015 14:05
Remove common CSS/JS Items from Magento
<action method="removeItem">
<type>skin_css</type><name>css/widgets.css</name>
</action>
<action method="removeItem">
<type>skin_css</type><name>css/styles-ie.css</name>
</action>
<action method="removeItem">
<type>js</type><name>lib/ds-sleight.js</name>
</action>
<action method="removeItem">
@jlawhorn
jlawhorn / Add JS File.xml
Last active August 29, 2015 14:05
Add a js file with Magento Layout XML
<action method="addItem">
<type>js</type><name>plugins/file.js</name>
</action>