Version Description
- July 29th, 2015 =
- Enhancement: Added the 'Easy Custom WooCommerce Product Tabs' data to the standard WooCommerce export file, so custom tab data can be transferred between sites smoothly.
Download this release
Release Info
| Developer | eherman24 |
| Plugin | |
| Version | 1.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3 to 1.4
- css/yikes-woo-tabs-font.css +28 -0
- readme.txt +7 -1
- yikes-inc-easy-custom-woocommerce-product-tabs.php +37 -1
css/yikes-woo-tabs-font.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@font-face {
|
| 2 |
+
font-family: 'yikes-woo-font';
|
| 3 |
+
src:url('./font/yikes-woo-font.eot?-394dt5');
|
| 4 |
+
src:url('./font/yikes-woo-font.eot?#iefix-394dt5') format('embedded-opentype'),
|
| 5 |
+
url('./font/yikes-woo-font.woff?-394dt5') format('woff'),
|
| 6 |
+
url('./font/yikes-woo-font.ttf?-394dt5') format('truetype'),
|
| 7 |
+
url('./font/yikes-woo-font.svg?-394dt5#yikes-woo-font') format('svg');
|
| 8 |
+
font-weight: normal;
|
| 9 |
+
font-style: normal;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
[class^="yikes-woo-"], [class*=" yikes-woo-"] {
|
| 13 |
+
font-family: 'yikes-woo-font';
|
| 14 |
+
speak: none;
|
| 15 |
+
font-style: normal;
|
| 16 |
+
font-weight: normal;
|
| 17 |
+
font-variant: normal;
|
| 18 |
+
text-transform: none;
|
| 19 |
+
line-height: 1;
|
| 20 |
+
|
| 21 |
+
/* Better Font Rendering =========== */
|
| 22 |
+
-webkit-font-smoothing: antialiased;
|
| 23 |
+
-moz-osx-font-smoothing: grayscale;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.yikes-woo-uniE600:before {
|
| 27 |
+
content: "\e600";
|
| 28 |
+
}
|
readme.txt
CHANGED
|
@@ -6,7 +6,7 @@ Requires at least: 3.8
|
|
| 6 |
Tested up to: 4.3
|
| 7 |
Requires WooCommerce at least: 2.0
|
| 8 |
Tested WooCommerce up to: 2.3.13
|
| 9 |
-
Stable tag: 1.
|
| 10 |
License: GPLv2 or later
|
| 11 |
|
| 12 |
This plugin extends WooCommerce to allow site admins to add custom tabs to products.
|
|
@@ -47,9 +47,15 @@ Make sure you hit the Product's main Update button to save all the edits you mad
|
|
| 47 |
= How do I change the order of the tabs? =
|
| 48 |
To change the order of the custom tabs use the up and down arrows to the right of the Tab Title.
|
| 49 |
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
== Changelog ==
|
| 52 |
|
|
|
|
|
|
|
|
|
|
| 53 |
= 1.3 - July 21st, 2015 =
|
| 54 |
* Enhancement: Enabled WYSIWYG editor on tab content containers (enables shortcode and content to pass through the_content() filter)
|
| 55 |
* Updated repo screenshots and descriptions
|
| 6 |
Tested up to: 4.3
|
| 7 |
Requires WooCommerce at least: 2.0
|
| 8 |
Tested WooCommerce up to: 2.3.13
|
| 9 |
+
Stable tag: 1.4
|
| 10 |
License: GPLv2 or later
|
| 11 |
|
| 12 |
This plugin extends WooCommerce to allow site admins to add custom tabs to products.
|
| 47 |
= How do I change the order of the tabs? =
|
| 48 |
To change the order of the custom tabs use the up and down arrows to the right of the Tab Title.
|
| 49 |
|
| 50 |
+
= Does the custom tab data get exported with the standard WooCommerce product data? =
|
| 51 |
+
Yes! Since v1.4 we've added the necessary hooks and filters to ensure the custom tab data is exported with all of the other standard WooCommerce data. This ensures a smooth transition of products between sites.
|
| 52 |
+
|
| 53 |
|
| 54 |
== Changelog ==
|
| 55 |
|
| 56 |
+
= 1.4 - July 29th, 2015 =
|
| 57 |
+
* Enhancement: Added the 'Easy Custom WooCommerce Product Tabs' data to the standard WooCommerce export file, so custom tab data can be transferred between sites smoothly.
|
| 58 |
+
|
| 59 |
= 1.3 - July 21st, 2015 =
|
| 60 |
* Enhancement: Enabled WYSIWYG editor on tab content containers (enables shortcode and content to pass through the_content() filter)
|
| 61 |
* Updated repo screenshots and descriptions
|
yikes-inc-easy-custom-woocommerce-product-tabs.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
| 6 |
* Author: YIKES Inc
|
| 7 |
* Author URI: http://www.yikesinc.com
|
| 8 |
-
* Version: 1.
|
| 9 |
* Tested up to: 4.3
|
| 10 |
* Text Domain: 'yikes-inc-woocommerce-custom-product-tabs'
|
| 11 |
* Domain Path: /i18n/languages/
|
|
@@ -81,8 +81,44 @@
|
|
| 81 |
|
| 82 |
add_action( 'init', array( $this, 'load_translation' ) );
|
| 83 |
add_action( 'woocommerce_init', array( $this, 'init' ) );
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
/**
|
| 88 |
* Init WooCommerce PDF Product Vouchers when WordPress initializes
|
| 5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
| 6 |
* Author: YIKES Inc
|
| 7 |
* Author URI: http://www.yikesinc.com
|
| 8 |
+
* Version: 1.4
|
| 9 |
* Tested up to: 4.3
|
| 10 |
* Text Domain: 'yikes-inc-woocommerce-custom-product-tabs'
|
| 11 |
* Domain Path: /i18n/languages/
|
| 81 |
|
| 82 |
add_action( 'init', array( $this, 'load_translation' ) );
|
| 83 |
add_action( 'woocommerce_init', array( $this, 'init' ) );
|
| 84 |
+
// add our data to the woocommerce export
|
| 85 |
+
add_filter( 'wc_customer_order_csv_export_order_headers', array( $this, 'wc_csv_export_modify_column_headers' ) );
|
| 86 |
+
add_filter( 'wc_customer_order_csv_export_order_row', array( $this, 'yikes_wootabs_wc_csv_export_modify_row_data' ), 10, 3 );
|
| 87 |
}
|
| 88 |
|
| 89 |
+
/**
|
| 90 |
+
* Add our data to the standard WooCommerce Export Functionality
|
| 91 |
+
* @since 1.4
|
| 92 |
+
**/
|
| 93 |
+
function yikes_wootabs_wc_csv_export_modify_column_headers( $column_headers ) {
|
| 94 |
+
|
| 95 |
+
$new_headers = array(
|
| 96 |
+
'yikes_woo_products_tabs' => 'Yikes Inc. Custom WooCommerce Tabs',
|
| 97 |
+
);
|
| 98 |
+
|
| 99 |
+
return array_merge( $column_headers, $new_headers );
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/**
|
| 103 |
+
* Append our yikes woo product tab data
|
| 104 |
+
* @since 1.4
|
| 105 |
+
**/
|
| 106 |
+
function yikes_wootabs_wc_csv_export_modify_row_data( $order_data, $order, $csv_generator ) {
|
| 107 |
+
|
| 108 |
+
$custom_data = array(
|
| 109 |
+
'yikes_woo_products_tabs' => get_post_meta( $order->id, 'yikes_woo_products_tabs', true ),
|
| 110 |
+
);
|
| 111 |
+
|
| 112 |
+
$new_order_data = array();
|
| 113 |
+
if ( isset( $csv_generator->order_format ) && ( 'default_one_row_per_item' == $csv_generator->order_format || 'legacy_one_row_per_item' == $csv_generator->order_format ) ) {
|
| 114 |
+
foreach ( $order_data as $data ) {
|
| 115 |
+
$new_order_data[] = array_merge( (array) $data, $custom_data );
|
| 116 |
+
}
|
| 117 |
+
} else {
|
| 118 |
+
$new_order_data = array_merge( $order_data, $custom_data );
|
| 119 |
+
}
|
| 120 |
+
return $new_order_data;
|
| 121 |
+
}
|
| 122 |
|
| 123 |
/**
|
| 124 |
* Init WooCommerce PDF Product Vouchers when WordPress initializes
|
