WooCommerce Menu Cart - Version 2.6.0

Version Description

  • WooCommerce 3.0 compatibility
  • Translations: updated Swedish
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce Menu Cart
Version 2.6.0
Comparing to
See all releases

Code changes from version 2.5.8.1 to 2.6.0

images/wpo-helper.png ADDED
Binary file
includes/wpmenucart-settings.php CHANGED
@@ -241,8 +241,14 @@ class WpMenuCart_Settings {
241
  * Add menu page
242
  */
243
  public function wpmenucart_add_page() {
 
 
 
 
 
 
244
  $wpmenucart_page = add_submenu_page(
245
- 'woocommerce',
246
  __( 'Menu Cart', 'wpmenucart' ),
247
  __( 'Menu Cart Setup', 'wpmenucart' ),
248
  'manage_options',
@@ -330,14 +336,6 @@ class WpMenuCart_Settings {
330
  ?>
331
 
332
  </form>
333
- <div style="position:absolute;right: 20px;top: 20px;background-color: #fff;border: 1px solid #7AD03A;border-radius: 3px;font-size: 14px;padding: 10px;">Want To Stand Out? <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro">Go Pro.</a>
334
- <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
335
- <li><?php _e('Unlimited Menus','wpmenucart') ?></li>
336
- <li><?php _e('Choice of 14 icons','wpmenucart') ?></li>
337
- <li><?php _e('Access to Shortcode','wpmenucart') ?></li>
338
- <li><?php _e('Top Notch Support','wpmenucart') ?></li>
339
- </ul>
340
- </div>
341
  <script type="text/javascript">
342
  jQuery('.hidden-input').click(function() {
343
  jQuery(this).closest('.hidden-input').prev('.pro-feature').show('slow');
@@ -347,16 +345,53 @@ class WpMenuCart_Settings {
347
  jQuery('.pro-icon').show('slow');
348
  });
349
  </script>
350
- <div style="line-height: 20px; background: #F3F3F3;-moz-border-radius: 3px;border-radius: 3px;padding: 10px;-moz-box-shadow: 0 0 5px #ff0000;-webkit-box-shadow: 0 0 5px#ff0000;box-shadow: 0 0 5px #ff0000;padding: 10px;margin:0px auto; font-size: 13.8px;width: 60%;float: left">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  <h2><?php _e('Sell In Style With Menu Cart Pro!','wpmenucart') ?></h2>
352
  <br>
353
  <?php _e('Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:','wpmenucart') ?>
354
  <br>
355
  <ul style="list-style-type:circle;margin-left: 40px">
356
- <li><?php _e('A choice of 14 icons','wpmenucart') ?></li>
357
  <li><?php _e('A fully featured cart details flyout','wpmenucart') ?></li>
358
  <li><?php _e('Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus','wpmenucart') ?></li>
359
- <li><?php _e('Ability to add a custom css class','wpmenucart') ?></li>
 
 
360
  <li><?php _e('Automatic updates on any great new features','wpmenucart') ?></li>
361
  <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode','wpmenucart') ?></li>
362
  </ul>
@@ -365,13 +400,6 @@ class WpMenuCart_Settings {
365
  printf (__('Need to see more? %sClick here%s to check it out. Add a product to your cart and watch what happens!','wpmenucart'), $menucartadmore,'</a>'); ?><br><br>
366
  <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now','wpmenucart') ?></a>
367
  </div>
368
- <div style="line-height: 20px; background: #F3F3F3;-moz-border-radius: 3px;border-radius: 3px;padding: 10px;-moz-box-shadow: 0 0 5px #ff0000;-webkit-box-shadow: 0 0 5px#ff0000;box-shadow: 0 0 5px #ff0000;padding: 10px;margin:0px auto; margin-left: 30px; font-size: 13.8px;width: 30%;float: left">
369
- <h2><?php _e('Want your CSS customized?','wpmenucart') ?></h2>
370
- <br>
371
- <?php _e('We can do that for you! Just click the button below to check it out.','wpmenucart') ?>
372
- <br><br>
373
- <a class="button button-primary" style="text-align: center" href="https://wpovernight.com/downloads/menu-cart-pro/?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartcustomcss"><?php _e('Customize my CSS!','wpmenucart') ?></a>
374
- </div>
375
  </div>
376
  <?php
377
  }
241
  * Add menu page
242
  */
243
  public function wpmenucart_add_page() {
244
+ if (class_exists('WooCommerce')) {
245
+ $parent_slug = 'woocommerce';
246
+ } else {
247
+ $parent_slug = 'options-general.php';
248
+ }
249
+
250
  $wpmenucart_page = add_submenu_page(
251
+ $parent_slug,
252
  __( 'Menu Cart', 'wpmenucart' ),
253
  __( 'Menu Cart Setup', 'wpmenucart' ),
254
  'manage_options',
336
  ?>
337
 
338
  </form>
 
 
 
 
 
 
 
 
339
  <script type="text/javascript">
340
  jQuery('.hidden-input').click(function() {
341
  jQuery(this).closest('.hidden-input').prev('.pro-feature').show('slow');
345
  jQuery('.pro-icon').show('slow');
346
  });
347
  </script>
348
+ <style type="text/css">
349
+ .menucart-pro-ad {
350
+ border: 1px solid #3D5C99;
351
+ background-color: #EBF5FF;
352
+ border-radius: 5px;
353
+ padding: 15px;
354
+ }
355
+ .menucart-pro-ad-big {
356
+ margin-top: 15px;
357
+ min-height: 90px;
358
+ position: relative;
359
+ padding-left: 100px;
360
+ }
361
+ .menucart-pro-ad-small {
362
+ position: absolute;
363
+ right: 20px;
364
+ top: 20px;
365
+ }
366
+ img.wpo-helper {
367
+ position: absolute;
368
+ top: -20px;
369
+ left: 3px;
370
+ }
371
+ </style>
372
+ <div class="menucart-pro-ad menucart-pro-ad-small">
373
+ Want To Stand Out? <a href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartgopro">Go Pro.</a>
374
+ <ul style="font-size: 12px;list-style-type:circle;margin-left: 20px">
375
+ <li><?php _e('Unlimited Menus','wpmenucart') ?></li>
376
+ <li><?php _e('Choice of 14 icons','wpmenucart') ?></li>
377
+ <li><?php _e('Packed with customization options','wpmenucart') ?></li>
378
+ <li><?php _e('Access to Shortcode','wpmenucart') ?></li>
379
+ <li><?php _e('Top Notch Support','wpmenucart') ?></li>
380
+ </ul>
381
+ </div>
382
+ <div class="menucart-pro-ad menucart-pro-ad-big">
383
+ <img src="<?php echo plugins_url( 'images/', dirname(__FILE__) ) . 'wpo-helper.png'; ?>" class="wpo-helper">
384
  <h2><?php _e('Sell In Style With Menu Cart Pro!','wpmenucart') ?></h2>
385
  <br>
386
  <?php _e('Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:','wpmenucart') ?>
387
  <br>
388
  <ul style="list-style-type:circle;margin-left: 40px">
389
+ <li><?php _e('A choice of over 10 cart icons','wpmenucart') ?></li>
390
  <li><?php _e('A fully featured cart details flyout','wpmenucart') ?></li>
391
  <li><?php _e('Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus','wpmenucart') ?></li>
392
+ <li><?php _e('Adjust the content & URLs via the settings','wpmenucart') ?></li>
393
+ <li><?php _e('Enter custom styles and apply custom classes via the settings','wpmenucart') ?></li>
394
+ <li><?php _e('WPML compatible','wpmenucart') ?></li>
395
  <li><?php _e('Automatic updates on any great new features','wpmenucart') ?></li>
396
  <li><?php _e('Put the cart anywhere with the [wpmenucart] shortcode','wpmenucart') ?></li>
397
  </ul>
400
  printf (__('Need to see more? %sClick here%s to check it out. Add a product to your cart and watch what happens!','wpmenucart'), $menucartadmore,'</a>'); ?><br><br>
401
  <a class="button button-primary" style="text-align: center;margin: 0px auto" href="https://wpovernight.com/downloads/menu-cart-pro?utm_source=wordpress&utm_medium=menucartfree&utm_campaign=menucartadbuy"><?php _e('Buy Now','wpmenucart') ?></a>
402
  </div>
 
 
 
 
 
 
 
403
  </div>
404
  <?php
405
  }
includes/wpmenucart-woocommerce.php CHANGED
@@ -9,26 +9,52 @@ if ( ! class_exists( 'WPMenuCart_WooCommerce' ) ) {
9
 
10
  public function menu_item() {
11
  global $woocommerce;
 
 
 
 
 
12
 
13
  // $woocommerce->cart->get_cart_total() is not a display function,
14
  // so we add tax if cart prices are set to display incl. tax
15
  // see https://github.com/woothemes/woocommerce/issues/6701
16
  if ( $woocommerce->cart->display_cart_ex_tax ) {
17
- $cart_contents_total = woocommerce_price( $woocommerce->cart->cart_contents_total );
18
  } else {
19
- $cart_contents_total = woocommerce_price( $woocommerce->cart->cart_contents_total + $woocommerce->cart->tax_total );
20
  }
21
  $cart_contents_total = apply_filters( 'woocommerce_cart_contents_total', $cart_contents_total );
22
 
23
 
24
  $menu_item = array(
25
- 'cart_url' => $woocommerce->cart->get_cart_url(),
26
- 'shop_page_url' => get_permalink( woocommerce_get_page_id( 'shop' ) ),
27
  'cart_contents_count' => $woocommerce->cart->get_cart_contents_count(),
28
  'cart_total' => strip_tags( $cart_contents_total ),
29
  );
30
 
31
  return $menu_item;
32
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
  }
9
 
10
  public function menu_item() {
11
  global $woocommerce;
12
+
13
+ // make sure cart is loaded! https://wordpress.org/support/topic/activation-breaks-customise?replies=10#post-7908988
14
+ if (empty($woocommerce->cart)) {
15
+ $woocommerce->cart = new WC_Cart();
16
+ }
17
 
18
  // $woocommerce->cart->get_cart_total() is not a display function,
19
  // so we add tax if cart prices are set to display incl. tax
20
  // see https://github.com/woothemes/woocommerce/issues/6701
21
  if ( $woocommerce->cart->display_cart_ex_tax ) {
22
+ $cart_contents_total = wc_price( $woocommerce->cart->cart_contents_total );
23
  } else {
24
+ $cart_contents_total = wc_price( $woocommerce->cart->cart_contents_total + $woocommerce->cart->tax_total );
25
  }
26
  $cart_contents_total = apply_filters( 'woocommerce_cart_contents_total', $cart_contents_total );
27
 
28
 
29
  $menu_item = array(
30
+ 'cart_url' => $this->cart_url(),
31
+ 'shop_page_url' => $this->shop_url(),
32
  'cart_contents_count' => $woocommerce->cart->get_cart_contents_count(),
33
  'cart_total' => strip_tags( $cart_contents_total ),
34
  );
35
 
36
  return $menu_item;
37
  }
38
+
39
+ public function cart_url() {
40
+ if ( version_compare( WOOCOMMERCE_VERSION, '2.5.2', '>=' ) ) {
41
+ return wc_get_cart_url();
42
+ } else {
43
+ $cart_page_id = woocommerce_get_page_id('cart');
44
+ if ( $cart_page_id ) {
45
+ return apply_filters( 'woocommerce_get_cart_url', get_permalink( $cart_page_id ) );
46
+ } else {
47
+ return '';
48
+ }
49
+ }
50
+ }
51
+
52
+ public function shop_url() {
53
+ if ( version_compare( WOOCOMMERCE_VERSION, '2.5.2', '>=' ) ) {
54
+ return wc_get_page_permalink( 'shop' );
55
+ } else {
56
+ return get_permalink( woocommerce_get_page_id( 'shop' ) );
57
+ }
58
+ }
59
  }
60
  }
languages/wpmenucart-sv_SE.mo CHANGED
Binary file
languages/wpmenucart-sv_SE.po CHANGED
@@ -1,370 +1,251 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP Menu Cart\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-04-27 17:22+0100\n"
6
- "PO-Revision-Date: 2013-04-27 17:50+0100\n"
7
- "Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
8
- "Language-Team: WP Overnight <support@wpovernight.com>\n"
9
- "Language: sv_SE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
- "_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"
17
- "X-Poedit-Basepath: ../\n"
18
- "X-Textdomain-Support: yes\n"
19
- "X-Generator: Poedit 1.5.5\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
-
22
- #: wp-menu-cart-pro.php:180 wp-menu-cart-pro.php:257 wp-menu-cart.php:166
23
- #: bundles/wp-menu-cart/wp-menu-cart.php:166
24
- #: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:180
25
- #: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:257
26
- msgid "View your shopping cart"
27
- msgstr "Visa din varukorg"
28
 
29
- #: wp-menu-cart-pro.php:181 wp-menu-cart.php:167
30
- #: bundles/wp-menu-cart/wp-menu-cart.php:167
31
- #: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:181
32
- msgid "Start shopping"
33
- msgstr "Till butiken"
34
 
35
- #: wp-menu-cart-pro.php:182 wp-menu-cart.php:168
36
- #: bundles/wp-menu-cart/wp-menu-cart.php:168
37
- #: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:182
38
- #, php-format
39
- msgid "%d item"
40
- msgid_plural "%d items"
41
- msgstr[0] "%d produkt"
42
- msgstr[1] "%d produkter"
43
 
44
- #: wp-menu-cart-pro.php:264 bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:264
45
- msgid "your cart is currently empty"
46
- msgstr "Din varukorg är tom"
47
 
48
- #: wp-menu-cart-pro.php:301 wp-menu-cart.php:223
49
- #: bundles/wp-menu-cart/wp-menu-cart.php:216
50
- #: bundles/wp-menu-cart-pro/wp-menu-cart-pro.php:291
51
- msgid "Menu Cart requires a shop plugin to be active"
52
- msgstr ""
53
 
54
- #: wp-menu-cart-pro.php:307 wp-menu-cart.php:229
55
- msgid ""
56
- "An old version of WooCommerce Menu Cart is currently activated, you need to "
57
- "disable or uninstall it for WP Menu Cart to function properly"
58
- msgstr ""
59
 
60
- #: wp-menu-cart-pro.php:313
61
- msgid ""
62
- "The free version of WP Menu Cart is currently activated, you need to disable "
63
- "or uninstall it for WP Menu Cart Pro to function properly"
64
- msgstr ""
65
 
66
- #: bundles/wp-menu-cart/includes/wpmenucart-eshop.php:27
67
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop-pro.php:49
68
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop.php:27
69
- #: includes/wpmenucart-eshop-pro.php:55 includes/wpmenucart-eshop.php:33
70
- #, php-format
71
- msgid "%1$s%2$s"
72
- msgstr ""
73
 
74
- #: bundles/wp-menu-cart/includes/wpmenucart-eshop.php:27
75
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop-pro.php:49
76
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-eshop.php:27
77
- #: includes/wpmenucart-eshop-pro.php:55 includes/wpmenucart-eshop.php:33
78
- msgid "2"
79
- msgstr ""
80
 
81
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:27
82
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:27
83
- #: includes/wpmenucart-settings-pro.php:27 includes/wpmenucart-settings.php:27
84
- msgid "Plugin settings"
85
- msgstr ""
86
 
87
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:34
88
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:34
89
- #: includes/wpmenucart-settings-pro.php:34 includes/wpmenucart-settings.php:34
90
- msgid "Select which e-commerce plugin you would like Menu Cart to work with"
91
- msgstr ""
92
 
93
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:49
94
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:61
95
- #: includes/wpmenucart-settings-pro.php:61 includes/wpmenucart-settings.php:49
96
- msgid "Select the menu(s) in which you want to display the Menu Cart"
97
- msgstr ""
98
 
99
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:74
100
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:84
101
- #: includes/wpmenucart-settings-pro.php:84 includes/wpmenucart-settings.php:74
102
- msgid "Always display cart, even if it's empty"
103
- msgstr ""
104
 
105
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:86
106
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:96
107
- #: includes/wpmenucart-settings-pro.php:96 includes/wpmenucart-settings.php:86
108
- msgid "Display shopping cart icon."
109
- msgstr ""
110
 
111
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:98
112
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:108
113
- #: includes/wpmenucart-settings-pro.php:108
114
- #: includes/wpmenucart-settings.php:98
115
- msgid "Display cart contents in menu fly-out."
116
- msgstr ""
117
 
118
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:111
119
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:120
120
- #: includes/wpmenucart-settings-pro.php:120
121
- #: includes/wpmenucart-settings.php:111
122
- msgid "Set maximum number of products to display in fly-out"
123
- msgstr ""
124
 
125
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:137
126
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:145
127
- #: includes/wpmenucart-settings-pro.php:145
128
- #: includes/wpmenucart-settings.php:137
129
- msgid "Choose a cart icon."
130
- msgstr ""
131
 
132
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:166
133
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:174
134
- #: includes/wpmenucart-settings-pro.php:174
135
- #: includes/wpmenucart-settings.php:166
136
- msgid "What would you like to display in the menu?"
137
- msgstr ""
138
 
139
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:174
140
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:182
141
- #: includes/wpmenucart-settings-pro.php:182
142
- #: includes/wpmenucart-settings.php:174
143
- msgid "Items Only."
144
- msgstr ""
145
 
146
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:175
147
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:183
148
- #: includes/wpmenucart-settings-pro.php:183
149
- #: includes/wpmenucart-settings.php:175
150
- msgid "Price Only."
151
- msgstr ""
152
 
153
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:176
154
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:184
155
- #: includes/wpmenucart-settings-pro.php:184
156
- #: includes/wpmenucart-settings.php:176
157
- msgid "Both price and items."
158
- msgstr ""
159
 
160
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:183
161
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:191
162
- #: includes/wpmenucart-settings-pro.php:191
163
- #: includes/wpmenucart-settings.php:183
164
- msgid "Select the alignment that looks best with your menu."
165
- msgstr ""
166
 
167
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:191
168
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:199
169
- #: includes/wpmenucart-settings-pro.php:199
170
- #: includes/wpmenucart-settings.php:191
171
- msgid "Align Left."
172
- msgstr ""
173
 
174
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:192
175
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:200
176
- #: includes/wpmenucart-settings-pro.php:200
177
- #: includes/wpmenucart-settings.php:192
178
- msgid "Align Right."
179
- msgstr ""
180
 
181
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:193
182
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:201
183
- #: includes/wpmenucart-settings-pro.php:201
184
- #: includes/wpmenucart-settings.php:193
185
- msgid "Default Menu Alignment."
186
- msgstr ""
187
 
188
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:200
189
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:208
190
- #: includes/wpmenucart-settings-pro.php:208
191
- #: includes/wpmenucart-settings.php:200
192
- msgid "Enter a custom CSS class (optional)"
193
- msgstr ""
194
 
195
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:221
196
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:658
197
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:600
198
- #: includes/wpmenucart-settings-pro.php:600
199
- #: includes/wpmenucart-settings.php:221 includes/wpmenucart-settings.php:664
200
- msgid "Menu Cart"
201
- msgstr ""
202
 
203
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:222
204
- #: includes/wpmenucart-settings.php:222
205
- msgid "Menu Cart Setup"
206
- msgstr ""
207
 
208
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:290
209
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:298
210
- #: includes/wpmenucart-settings-pro.php:298
211
- #: includes/wpmenucart-settings.php:290
212
- msgid "WP Menu Cart Pro"
213
- msgstr ""
214
 
215
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:322
216
- #: includes/wpmenucart-settings.php:322
217
- msgid "Get WP Cart Pro!"
218
- msgstr ""
219
 
220
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:324
221
- #: includes/wpmenucart-settings.php:324
222
- msgid "Limited Offer:"
223
- msgstr ""
224
 
225
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:324
226
- #: includes/wpmenucart-settings.php:324
227
- #, php-format
228
- msgid "20% off!"
229
- msgstr ""
230
 
231
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:327
232
- #: includes/wpmenucart-settings.php:327
233
- msgid ""
234
- "Includes all the great standard features found in this free version plus:"
235
- msgstr ""
236
 
237
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:330
238
- #: includes/wpmenucart-settings.php:330
239
- msgid "A choice of over 10 cart icons"
240
- msgstr ""
241
 
242
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:331
243
- #: includes/wpmenucart-settings.php:331
244
- msgid "A fully featured cart details flyout"
245
- msgstr ""
246
 
247
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:332
248
- #: includes/wpmenucart-settings.php:332
249
- msgid "Ability to add cart + flyout for up to 3 menus"
250
- msgstr ""
251
 
252
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:333
253
- #: includes/wpmenucart-settings.php:333
254
- msgid "Ability to add a custom css class"
255
- msgstr ""
256
 
257
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:334
258
- #: includes/wpmenucart-settings.php:334
259
- msgid "Automatic updates on any great new features"
260
- msgstr ""
261
 
262
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:338
263
- #: includes/wpmenucart-settings.php:338
264
- #, php-format
265
- msgid ""
266
- "Need to see more? %sClick here%s to check it out. Add a product to your cart "
267
- "and watch what happens!"
268
- msgstr ""
269
 
270
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:339
271
- #: includes/wpmenucart-settings.php:339
272
- msgid "Buy Now"
273
- msgstr ""
274
 
275
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:342
276
- #: includes/wpmenucart-settings.php:342
277
- msgid "Want your CSS customized?"
278
- msgstr ""
279
 
280
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:344
281
- #: includes/wpmenucart-settings.php:344
282
- msgid "We can do that for you! Just click the button below to check it out."
283
- msgstr ""
284
 
285
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:346
286
- #: includes/wpmenucart-settings.php:346
287
- msgid "Customize my CSS!"
288
- msgstr ""
289
 
290
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:424
291
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:464
292
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:504
293
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:575
294
- #: includes/wpmenucart-settings.php:424 includes/wpmenucart-settings.php:464
295
- #: includes/wpmenucart-settings.php:504 includes/wpmenucart-settings.php:544
296
- #: includes/wpmenucart-settings.php:581
297
- msgid "This feature only available in"
298
- msgstr ""
299
 
300
- #: bundles/wp-menu-cart/includes/wpmenucart-settings.php:617
301
- #: includes/wpmenucart-settings.php:623
302
- msgid "Additional icons are only available in"
303
- msgstr ""
304
 
305
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:47
306
- #: includes/wpmenucart-settings-pro.php:47
307
- msgid ""
308
- "Enter your order confirmation number to receive automated updates "
309
- "(<i>format: #xxxxx</i>)"
310
- msgstr ""
311
 
312
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:228
313
- #: includes/wpmenucart-settings-pro.php:228
314
- msgid "Menu Cart Pro"
315
- msgstr ""
316
 
317
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:229
318
- #: includes/wpmenucart-settings-pro.php:229
319
- msgid "Menu Cart Pro Setup"
320
- msgstr ""
321
 
322
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:323
323
- #: includes/wpmenucart-settings-pro.php:323
324
- #, php-format
325
- msgid ""
326
- "For our custom CSS service %sClick here%s. Be sure to use the coupon code "
327
- "<strong>proservice</strong> at checkout. For support, visit %s or email %s"
328
- msgstr ""
329
 
330
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-settings-pro.php:561
331
- #: includes/wpmenucart-settings-pro.php:561
332
- msgid ""
333
- "<strong>Please note:</strong> you need to open your website in a new tab/"
334
- "browser window after updating the cart icon for the change to be visible!"
335
- msgstr ""
336
 
337
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-updater.php:76
338
- #: includes/wpmenucart-updater.php:76
339
- msgid ""
340
- "An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
341
- "\" onclick=\"document.location.reload(); return false;\">Try again</a>"
342
- msgstr ""
343
 
344
- #: bundles/wp-menu-cart-pro/includes/wpmenucart-updater.php:81
345
- #: includes/wpmenucart-updater.php:81
346
- msgid "An unknown error occurred"
347
- msgstr ""
348
 
349
- #~ msgid ""
350
- #~ "WooCommerce Menu Cart depends on <a href=\"%s\">WooCommerce</a> to work!"
351
- #~ msgstr ""
352
- #~ "WooCommerce Menu Cart heeft <a href=\"%s\">WooCommerce</a> om te kunnen "
353
- #~ "functioneren!"
354
 
355
- #~ msgid "Display Flyout."
356
- #~ msgstr "Geef flyout weer."
 
 
 
 
 
 
 
 
 
357
 
358
- #~ msgid "Set the name of the menu you want to display"
359
- #~ msgstr ""
360
- #~ "Voer de naam in van het menu waarin je het winkelwagentje wilt weergeven"
361
 
362
- #~ msgid ""
363
- #~ "Let's keep this simple! Just check the boxes next to the features you "
364
- #~ "want."
365
- #~ msgstr ""
366
- #~ "Super eenvoudig: geef simpelweg de vakjes naast de features zoals jij ze "
367
- #~ "wilt gebruiken een vinkje."
368
 
369
- #~ msgid "Save Changes"
370
- #~ msgstr "Opslaan"
 
1
+ # Translation of Plugins - WooCommerce Menu Cart - Stable (latest release) in Swedish
2
+ # This file is distributed under the same license as the Plugins - WooCommerce Menu Cart - Stable (latest release) package.
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2017-02-13 19:28+0100\n"
 
 
 
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
+ "X-Generator: Poedit 1.8.11\n"
11
+ "Language: sv_SE\n"
12
+ "Project-Id-Version: Plugins - WooCommerce Menu Cart - Stable (latest release)\n"
13
+ "POT-Creation-Date: \n"
14
+ "Last-Translator: Johan Yourstone <johan.yourstone@gmail.com>\n"
15
+ "Language-Team: \n"
 
 
 
 
 
 
 
 
16
 
17
+ #. Author URI of the plugin/theme
18
+ msgid "www.wpovernight.com/"
19
+ msgstr "www.wpovernight.com/"
 
 
20
 
21
+ #. Author of the plugin/theme
22
+ msgid "Jeremiah Prummer, Ewout Fernhout"
23
+ msgstr "Jeremiah Prummer, Ewout Fernhout"
 
 
 
 
 
24
 
25
+ #. Description of the plugin/theme
26
+ msgid "Extension for WooCommerce that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles."
27
+ msgstr "Tillägg till WooCommerce som placerar en varukorgsikon med antal varor och total kostnad i menyraden. Aktivera tillägget, ange dina inställningar och du är klar! Kommer automatiskt anpassa sig till dina mallstilar."
28
 
29
+ #. Plugin URI of the plugin/theme
30
+ msgid "www.wpovernight.com/plugins"
31
+ msgstr "www.wpovernight.com/plugins"
 
 
32
 
33
+ #. Plugin Name of the plugin/theme
34
+ msgid "WooCommerce Menu Cart"
35
+ msgstr "WooCommerce Menu Cart"
 
 
36
 
37
+ #: wp-menu-cart.php:414
38
+ msgid "%d item"
39
+ msgid_plural "%d items"
40
+ msgstr[0] "%d vara"
41
+ msgstr[1] "%d varor"
42
 
43
+ #: wp-menu-cart.php:413
44
+ msgid "Start shopping"
45
+ msgstr "Till butiken"
 
 
 
 
46
 
47
+ #: wp-menu-cart.php:412
48
+ msgid "View your shopping cart"
49
+ msgstr "Visa din varukorg"
 
 
 
50
 
51
+ #: wp-menu-cart.php:199
52
+ msgid "An old version of WooCommerce Menu Cart is currently activated, you need to disable or uninstall it for WP Menu Cart to function properly"
53
+ msgstr "En gammal version av WooCommerce Menu Cart är för närvarande aktiverad, du måste inaktivera eller avinstallera den för att WP Menu Cart ska fungera korrekt"
 
 
54
 
55
+ #: wp-menu-cart.php:194
56
+ msgid "Hide this notice"
57
+ msgstr "Dölj denna notis"
 
 
58
 
59
+ #: wp-menu-cart.php:193
60
+ msgid "WP Menu Cart Pro could not detect an active shop plugin. Make sure you have activated at least one of the supported plugins."
61
+ msgstr "WP Menu Cart Pro kunde inte hitta ett aktivt e-handelstillägg. Se till att du har aktiverat minst ett av de tillägg som stöds."
 
 
62
 
63
+ #: includes/wpmenucart-settings.php:710
64
+ msgid "Add to Menu"
65
+ msgstr "Lägg till i meny"
 
 
66
 
67
+ #: includes/wpmenucart-settings.php:705
68
+ msgid "Menu Item"
69
+ msgstr "Menyobjekt"
 
 
70
 
71
+ #: includes/wpmenucart-settings.php:642
72
+ msgid "Additional icons are only available in"
73
+ msgstr "Ytterligare ikoner är endast tillgängliga i"
 
 
 
74
 
75
+ #: includes/wpmenucart-settings.php:442 includes/wpmenucart-settings.php:482
76
+ #: includes/wpmenucart-settings.php:524 includes/wpmenucart-settings.php:563
77
+ #: includes/wpmenucart-settings.php:600
78
+ msgid "This feature only available in"
79
+ msgstr "Den här funktionen är endast tillgänglig i"
 
80
 
81
+ #: includes/wpmenucart-settings.php:373
82
+ msgid "Customize my CSS!"
83
+ msgstr "Anpassa min CSS!"
 
 
 
84
 
85
+ #: includes/wpmenucart-settings.php:371
86
+ msgid "We can do that for you! Just click the button below to check it out."
87
+ msgstr "Vi kan göra det åt dig! Klicka bara på knappen nedan för att kolla in det."
 
 
 
88
 
89
+ #: includes/wpmenucart-settings.php:369
90
+ msgid "Want your CSS customized?"
91
+ msgstr "Vill du ha din CSS anpassad?"
 
 
 
92
 
93
+ #: includes/wpmenucart-settings.php:366
94
+ msgid "Buy Now"
95
+ msgstr "Köp nu"
 
 
 
96
 
97
+ #: includes/wpmenucart-settings.php:365
98
+ msgid "Need to see more? %sClick here%s to check it out. Add a product to your cart and watch what happens!"
99
+ msgstr "Behöver du se mer? %sKlicka här%s för att kolla in det. Lägg en produkt i varukorgen och se vad som händer!"
 
 
 
100
 
101
+ #: includes/wpmenucart-settings.php:361
102
+ msgid "Put the cart anywhere with the [wpmenucart] shortcode"
103
+ msgstr "Placera varukorgen var som helst med kortkoden [wpmenucart]"
 
 
 
104
 
105
+ #: includes/wpmenucart-settings.php:360
106
+ msgid "Automatic updates on any great new features"
107
+ msgstr "Automatiska uppdateringar för nya bra funktioner"
 
 
 
108
 
109
+ #: includes/wpmenucart-settings.php:359
110
+ msgid "Ability to add a custom css class"
111
+ msgstr "Möjlighet att lägga till en anpassad CSS-klass"
 
 
 
112
 
113
+ #: includes/wpmenucart-settings.php:358
114
+ msgid "Ability to add cart + flyout to an <strong>unlimited</strong> amount of menus"
115
+ msgstr "Möjlighet att lägga till varukorg + popup-meny till <strong>obegränsat</strong> antal menyer."
 
 
 
116
 
117
+ #: includes/wpmenucart-settings.php:357
118
+ msgid "A fully featured cart details flyout"
119
+ msgstr "En fullfjädrad popup-meny för varukorgsinnehåll"
 
 
 
120
 
121
+ #: includes/wpmenucart-settings.php:356
122
+ msgid "A choice of 14 icons"
123
+ msgstr "Ett urval av 14 ikoner"
 
 
 
 
124
 
125
+ #: includes/wpmenucart-settings.php:353
126
+ msgid "Go Pro with Menu Cart Pro. Includes all the great standard features found in this free version plus:"
127
+ msgstr "Gå över till pro med Menu Cart Pro. Inkluderar alla bra standardfunktioner som finns i gratisversionen plus:"
 
128
 
129
+ #: includes/wpmenucart-settings.php:351
130
+ msgid "Sell In Style With Menu Cart Pro!"
131
+ msgstr "Sälj i stil med Menu Cart Pro!"
 
 
 
132
 
133
+ #: includes/wpmenucart-settings.php:338
134
+ msgid "Top Notch Support"
135
+ msgstr "Utmärkt support"
 
136
 
137
+ #: includes/wpmenucart-settings.php:337
138
+ msgid "Access to Shortcode"
139
+ msgstr "Tillgång till kortkod"
 
140
 
141
+ #: includes/wpmenucart-settings.php:336
142
+ msgid "Choice of 14 icons"
143
+ msgstr "Urval av 14 ikoner"
 
 
144
 
145
+ #: includes/wpmenucart-settings.php:335
146
+ msgid "Unlimited Menus"
147
+ msgstr "Obegränsade menyer"
 
 
148
 
149
+ #: includes/wpmenucart-settings.php:312
150
+ msgid "WP Menu Cart"
151
+ msgstr "WP Menu Cart"
 
152
 
153
+ #: includes/wpmenucart-settings.php:259
154
+ msgid "Settings"
155
+ msgstr "Inställningar"
 
156
 
157
+ #: includes/wpmenucart-settings.php:247
158
+ msgid "Menu Cart Setup"
159
+ msgstr "Inställningar för Menu Cart"
 
160
 
161
+ #: includes/wpmenucart-settings.php:246 includes/wpmenucart-settings.php:689
162
+ msgid "Menu Cart"
163
+ msgstr "Menu Cart"
 
164
 
165
+ #: includes/wpmenucart-settings.php:220
166
+ msgid "Enable this option to use the built-in AJAX / live update functions instead of the default ones from WooCommerce or Jigoshop"
167
+ msgstr "Aktivera detta alternativ för att använda de inbyggda AJAX / live-funktionerna istället för standardfunktionerna från WooCommerce eller Jigoshop."
 
168
 
169
+ #: includes/wpmenucart-settings.php:213
170
+ msgid "Use Built-in AJAX"
171
+ msgstr "Använd inbyggd AJAX"
 
 
 
 
172
 
173
+ #: includes/wpmenucart-settings.php:199
174
+ msgid "Use WPML String Translation"
175
+ msgstr "Använd WPML strängöversättning"
 
176
 
177
+ #: includes/wpmenucart-settings.php:185
178
+ msgid "Enter a custom CSS class (optional)"
179
+ msgstr "Ange en anpassad CSS-klass (valfritt)"
 
180
 
181
+ #: includes/wpmenucart-settings.php:178
182
+ msgid "Default Menu Alignment."
183
+ msgstr "Standardjustering för meny"
 
184
 
185
+ #: includes/wpmenucart-settings.php:177
186
+ msgid "Align Right."
187
+ msgstr "Högerjusterad."
 
188
 
189
+ #: includes/wpmenucart-settings.php:176
190
+ msgid "Align Left."
191
+ msgstr "Vänsterjusterad."
 
 
 
 
 
 
192
 
193
+ #: includes/wpmenucart-settings.php:168
194
+ msgid "Select the alignment that looks best with your menu."
195
+ msgstr "Välj den justering som passar bäst med din meny."
 
196
 
197
+ #: includes/wpmenucart-settings.php:161
198
+ msgid "Both price and items."
199
+ msgstr "Både produkter och pris."
 
 
 
200
 
201
+ #: includes/wpmenucart-settings.php:160
202
+ msgid "Price Only."
203
+ msgstr "Endast pris."
 
204
 
205
+ #: includes/wpmenucart-settings.php:159
206
+ msgid "Items Only."
207
+ msgstr "Endast produkter."
 
208
 
209
+ #: includes/wpmenucart-settings.php:151
210
+ msgid "What would you like to display in the menu?"
211
+ msgstr "Vad vill du visa i menyn?"
 
 
 
 
212
 
213
+ #: includes/wpmenucart-settings.php:122
214
+ msgid "Choose a cart icon."
215
+ msgstr "Välj en varukorgsikon"
 
 
 
216
 
217
+ #: includes/wpmenucart-settings.php:96
218
+ msgid "Set maximum number of products to display in fly-out"
219
+ msgstr "Ange maximalt antal produkter att visa i popup-menyn"
 
 
 
220
 
221
+ #: includes/wpmenucart-settings.php:83
222
+ msgid "Display cart contents in menu fly-out."
223
+ msgstr "Visa varukorgsinnehåll i popup-meny"
 
224
 
225
+ #: includes/wpmenucart-settings.php:71
226
+ msgid "Display shopping cart icon."
227
+ msgstr "Visa varukorgsikon"
 
 
228
 
229
+ #: includes/wpmenucart-settings.php:59
230
+ msgid "Always display cart, even if it's empty"
231
+ msgstr "Visa alltid varukorg, även om den är tom"
232
+
233
+ #: includes/wpmenucart-settings.php:46
234
+ msgid "Select the menu(s) in which you want to display the Menu Cart"
235
+ msgstr "Välj menyn/menyerna du vill ska visa Menu Cart"
236
+
237
+ #: includes/wpmenucart-settings.php:33
238
+ msgid "Select which e-commerce plugin you would like Menu Cart to work with"
239
+ msgstr "Välj vilket e-handelstillägg du vill att Menu Cart ska fungera med"
240
 
241
+ #: includes/wpmenucart-settings.php:26
242
+ msgid "Plugin settings"
243
+ msgstr "Tilläggsinställningar"
244
 
245
+ #: includes/wpmenucart-eshop.php:40
246
+ msgid "2"
247
+ msgstr "2"
 
 
 
248
 
249
+ #: includes/wpmenucart-eshop.php:40
250
+ msgid "%1$s%2$s"
251
+ msgstr "%1$s%2$s"
readme.txt CHANGED
@@ -1,256 +1,259 @@
1
- === WooCommerce Menu Cart ===
2
- Contributors: jprummer, pomegranate
3
- Donate link: https://www.wpovernight.com/
4
- Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
5
- Requires at least: 3.4
6
- Tested up to: 4.6
7
- Stable tag: 2.5.8.1
8
-
9
- Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
10
-
11
- == Description ==
12
-
13
- **For other Ecommerce platforms visit http://wordpress.org/extend/plugins/wp-menu-cart/**
14
-
15
- This plugin installs a shopping cart button in the navigation bar. The plugin takes less than a minute to setup,
16
- and includes the following options:
17
-
18
- * Display cart icon, or only items/prices.
19
- * Display items only, price only, or both.
20
- * Display always, or only when there are items in the cart.
21
- * Float left, float right, or use your menu's default settings.
22
- * Customize your own CSS
23
-
24
- Pro Version Includes:
25
-
26
- * A choice of over 10 cart icons
27
- * A fully featured cart details flyout
28
- * Ability to add cart + flyout for unlimited menus
29
- * Ability to add a custom css class
30
- * Automatic updates on any great new features
31
- * Shortcode to display cart *anywhere* on your site
32
- * Quick and thorough support
33
-
34
- **Download the Pro version here - https://wpovernight.com/downloads/menu-cart-pro/**
35
-
36
- Finally, the cart automatically conforms to your site's styles, leaving you with no extra work.
37
-
38
- Compatibility:
39
-
40
- * WooCommerce
41
- * Easy Digital Downloads
42
- * Eshop
43
- * WP-Ecommerce
44
- * Jigoshop
45
-
46
- Translations:
47
-
48
- * Brazilian Portuguese
49
- * Danish
50
- * Dutch
51
- * Croatian
52
- * Czech
53
- * English
54
- * French
55
- * German
56
- * Greek
57
- * Hebrew
58
- * Hungarian
59
- * Italian
60
- * Norwegian
61
- * Persian
62
- * Polish
63
- * Portuguese
64
- * Russian
65
- * Spanish[1]
66
- * Swedish
67
- * Vietnamese
68
-
69
- [1] WebHostingHub
70
- == Installation ==
71
-
72
- Delete any old installations of the plugin. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
73
-
74
- Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your options, save and you're ready to go. It's that easy!
75
-
76
- == Screenshots ==
77
-
78
- 1. Shows menu before and after Menu Cart.
79
- 2. 3 different display style options to choose from.
80
- 3. Shows settings page.
81
-
82
- == Frequently Asked Questions ==
83
-
84
- == Changelog ==
85
-
86
- = 2.5.8.1 =
87
- * Fix: settings link from plugin page
88
-
89
- = 2.5.8 =
90
- * Translations: Added Croatian, Hebrew, Hungarian (updated) & Vietnamese
91
- * Fix: Built-in AJAX for multiple menus
92
- * Fix: Textdomain definition and allow custom translations
93
- * Tweak: prevent loading cart when WooCommerce not loaded
94
-
95
- = 2.5.7 =
96
-
97
- * Fix: Improved JS in Easy Digital Downloads
98
- * New: Hungarian translation
99
- * Tweak: Use css dash instead of hard-coded dash
100
-
101
- = 2.5.6 =
102
-
103
- * New: Slovak Translation
104
- * New: Option to use built in js
105
- * Tweak: Moved JS to footer
106
- * Tweak: improved css positioning
107
- * Tweak: added js selectors
108
- * Tweak: Brazilian Portuguese Translation
109
-
110
- = 2.5.5 =
111
-
112
- * New: Norwegian Translation
113
-
114
- = 2.5.4 =
115
-
116
- * New: Czech Translations
117
- * New: Greek Translations
118
- * Tweak: Seperated Item Classes
119
- * Tweak: Removed Unnecessary submenu classes
120
- * Tweak: Use get_total() instead of get_cart_total()
121
- * Fix: Prices show tax if cart prices are set to display including tax
122
- * Fix: Updated Font Awesome
123
-
124
- = 2.5.3 =
125
-
126
- * Fix: Ubermenu
127
- * Added: Greek Translation
128
-
129
- = 2.5.2 =
130
-
131
- *Tweak: Merged menu cart versions
132
-
133
- = 2.5.1 =
134
-
135
- * WPML String Translation fix
136
-
137
- = 2.5 =
138
-
139
- * Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
140
- * Added: Shop detection for Multisite
141
- * Added: WPML String Translation setting
142
- * Added: Persian translations
143
- * Updated: Font Awesome
144
- * Updated: Spanish, Portugese, Brazilian, French & Polish Translations
145
- * Fix: PHP strict warnings
146
- * Fix: CSS for Twenty Twelve & Twenty Fourteen
147
-
148
- = 2.2.2 =
149
-
150
- * Jigoshop Bug Fix
151
-
152
- = 2.2.1 =
153
-
154
- * WPML bug fixes
155
-
156
- = 2.2.0 =
157
-
158
- * Several bugfixes & improvements
159
- * Better AJAX integration with EDD & eShop
160
- * Various filters added for better theme integration & easier customization
161
- * DOMHtml warnings surpressed
162
-
163
- = 2.1.5 =
164
-
165
- Fix: Edd and WP e-Commerce ajax.
166
-
167
- = 2.1.4 =
168
-
169
- Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
170
-
171
- = 2.1.3 =
172
-
173
- EDD total price bug fixed
174
-
175
- = 2.1.2 =
176
-
177
- Added WP-Ecommerce and EDD
178
-
179
- = 2.1.0 =
180
-
181
- Initial Release
182
-
183
- == Upgrade Notice ==
184
-
185
- = 2.5.5 =
186
-
187
- * New: Norwegian Translation
188
-
189
- = 2.5.4 =
190
-
191
- * New: Czech Translations
192
- * New: Greek Translations
193
- * Tweak: Seperated Item Classes
194
- * Tweak: Removed Unnecessary submenu classes
195
- * Tweak: Use get_total() instead of get_cart_total()
196
- * Fix: Prices show tax if cart prices are set to display including tax
197
- * Fix: Updated Font Awesome
198
-
199
- = 2.5.3 =
200
-
201
- * Fix: Ubermenu
202
- * Added: Greek Translation
203
-
204
- = 2.5.2 =
205
-
206
- *Tweak: Merged menu cart versions
207
-
208
- = 2.5.1 =
209
-
210
- * WPML String Translation fix
211
-
212
- = 2.5 =
213
-
214
- * Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
215
- * Added: Shop detection for Multisite
216
- * Added: WPML String Translation setting
217
- * Added: Persian translations
218
- * Updated: Font Awesome
219
- * Updated: Spanish, Portugese, Brazilian, French & Polish Translations
220
- * Fix: PHP strict warnings
221
- * Fix: CSS for Twenty Twelve & Twenty Fourteen
222
-
223
- = 2.2.2 =
224
-
225
- * Jigoshop Bug Fix
226
-
227
- = 2.2.1 =
228
-
229
- * WPML bug fixes
230
-
231
- = 2.2.0 =
232
-
233
- * Several bugfixes & improvements
234
- * Better AJAX integration with EDD & eShop
235
- * Various filters added for better theme integration & easier customization
236
- * DOMHtml warnings surpressed
237
-
238
- = 2.1.5 =
239
-
240
- Fix: Edd and WP e-Commerce ajax.
241
-
242
- = 2.1.4 =
243
-
244
- Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
245
-
246
- = 2.1.3 =
247
-
248
- EDD total price bug fixed
249
-
250
- = 2.1.2 =
251
-
252
- Added WP-Ecommerce and EDD
253
-
254
- = 2.1.0 =
255
-
 
 
 
256
  Initial Release
1
+ === WooCommerce Menu Cart ===
2
+ Contributors: jprummer, pomegranate
3
+ Donate link: https://www.wpovernight.com/
4
+ Tags: woocommerce, menu, bar, cart, basket, header, shopping cart, navigation, edd, ecommerce, eshop, wp-ecommerce, jigoshop, wpec
5
+ Requires at least: 3.4
6
+ Tested up to: 4.8
7
+ Stable tag: 2.6.0
8
+
9
+ Automatically displays a shopping cart in your menu bar. Works with WooCommerce, WP-Ecommerce, EDD, Eshop and Jigoshop
10
+
11
+ == Description ==
12
+
13
+ **For other Ecommerce platforms visit http://wordpress.org/extend/plugins/wp-menu-cart/**
14
+
15
+ This plugin installs a shopping cart button in the navigation bar. The plugin takes less than a minute to setup,
16
+ and includes the following options:
17
+
18
+ * Display cart icon, or only items/prices.
19
+ * Display items only, price only, or both.
20
+ * Display always, or only when there are items in the cart.
21
+ * Float left, float right, or use your menu's default settings.
22
+ * Customize your own CSS
23
+
24
+ Pro Version Includes:
25
+
26
+ * A choice of over 10 cart icons
27
+ * A fully featured cart details flyout
28
+ * Ability to add cart + flyout for unlimited menus
29
+ * Ability to add a custom css class
30
+ * Automatic updates on any great new features
31
+ * Shortcode to display cart *anywhere* on your site
32
+ * Quick and thorough support
33
+
34
+ **Download the Pro version here - https://wpovernight.com/downloads/menu-cart-pro/**
35
+
36
+ Finally, the cart automatically conforms to your site's styles, leaving you with no extra work.
37
+
38
+ Compatibility:
39
+
40
+ * WooCommerce
41
+ * Easy Digital Downloads
42
+ * Eshop
43
+ * WP-Ecommerce
44
+ * Jigoshop
45
+
46
+ Translations:
47
+
48
+ * Brazilian Portuguese
49
+ * Danish
50
+ * Dutch
51
+ * Croatian
52
+ * Czech
53
+ * English
54
+ * French
55
+ * German
56
+ * Greek
57
+ * Hebrew
58
+ * Hungarian
59
+ * Italian
60
+ * Norwegian
61
+ * Persian
62
+ * Polish
63
+ * Portuguese
64
+ * Russian
65
+ * Spanish[1]
66
+ * Swedish
67
+ * Vietnamese
68
+
69
+ [1] WebHostingHub
70
+ == Installation ==
71
+
72
+ Delete any old installations of the plugin. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
73
+
74
+ Once the plugin is activated navigate to Settings > Menu Cart Setup. Select your options, save and you're ready to go. It's that easy!
75
+
76
+ == Screenshots ==
77
+
78
+ 1. Shows menu before and after Menu Cart.
79
+ 2. 3 different display style options to choose from.
80
+ 3. Shows settings page.
81
+
82
+ == Frequently Asked Questions ==
83
+
84
+ == Changelog ==
85
+
86
+ = 2.6.0 =
87
+
88
+ * WooCommerce 3.0 compatibility
89
+ * Translations: updated Swedish
90
+
91
+ = 2.5.8 =
92
+
93
+ * Translations: Added Croatian, Hebrew, Hungarian (updated) & Vietnamese
94
+ * Fix: Built-in AJAX for multiple menus
95
+ * Fix: Textdomain definition and allow custom translations
96
+ * Tweak: prevent loading cart when WooCommerce not loaded
97
+
98
+ = 2.5.7 =
99
+
100
+ * Fix: Improved JS in Easy Digital Downloads
101
+ * New: Hungarian translation
102
+ * Tweak: Use css dash instead of hard-coded dash
103
+
104
+ = 2.5.6 =
105
+
106
+ * New: Slovak Translation
107
+ * New: Option to use built in js
108
+ * Tweak: Moved JS to footer
109
+ * Tweak: improved css positioning
110
+ * Tweak: added js selectors
111
+ * Tweak: Brazilian Portuguese Translation
112
+
113
+ = 2.5.5 =
114
+
115
+ * New: Norwegian Translation
116
+
117
+ = 2.5.4 =
118
+
119
+ * New: Czech Translations
120
+ * New: Greek Translations
121
+ * Tweak: Seperated Item Classes
122
+ * Tweak: Removed Unnecessary submenu classes
123
+ * Tweak: Use get_total() instead of get_cart_total()
124
+ * Fix: Prices show tax if cart prices are set to display including tax
125
+ * Fix: Updated Font Awesome
126
+
127
+ = 2.5.3 =
128
+
129
+ * Fix: Ubermenu
130
+ * Added: Greek Translation
131
+
132
+ = 2.5.2 =
133
+
134
+ *Tweak: Merged menu cart versions
135
+
136
+ = 2.5.1 =
137
+
138
+ * WPML String Translation fix
139
+
140
+ = 2.5 =
141
+
142
+ * Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
143
+ * Added: Shop detection for Multisite
144
+ * Added: WPML String Translation setting
145
+ * Added: Persian translations
146
+ * Updated: Font Awesome
147
+ * Updated: Spanish, Portugese, Brazilian, French & Polish Translations
148
+ * Fix: PHP strict warnings
149
+ * Fix: CSS for Twenty Twelve & Twenty Fourteen
150
+
151
+ = 2.2.2 =
152
+
153
+ * Jigoshop Bug Fix
154
+
155
+ = 2.2.1 =
156
+
157
+ * WPML bug fixes
158
+
159
+ = 2.2.0 =
160
+
161
+ * Several bugfixes & improvements
162
+ * Better AJAX integration with EDD & eShop
163
+ * Various filters added for better theme integration & easier customization
164
+ * DOMHtml warnings surpressed
165
+
166
+ = 2.1.5 =
167
+
168
+ Fix: Edd and WP e-Commerce ajax.
169
+
170
+ = 2.1.4 =
171
+
172
+ Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
173
+
174
+ = 2.1.3 =
175
+
176
+ EDD total price bug fixed
177
+
178
+ = 2.1.2 =
179
+
180
+ Added WP-Ecommerce and EDD
181
+
182
+ = 2.1.0 =
183
+
184
+ Initial Release
185
+
186
+ == Upgrade Notice ==
187
+
188
+ = 2.5.5 =
189
+
190
+ * New: Norwegian Translation
191
+
192
+ = 2.5.4 =
193
+
194
+ * New: Czech Translations
195
+ * New: Greek Translations
196
+ * Tweak: Seperated Item Classes
197
+ * Tweak: Removed Unnecessary submenu classes
198
+ * Tweak: Use get_total() instead of get_cart_total()
199
+ * Fix: Prices show tax if cart prices are set to display including tax
200
+ * Fix: Updated Font Awesome
201
+
202
+ = 2.5.3 =
203
+
204
+ * Fix: Ubermenu
205
+ * Added: Greek Translation
206
+
207
+ = 2.5.2 =
208
+
209
+ *Tweak: Merged menu cart versions
210
+
211
+ = 2.5.1 =
212
+
213
+ * WPML String Translation fix
214
+
215
+ = 2.5 =
216
+
217
+ * Major Code refactor: CLEANER, FASTER, MORE FLEXIBLE!
218
+ * Added: Shop detection for Multisite
219
+ * Added: WPML String Translation setting
220
+ * Added: Persian translations
221
+ * Updated: Font Awesome
222
+ * Updated: Spanish, Portugese, Brazilian, French & Polish Translations
223
+ * Fix: PHP strict warnings
224
+ * Fix: CSS for Twenty Twelve & Twenty Fourteen
225
+
226
+ = 2.2.2 =
227
+
228
+ * Jigoshop Bug Fix
229
+
230
+ = 2.2.1 =
231
+
232
+ * WPML bug fixes
233
+
234
+ = 2.2.0 =
235
+
236
+ * Several bugfixes & improvements
237
+ * Better AJAX integration with EDD & eShop
238
+ * Various filters added for better theme integration & easier customization
239
+ * DOMHtml warnings surpressed
240
+
241
+ = 2.1.5 =
242
+
243
+ Fix: Edd and WP e-Commerce ajax.
244
+
245
+ = 2.1.4 =
246
+
247
+ Fixed WP e-Commerce ajax conflict and uploaded proper French translation.
248
+
249
+ = 2.1.3 =
250
+
251
+ EDD total price bug fixed
252
+
253
+ = 2.1.2 =
254
+
255
+ Added WP-Ecommerce and EDD
256
+
257
+ = 2.1.0 =
258
+
259
  Initial Release
wp-menu-cart.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Menu Cart
4
  Plugin URI: www.wpovernight.com/plugins
5
  Description: Extension for WooCommerce that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
- Version: 2.5.8.1
7
  Author: Jeremiah Prummer, Ewout Fernhout
8
  Author URI: www.wpovernight.com/
9
  License: GPL2
@@ -56,7 +56,11 @@ class WpMenuCart {
56
  if ( isset($this->options['builtin_ajax']) ) {
57
  add_action("wp_enqueue_scripts", array( &$this, 'load_custom_ajax' ), 0 );
58
  } else {
59
- add_filter( 'add_to_cart_fragments', array( &$this, 'woocommerce_ajax_fragments' ) );
 
 
 
 
60
  }
61
  break;
62
  case 'jigoshop':
@@ -245,7 +249,7 @@ class WpMenuCart {
245
  'wpmenucart',
246
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
247
  array( 'jquery' ),
248
- '2.5.8',
249
  true
250
  );
251
 
@@ -410,6 +414,10 @@ class WpMenuCart {
410
  * Ajaxify Menu Cart
411
  */
412
  public function woocommerce_ajax_fragments( $fragments ) {
 
 
 
 
413
  $fragments['a.wpmenucart-contents'] = $this->wpmenucart_menu_item();
414
  return $fragments;
415
  }
3
  Plugin Name: WooCommerce Menu Cart
4
  Plugin URI: www.wpovernight.com/plugins
5
  Description: Extension for WooCommerce that places a cart icon with number of items and total cost in the menu bar. Activate the plugin, set your options and you're ready to go! Will automatically conform to your theme styles.
6
+ Version: 2.6.0
7
  Author: Jeremiah Prummer, Ewout Fernhout
8
  Author URI: www.wpovernight.com/
9
  License: GPL2
56
  if ( isset($this->options['builtin_ajax']) ) {
57
  add_action("wp_enqueue_scripts", array( &$this, 'load_custom_ajax' ), 0 );
58
  } else {
59
+ if ( defined('WOOCOMMERCE_VERSION') && version_compare( WOOCOMMERCE_VERSION, '2.7', '>=' ) ) {
60
+ add_filter( 'woocommerce_add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
61
+ } else {
62
+ add_filter( 'add_to_cart_fragments', array( $this, 'woocommerce_ajax_fragments' ) );
63
+ }
64
  }
65
  break;
66
  case 'jigoshop':
249
  'wpmenucart',
250
  plugins_url( '/javascript/wpmenucart.js' , __FILE__ ),
251
  array( 'jquery' ),
252
+ '2.6.0',
253
  true
254
  );
255
 
414
  * Ajaxify Menu Cart
415
  */
416
  public function woocommerce_ajax_fragments( $fragments ) {
417
+ if ( ! defined('WOOCOMMERCE_CART') ) {
418
+ define( 'WOOCOMMERCE_CART', true );
419
+ }
420
+
421
  $fragments['a.wpmenucart-contents'] = $this->wpmenucart_menu_item();
422
  return $fragments;
423
  }