- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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 weight as line item meta in CSV export Default format | |
*/ | |
function sv_add_weight_to_csv_export_line_item( $line_item, $item, $product, $order ) { | |
$line_item['weight'] = $product->get_weight(); | |
return $line_item; |
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
.wc-measurement-price-calculator-pricing-table thead th { | |
text-align: center; | |
} |
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 | |
/** | |
* Modify the order export column headers to seperate coupons into multiple columns | |
* | |
* @param array $column_headers column headers in column_key => column_name format | |
* @param \WC_Customer_Order_CSV_Export_Generator the generator instance | |
* @return array modified column headers | |
*/ | |
function sv_csv_export_multi_column_coupons_order_headers( $column_headers, $generator ) { |
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 | |
/** | |
* CSV Customer Export Column Headers. | |
* | |
* Filter the column headers for the customer export | |
* | |
* @param array $column_headers { | |
* column headers in key => name format | |
* } |
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 | |
/** | |
* Modify the order export column headers to add Custom Order Fields | |
* | |
* @param array $column_headers column headers in column_key => column_name format | |
* @param \WC_Customer_Order_CSV_Export_Generator the generator instance | |
* @return array modified column headers | |
*/ | |
function sv_csv_export_custom_order_fields_order_headers( $column_headers, $generator ) { |
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 | |
// Reposition Checkout Addons to under Order Notes | |
function sv_wc_checkout_addons_change_position() { | |
return 'woocommerce_after_order_notes'; | |
} | |
add_filter( 'wc_checkout_add_ons_position', 'sv_wc_checkout_addons_change_position' ); |
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 custom column headers | |
function wc_csv_export_modify_column_headers( $column_headers ) { | |
$new_headers = array( | |
'column_1' => 'Column 1', | |
'column_2' => 'Column 2', | |
// add other column headers here in the format column_key => Column Name | |
); | |
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 | |
/** | |
* This adds the new unit to the WooCommerce admin | |
*/ | |
function add_woocommerce_dimension_unit_league( $settings ) { | |
foreach ( $settings as &$setting ) { | |
if ( 'woocommerce_dimension_unit' == $setting['id'] ) { |
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 | |
// rename a column | |
function wc_csv_export_rename_column( $column_headers ) { | |
// rename the order_notes column to notes | |
// make sure to not change the key (`order_notes`) in this case | |
// as this matches the column to the relevant data | |
// simply change the value of the array to change the column header that's exported | |
$column_headers['order_notes'] = 'Notes'; |