This file contains hidden or 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
<script data-cfasync="false" > | |
window.saso_config = { | |
upsell_variant_choose_option: "please select", | |
upsell_variant_choose_message: "Please select an option", | |
translate_percent_off: '% Off' | |
} | |
</script> |
This file contains hidden or 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
{% unless grid_item_width %} | |
{% assign grid_item_width = 'large--one-third medium--one-half' %} | |
{% endunless %} | |
{% include 'buyx-price-min' with product %} | |
{% assign on_sale = false %} | |
{% if product.compare_at_price > buyx_price_min %} | |
{% assign on_sale = true %} |
This file contains hidden or 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
<!-- /templates/product.liquid --> | |
{% include 'buyx-product' with product %} | |
{% include 'buyx-price-min' with product %} | |
<div itemscope itemtype="http://schema.org/Product"> | |
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}"> | |
<meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}"> |
This file contains hidden or 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
after | |
{{item.variant.title}} | |
add | |
<span class="saso-cart-item-discount-notes" data-key="{{item.key}}"></span> | |
<span class="saso-cart-item-upsell-notes" data-key="{{item.key}}"></span> | |
== |
This file contains hidden or 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
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str){ | |
return str.toLowerCase(); |
This file contains hidden or 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
<script> | |
function geo(a) { | |
switch (a.country.code) | |
{ | |
case "SE": // Redirect is visitor from Sweden | |
case "NO": // Redirect is visitor from Norway | |
case "DK": // Redirect is visitor from Denmark | |
window.location = "https://se.brixtol.com" + window.location.pathname; // edit for your URL | |
break; | |
default: |
This file contains hidden or 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 | |
$args = [ | |
'post_type' => 'page', | |
'fields' => 'ids', | |
'nopaging' => true, | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'page-special.php' | |
]; | |
$pages = get_posts( $args ); | |
foreach ( $pages as $page ) |
This file contains hidden or 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
.logo_background { | |
background-image: url('../img/[email protected]'); | |
background-position: center center; | |
background-repeat: no-repeat; | |
background-size: 80px 40px; /* size of the logo image @ 1x */ | |
} | |
@media /* only for retina displays */ | |
only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (min--moz-device-pixel-ratio: 2), | |
only screen and (min-device-pixel-ratio: 2), |
This file contains hidden or 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 | |
add_action( 'after_setup_theme', 'custom_image_sizes' ); | |
function custom_image_sizes() { | |
add_image_size( 'image-1400px-wide', 1400 ); // 1400 pixels wide (and unlimited height) | |
add_image_size( 'image-700px-wide', 700 ); // 700 pixels wide (and unlimited height) | |
add_image_size( 'image-350px-wide', 350 ); // 350 pixels wide (and unlimited height) | |
} |
This file contains hidden or 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 | |
/** | |
* Extend WordPress search to include custom fields | |
*/ | |
/** | |
* Join posts and postmeta tables | |
* | |
* http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join | |
*/ |