Version Description
- 30/05/2013 =
- Improved i18n
- added languages folder
- added default .po file
- added German translations for v0.1.1 (inluding the above enhancements)
- Kudos to deckerweb for the above :-)
- UI tweak to be inline with 2.0s slightly updated settings API
- Stripped object pass by reference
Download this release
Release Info
Developer | jameskoster |
Plugin | WooCommerce Cart Tab |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1 to 0.1.1
- README.md +0 -0
- cart-tab.php +11 -9
- languages/index.html +0 -0
- languages/woocommerce-cart-tab-de_DE.mo +0 -0
- languages/woocommerce-cart-tab-de_DE.po +121 -0
- languages/woocommerce-cart-tab.po +80 -0
- readme.txt +22 -9
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
README.md
CHANGED
File without changes
|
cart-tab.php
CHANGED
@@ -2,11 +2,13 @@
|
|
2 |
/*
|
3 |
Plugin Name: WooCommerce Cart Tab
|
4 |
Plugin URI: http://jameskoster.co.uk/tag/cart-tab/
|
5 |
-
Version: 0.1
|
6 |
Description: Displays a sitewide link to the cart which reveals the cart contents on hover.
|
7 |
Author: jameskoster
|
8 |
-
Tested up to: 3.
|
9 |
Author URI: http://jameskoster.co.uk
|
|
|
|
|
10 |
|
11 |
License: GNU General Public License v3.0
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -20,7 +22,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
20 |
/**
|
21 |
* Localisation
|
22 |
**/
|
23 |
-
load_plugin_textdomain( 'woocommerce-cart-tab', false, dirname( plugin_basename( __FILE__ ) ) . '/' );
|
24 |
|
25 |
|
26 |
/**
|
@@ -31,9 +33,9 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
31 |
class WC_ct {
|
32 |
|
33 |
public function __construct() {
|
34 |
-
add_action( 'wp_enqueue_scripts', array(
|
35 |
-
add_action( 'wp_footer', array(
|
36 |
-
add_filter( 'add_to_cart_fragments', array(
|
37 |
|
38 |
// Init settings
|
39 |
$this->settings = array(
|
@@ -44,7 +46,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
44 |
),
|
45 |
array(
|
46 |
'name' => __( 'Cart Widget', 'woocommerce-cart-tab' ),
|
47 |
-
'
|
48 |
'id' => 'wc_ct_cart_widget',
|
49 |
'type' => 'checkbox'
|
50 |
),
|
@@ -77,8 +79,8 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
77 |
|
78 |
|
79 |
// Admin
|
80 |
-
add_action( 'woocommerce_settings_image_options_after', array(
|
81 |
-
add_action( 'woocommerce_update_options_catalog', array(
|
82 |
}
|
83 |
|
84 |
|
2 |
/*
|
3 |
Plugin Name: WooCommerce Cart Tab
|
4 |
Plugin URI: http://jameskoster.co.uk/tag/cart-tab/
|
5 |
+
Version: 0.1.1
|
6 |
Description: Displays a sitewide link to the cart which reveals the cart contents on hover.
|
7 |
Author: jameskoster
|
8 |
+
Tested up to: 3.6
|
9 |
Author URI: http://jameskoster.co.uk
|
10 |
+
Text Domain: woocommerce-cart-tab
|
11 |
+
Domain Path: /languages/
|
12 |
|
13 |
License: GNU General Public License v3.0
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
22 |
/**
|
23 |
* Localisation
|
24 |
**/
|
25 |
+
load_plugin_textdomain( 'woocommerce-cart-tab', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
26 |
|
27 |
|
28 |
/**
|
33 |
class WC_ct {
|
34 |
|
35 |
public function __construct() {
|
36 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'setup_styles' ) ); // Enqueue the styles
|
37 |
+
add_action( 'wp_footer', array( $this, 'woocommerce_cart_tab' ) ); // The cart tab function
|
38 |
+
add_filter( 'add_to_cart_fragments', array( $this, 'wcct_add_to_cart_fragment' ) ); // The cart fragment
|
39 |
|
40 |
// Init settings
|
41 |
$this->settings = array(
|
46 |
),
|
47 |
array(
|
48 |
'name' => __( 'Cart Widget', 'woocommerce-cart-tab' ),
|
49 |
+
'desc' => __( 'Display the cart widget on hover', 'woocommerce-cart-tab' ),
|
50 |
'id' => 'wc_ct_cart_widget',
|
51 |
'type' => 'checkbox'
|
52 |
),
|
79 |
|
80 |
|
81 |
// Admin
|
82 |
+
add_action( 'woocommerce_settings_image_options_after', array( $this, 'admin_settings' ), 20);
|
83 |
+
add_action( 'woocommerce_update_options_catalog', array( $this, 'save_admin_settings' ) );
|
84 |
}
|
85 |
|
86 |
|
languages/index.html
ADDED
File without changes
|
languages/woocommerce-cart-tab-de_DE.mo
ADDED
Binary file
|
languages/woocommerce-cart-tab-de_DE.po
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This German Language File: Copyright (C) 2013 by David Decker of deckerweb.de & genesisthemes.de
|
2 |
+
# This file is distributed under the same license as the WooCommerce Cart Tab Plugin package.
|
3 |
+
#
|
4 |
+
# Weitere deutsche Sprachdateien fuer WooCommerce und Extensions (Erweiterungen)
|
5 |
+
# sowie fuer WordPress-Plugins und -Themes sind hier zu finden:
|
6 |
+
# --> http://deckerweb.de/sprachdateien/
|
7 |
+
#
|
8 |
+
msgid ""
|
9 |
+
msgstr ""
|
10 |
+
"Project-Id-Version: WooCommerce Cart Tab v0.1.1\n"
|
11 |
+
"Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
|
12 |
+
"POT-Creation-Date: 2013-03-15 23:03:27+0000\n"
|
13 |
+
"PO-Revision-Date: 2013-03-27 22:23+0100\n"
|
14 |
+
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
|
15 |
+
"Language-Team: DECKERWEB -- http://deckerweb.de/kontakt/\n"
|
16 |
+
"MIME-Version: 1.0\n"
|
17 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
18 |
+
"Content-Transfer-Encoding: 8bit\n"
|
19 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
20 |
+
"X-Generator: CSL v1.x\n"
|
21 |
+
"X-Poedit-Language: German\n"
|
22 |
+
"X-Poedit-Country: GERMANY\n"
|
23 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
24 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
25 |
+
"X-Textdomain-Support: yes\n"
|
26 |
+
"X-Poedit-SearchPath-0: .\n"
|
27 |
+
|
28 |
+
#@ woocommerce-cart-tab
|
29 |
+
#: cart-tab.php:43
|
30 |
+
msgid "Cart Tab"
|
31 |
+
msgstr "Warenkorb-Tab"
|
32 |
+
|
33 |
+
#@ woocommerce-cart-tab
|
34 |
+
#: cart-tab.php:48
|
35 |
+
msgid "Cart Widget"
|
36 |
+
msgstr "Warenkorb-Widget"
|
37 |
+
|
38 |
+
#@ woocommerce-cart-tab
|
39 |
+
#: cart-tab.php:49
|
40 |
+
msgid "Display the cart widget on hover"
|
41 |
+
msgstr "Das Warenkorb-Widget im Überfahren-Status anzeigen (Hover)"
|
42 |
+
|
43 |
+
#@ woocommerce-cart-tab
|
44 |
+
#: cart-tab.php:54
|
45 |
+
msgid "Use the light or dark skin"
|
46 |
+
msgstr "Den hellen oder dunklen Skin verwenden"
|
47 |
+
|
48 |
+
#@ woocommerce-cart-tab
|
49 |
+
#: cart-tab.php:58
|
50 |
+
msgid "Light"
|
51 |
+
msgstr "Hell"
|
52 |
+
|
53 |
+
#@ woocommerce-cart-tab
|
54 |
+
#: cart-tab.php:59
|
55 |
+
msgid "Dark"
|
56 |
+
msgstr "Dunkel"
|
57 |
+
|
58 |
+
#@ woocommerce-cart-tab
|
59 |
+
#: cart-tab.php:63
|
60 |
+
msgid "Position the cart tab on the right or left"
|
61 |
+
msgstr "Position des Warenkorb-Tabs rechts oder links"
|
62 |
+
|
63 |
+
#@ woocommerce-cart-tab
|
64 |
+
#: cart-tab.php:67
|
65 |
+
msgid "Right"
|
66 |
+
msgstr "Rechts"
|
67 |
+
|
68 |
+
#@ woocommerce-cart-tab
|
69 |
+
#: cart-tab.php:68
|
70 |
+
msgid "Left"
|
71 |
+
msgstr "Links"
|
72 |
+
|
73 |
+
#@ woocommerce-cart-tab
|
74 |
+
#: cart-tab.php:157
|
75 |
+
msgid "View your shopping cart"
|
76 |
+
msgstr "Ihren Warenkorb ansehen"
|
77 |
+
|
78 |
+
#@ woocommerce-cart-tab
|
79 |
+
#: cart-tab.php:160
|
80 |
+
#, php-format
|
81 |
+
msgid "%d item"
|
82 |
+
msgid_plural "%d items"
|
83 |
+
msgstr[0] "%d Produkt"
|
84 |
+
msgstr[1] "%d Produkte"
|
85 |
+
|
86 |
+
#@ woocommerce-cart-tab
|
87 |
+
#. translators: plugin header field 'Name'
|
88 |
+
#: cart-tab.php:0
|
89 |
+
msgid "WooCommerce Cart Tab"
|
90 |
+
msgstr "WooCommerce Warenkorb-Tab"
|
91 |
+
|
92 |
+
#@ woocommerce-cart-tab
|
93 |
+
#. translators: plugin header field 'PluginURI'
|
94 |
+
#: cart-tab.php:0
|
95 |
+
msgid "http://jameskoster.co.uk/tag/cart-tab/"
|
96 |
+
msgstr "http://jameskoster.co.uk/tag/cart-tab/"
|
97 |
+
|
98 |
+
#@ woocommerce-cart-tab
|
99 |
+
#. translators: plugin header field 'Description'
|
100 |
+
#: cart-tab.php:0
|
101 |
+
msgid "Displays a sitewide link to the cart which reveals the cart contents on hover."
|
102 |
+
msgstr "Zeigt einen Webseiten-weiten Link zum Warenkorb an, welcher die Inhalte des Warenkorbs beim Überfahren (Hover) darstellt."
|
103 |
+
|
104 |
+
#@ woocommerce-cart-tab
|
105 |
+
#. translators: plugin header field 'Author'
|
106 |
+
#: cart-tab.php:0
|
107 |
+
msgid "jameskoster"
|
108 |
+
msgstr "James Koster"
|
109 |
+
|
110 |
+
#@ woocommerce-cart-tab
|
111 |
+
#. translators: plugin header field 'AuthorURI'
|
112 |
+
#: cart-tab.php:0
|
113 |
+
msgid "http://jameskoster.co.uk"
|
114 |
+
msgstr "http://jameskoster.co.uk/"
|
115 |
+
|
116 |
+
#@ woocommerce-cart-tab
|
117 |
+
#. translators: plugin header field 'Version'
|
118 |
+
#: cart-tab.php:0
|
119 |
+
msgid "0.1.1"
|
120 |
+
msgstr "0.1.1"
|
121 |
+
|
languages/woocommerce-cart-tab.po
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is distributed under the same license as the WooCommerce Cart Tab package.
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"PO-Revision-Date: 2013-03-27 21:24:44+0000\n"
|
5 |
+
"MIME-Version: 1.0\n"
|
6 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
7 |
+
"Content-Transfer-Encoding: 8bit\n"
|
8 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
9 |
+
"X-Generator: GlotPress/0.1\n"
|
10 |
+
"Project-Id-Version: WooCommerce Cart Tab\n"
|
11 |
+
|
12 |
+
#: cart-tab.php:43
|
13 |
+
msgid "Cart Tab"
|
14 |
+
msgstr ""
|
15 |
+
|
16 |
+
#: cart-tab.php:48
|
17 |
+
msgid "Cart Widget"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: cart-tab.php:49
|
21 |
+
msgid "Display the cart widget on hover"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: cart-tab.php:54
|
25 |
+
msgid "Use the light or dark skin"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: cart-tab.php:58
|
29 |
+
msgid "Light"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: cart-tab.php:59
|
33 |
+
msgid "Dark"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: cart-tab.php:63
|
37 |
+
msgid "Position the cart tab on the right or left"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: cart-tab.php:67
|
41 |
+
msgid "Right"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: cart-tab.php:68
|
45 |
+
msgid "Left"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: cart-tab.php:157
|
49 |
+
msgid "View your shopping cart"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: cart-tab.php:160
|
53 |
+
msgid "%d item"
|
54 |
+
msgid_plural "%d items"
|
55 |
+
msgstr[0] ""
|
56 |
+
msgstr[1] ""
|
57 |
+
|
58 |
+
#: cart-tab.php:0
|
59 |
+
msgid "WooCommerce Cart Tab"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: cart-tab.php:0
|
63 |
+
msgid "http://jameskoster.co.uk/tag/cart-tab/"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: cart-tab.php:0
|
67 |
+
msgid "Displays a sitewide link to the cart which reveals the cart contents on hover."
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: cart-tab.php:0
|
71 |
+
msgid "jameskoster"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: cart-tab.php:0
|
75 |
+
msgid "http://jameskoster.co.uk"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: cart-tab.php:0
|
79 |
+
msgid "0.1.1"
|
80 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,19 +1,23 @@
|
|
1 |
=== WooCommerce Cart Tab ===
|
2 |
Contributors: jameskoster
|
3 |
Tags: woocommerce, ecommerce, cart
|
4 |
-
Requires at least: 3.
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 0.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
Displays a sitewide link to the cart which reveals the cart contents on hover.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
|
18 |
== Installation ==
|
19 |
|
@@ -36,11 +40,20 @@ Thanks! Please fork the repo on <a href="https://github.com/jameskoster/woocomme
|
|
36 |
|
37 |
== Screenshots ==
|
38 |
|
39 |
-
1. The cart tab
|
40 |
-
2. The cart tab on hover
|
41 |
-
3. The cart tab with dark skin enabled
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
= 0.1 =
|
46 |
Initial release.
|
1 |
=== WooCommerce Cart Tab ===
|
2 |
Contributors: jameskoster
|
3 |
Tags: woocommerce, ecommerce, cart
|
4 |
+
Requires at least: 3.5
|
5 |
+
Tested up to: 3.6
|
6 |
+
Stable tag: 0.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
Displays a sitewide link to the WooCommerce cart which reveals the cart contents on hover.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
A big UX mistake on many eCommerce web sites is hiding access to the cart. The next logical step after adding a product to the cart is to buy it. Don't frustrate your customers by making them search for the cart button!
|
15 |
|
16 |
+
Upon activationg this plugin will display a link to the WooCommerce cart which is visible sitewide and fixed in position so it remains visible wherever the user scrolls. When the user hovers over the tab, the full cart widget is displayed.
|
17 |
+
|
18 |
+
There are options (Catalog tab, WooCommerce settings) to display the cart tab on the right or the left, to use a light or dark skin to match your theme and to display the cart widget on hover or not.
|
19 |
+
|
20 |
+
Please feel free to contribute on <a href="https://github.com/jameskoster/woocommerce-cart-tab">github</a>.
|
21 |
|
22 |
== Installation ==
|
23 |
|
40 |
|
41 |
== Screenshots ==
|
42 |
|
43 |
+
1. The cart tab.
|
44 |
+
2. The cart tab on hover.
|
45 |
+
3. The cart tab with dark skin enabled.
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
= 0.1.1 - 30/05/2013 =
|
50 |
+
* Improved i18n
|
51 |
+
* added languages folder
|
52 |
+
* added default .po file
|
53 |
+
* added German translations for v0.1.1 (inluding the above enhancements)
|
54 |
+
* Kudos to deckerweb for the above :-)
|
55 |
+
* UI tweak to be inline with 2.0s slightly updated settings API
|
56 |
+
* Stripped object pass by reference
|
57 |
+
|
58 |
= 0.1 =
|
59 |
Initial release.
|
screenshot-1.png
CHANGED
File without changes
|
screenshot-2.png
CHANGED
File without changes
|
screenshot-3.png
CHANGED
File without changes
|