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 | |
// Добавляем валюту гривня в WooCommerce | |
add_filter('woocommerce_currencies', 'add_my_currency'); | |
function add_my_currency($currencies) { | |
$currencies['UAH'] = __('Українська гривня', 'woocommerce'); | |
return $currencies; | |
} |
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
// ref. https://jeroensormani.com/ultimate-guide-to-woocommerce-checkout-fields/ | |
//This post is meant as a one stop shop if you’d like to make any kind of customizations to your WooCommerce checkout fields. Whether this is adding additional fields, removing some unneeded ones or changing the order they’re displayed in. | |
This post is meant as a one stop shop if you’d like to make any kind of customizations to your WooCommerce checkout fields. Whether this is adding additional fields, removing some unneeded ones or changing the order they’re displayed in. | |
Additionally there will be guides on how do display fields two field side by side, updates the order totals when a field changes and how to add basic field validation. | |
This is a post with a lot of code snippets and likely requires changes for it to fit your exact needs. Prefer to use a plugin instead? Take a look at my Advanced Checkout Fields for WooCommerce plugin. | |
Good to Know | |
These are some good to know files, hooks and functions/methods. Some of these |
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 our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |
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
*PPD-Adobe: "4.3" | |
*%%%% PPD file for ZPL Label Printer with CUPS. | |
*%%%% Created by the CUPS PPD Compiler CUPS v1.7.5. | |
*% Copyright 2007-2012 by Apple Inc. | |
*% Copyright 1997-2007 by Easy Software Products. | |
*% | |
*% These coded instructions, statements, and computer programs are the | |
*% property of Apple Inc. and are protected by Federal copyright | |
*% law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
*% which should have been included with this file. If this file is |