Skip to content

Instantly share code, notes, and snippets.

View OneStep21's full-sized avatar

Maxim Babara OneStep21

  • Chisinau, Moldova
View GitHub Profile
@corsonr
corsonr / functions.php
Last active August 5, 2022 09:05
WooCommerce Apple Pay via Stripe: Add more product types support
<?php // Do not include this if already open! Code goes in theme functions.php.
/*
* Add new supported product types to Apple Pay
* This sample adds WP Job Manager supports,
* you can add your own product type in the array.
*
* @return array
*/
function wc_stripe_apple_pay_add_supported_types() {
@garrettmac
garrettmac / custom.filter.buttons.tags.liquid
Last active August 29, 2025 19:48
Shopify Filter Snippets
Tag Filter:
<ul class="subnav clearfix">
<li{% unless current_tags %} class="active"{% endunless %}>
{% if collection.handle %}
<a href="/collections/{{ collection.handle }}{% if collection.sort_by %}?sort_by={{ collection.sort_by }}{% endif %}">All</a>
{% elsif collection.current_type %}
<a href="{{ collection.current_type | url_for_type | sort_by: collection.sort_by }}">All</a>