Skip to content

Instantly share code, notes, and snippets.

View gonzalojpv's full-sized avatar
🏠
Working from home

Gonzalo Vargas gonzalojpv

🏠
Working from home
View GitHub Profile
import React from 'react';
export default class App extends React.Component {
state: {
searchText: '',
data: [{id: 1, text: 'text 1'}, {id: 2, text: 'text 2'}]
}
renderFilteredData = () => {
const { searchText, data } = this.state
@bdmason
bdmason / using-sage-9-blade-templates-for-woocommerce.md
Last active October 26, 2022 10:48
Using Sage 9 blade templates for WooCommerce

Using Sage 9 blade templates for WooCommerce

Declare WooCommerce theme support

Open app/setup.php, find the after_setup_theme action and put add_theme_support('woocommerce'); inside the function.

Override the plugin templates

Add the templates you want to override in resources/woocommerce:

theme    
│