Javascript (ES6) Copy to Clipboard in Sage-9

After trying a few different Javascript copy to clipboard functions (CSStricks, Sitepoint, Clipboard.js), I couldn’t get their solutions working with ES6 and Sage, until I came across this article. I stripped it down and had to change a couple things to get it working in ES6, this was my final JS ouput that I placed inside Sage/scripts/routes/common.js … Continued

Customizing Woocommerce w/ Sage 9

Make Sage 9 Woocommerce compatible Create 2 files in sage/templates/woocommerce/ – archive-product.php and single-product.php Add only <?php echo App\Template(‘woocommerce’); to both of them and save Create a file in sage/templates/ – woocommerce.blade.php Add only: @extends(‘layouts.base’) @section(‘content‘) @php(woocommerce_content()) @endsection Add custom /sage/assets/styles/components/woocommerce.scss to link up variables.scss and bootstrap’s css (Don’t forget to import it to main.scss) Add custom /sage/src/woocommerce.php to … Continued

Installing Roots (w/ Sage-9 beta 1)

If you already have your SSH key added to DigitalOcean, skip to step 4. If you already have an SSH key, but it’s not connected to your DigitalOcean, you only need to do steps 3.5-7. If you don’t have an SSH key yet– in your command line, go to your root directory and create a new SSH key: … Continued