This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Cart to Checkout // | |
add_action( 'woocommerce_before_checkout_form', 'lk_show_cart', 5 ); | |
function lk_show_cart() | |
{ | |
global $woocommerce; | |
?> | |
<form action="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>" method="post"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Filter gateways on specific category ID | |
* | |
**/ | |
function filter_gateways($gateways){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lk_aussie_gateways( $available_gateways ) { | |
global $woocommerce; | |
if ($woocommerce->customer->get_country() == 'AU') { | |
unset( $available_gateways['cod'] ); | |
} | |
return $available_gateways; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: Example Custom Template | |
* See the codex entry on custom template for more information: http://codex.wordpress.org/Page_Templates#Custom_Page_Template | |
* | |
* Add html above or below the_content inside the comments | |
* Add php snippets as well with their own opening and closing php | |
*/ | |
global $avia_config, $post; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ol> | |
<li> | |
<div class="fade-in one"> | |
<div class="box" style="background:#d10000;"></div> | |
</div> | |
</li> | |
<li> | |
<div class="fade-in two"> | |
<div class="box" style="background:#ff6622;"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: Full width | |
* See the codex entry on custom template for more information: http://codex.wordpress.org/Page_Templates#Custom_Page_Template | |
* | |
* Add html above or below the_content inside the comments | |
* Add php snippets as well with their own opening and closing php | |
*/ | |
global $avia_config, $post; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Print Styling | |
*/ | |
.page-break { display: block; page-break-before: always; } | |
p, a, strong{ | |
color: black !important; | |
} | |
a{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# wrap single product image in an extra div | |
# | |
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2); | |
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); | |
function avia_add_image_div() | |
{ | |
echo "<div class='four units single-product-main-image alpha'>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# wrap single product image in an extra div | |
# | |
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2); | |
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); | |
function avia_add_image_div() | |
{ | |
echo "<div class='four units single-product-main-image alpha'>"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
OlderNewer