WooCommerce Germanized - Version 1.0.2

Version Description

  • Feature - Added WP multisite support
  • Feature - Added optional payment charge for PayPal, COD, Prepayment
  • Feature - Added optional review reminder mail for Trusted Shops
  • Fix - Filter templates with priority PHP_INT_MAX to disallow template override
  • Fix - Fixed vat calculation for payment method charges
Download this release

Release Info

Developer vendidero
Plugin Icon 128x128 WooCommerce Germanized
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

assets/css/woocommerce-gzd-admin.css CHANGED
@@ -52,4 +52,8 @@ table.data_table tr td p.form-field {
52
  background-color: #73982a !important;
53
  border: 1px solid #557020 !important;
54
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15) !important;
 
 
 
 
55
  }
52
  background-color: #73982a !important;
53
  border: 1px solid #557020 !important;
54
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15) !important;
55
+ }
56
+
57
+ .wc-gzd-button-wrapper .button {
58
+ margin-right: 1em;
59
  }
i18n/languages/woocommerce-germanized-de_DE.mo CHANGED
Binary file
i18n/languages/woocommerce-germanized-de_DE.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WooCommerce Germanized v1.0.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2014-09-29 12:26+0100\n"
6
- "PO-Revision-Date: 2014-11-11 15:30:10+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -76,7 +76,7 @@ msgid "l"
76
  msgstr "l"
77
 
78
  #: includes/abstracts/abstract-wc-gzd-product.php:72
79
- #: woocommerce-germanized.php:587
80
  #, php-format
81
  #@ woocommerce-germanized
82
  msgid "incl. %s VAT"
@@ -142,7 +142,7 @@ msgstr "Einheit"
142
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:36
143
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:64
144
  #: includes/admin/settings/class-wc-gzd-settings-germanized.php:52
145
- #: includes/class-wc-gzd-trusted-shops.php:295
146
  #@ woocommerce-germanized
147
  msgid "None"
148
  msgstr "Keine"
@@ -163,7 +163,7 @@ msgstr "Einheitspreis"
163
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data.php:28
164
  #@ woocommerce-germanized
165
  msgid "Sale Unit Price"
166
- msgstr "Reduzierter Einheitspreis"
167
 
168
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:59
169
  #@ woocommerce-germanized
@@ -449,125 +449,125 @@ msgstr "Den zum Warenkorb Button in Produktlisten darstellen?"
449
  msgid "unset this option if you don't want to show the add to cart button within the product listings"
450
  msgstr "Deaktivieren Sie diese Option, wenn Sie den zum Warenkorb Button nicht innerhalb von Produktauflistungen darstellen möchten"
451
 
452
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:280
453
  #@ woocommerce-germanized
454
  msgid "Notice Footer"
455
  msgstr "Hinweise im Footer"
456
 
457
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:281
458
  #@ woocommerce-germanized
459
  msgid "Show a global VAT notice within footer"
460
  msgstr "Einen seitenübergreifenden Hinweis bzgl. der MwSt. im Footer darstellen"
461
 
462
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:289
463
  #@ woocommerce-germanized
464
  msgid "Show a global sale price notice within footer"
465
  msgstr "Einen seitenübergreifenden Hinweis bzgl. reduzierter Preise im Footer darstellen"
466
 
467
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:298
468
  #@ woocommerce-germanized
469
  msgid "Products"
470
  msgstr "Produkt"
471
 
472
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:301
473
  #@ woocommerce-germanized
474
  msgid "Show within Product Listings"
475
  msgstr "In Produktlisten"
476
 
477
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:302
478
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:327
479
  #@ woocommerce-germanized
480
  msgid "Shipping Costs notice"
481
  msgstr "Versandkosten-Hinweis"
482
 
483
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:310
484
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:343
485
  #@ woocommerce-germanized
486
  msgid "Unit Price"
487
  msgstr "Einheitspreis"
488
 
489
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:318
490
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:351
491
  #@ woocommerce-germanized
492
  msgid "Delivery Time Notice"
493
  msgstr "Lieferzeiten-Hinweis"
494
 
495
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:326
496
  #@ woocommerce-germanized
497
  msgid "Show on Product Detail Page"
498
  msgstr "Auf der Produktseite"
499
 
500
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:335
501
  #@ woocommerce-germanized
502
  msgid "Tax Info"
503
  msgstr "MwSt. Hinweis"
504
 
505
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:360
506
  #@ woocommerce-germanized
507
  msgid "Checkout & Cart"
508
  msgstr "Checkout & Warenkorb"
509
 
510
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:371
511
  #@ woocommerce-germanized
512
  msgid "Checkout Legal Display"
513
  msgstr "Checkbox oder Text"
514
 
515
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:372
516
  #@ woocommerce-germanized
517
  msgid "Use Text without Checkbox"
518
  msgstr "Rechtshinweis ohne Checkbox"
519
 
520
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:374
521
  #@ woocommerce-germanized
522
  msgid "This version will remove checkboxes from Checkout and display a text instead. This seems to be legally compliant (Zalando & Co are using this option)."
523
  msgstr "Diese Option nutzt anstatt einer Checkbox einen ausformulierten Text direkt überhalb des Kauf abschließen Buttons (Zalando und Andere Shops verwenden diese Form)"
524
 
525
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:380
526
  #@ woocommerce-germanized
527
  msgid "Legal Text"
528
  msgstr "Rechtlicher Hinweistext"
529
 
530
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:381
531
  #@ woocommerce-germanized
532
  msgid "Choose a Plain Text which will be shown right above checkout submit button. Use {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} as Placeholders for the links to legal pages."
533
  msgstr "Geben Sie hier den Text ein, den Sie als Hinweistext überhalb des \"Kaufen\" - Buttons darstellen möchten. Nutzen Sie die Platzhalter {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} um die jeweiligen Links zu den Seiten einzufügen."
534
 
535
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:383
536
  #@ woocommerce-germanized
537
  msgid "With your order, you agree to have read and understood our {term_link}Terms and Conditions{/term_link} and your {revocation_link}Right of Recission{/revocation_link}."
538
  msgstr "Mit Ihrer Bestellung erklären Sie sich mit unseren {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link} einverstanden."
539
 
540
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:390
541
  #@ woocommerce-germanized
542
  msgid "Legal Text Error"
543
  msgstr "Fehlermeldung der Checkbox"
544
 
545
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:391
546
  #@ woocommerce-germanized
547
  msgid "If you have chosen to use checkbox validation please choose a error message which will be shown if the user doesn't check checkbox. Use {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} as Placeholders for the links to legal pages."
548
  msgstr "Falls Sie sich dazu entschieden haben, eine Checkbox zu nutzen, können Sie hier die Fehlermeldung eingeben, die angezeigt wird, wenn ein Benutzer die Checkbox nicht aktiviert hat. Nutzen Sie die Platzhalter um Links zu den jeweiligen Hinweisseiten einzufügen: {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link}"
549
 
550
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:393
551
  #@ woocommerce-germanized
552
  msgid "To finish the order you have to accept to our {term_link}Terms and Conditions{/term_link} and {revocation_link}Right of Recission{/revocation_link}."
553
  msgstr "Bitte akzeptieren Sie unsere {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link}."
554
 
555
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:400
556
  #@ woocommerce-germanized
557
  msgid "Order Success Text"
558
  msgstr "Bestellung eingegangen"
559
 
560
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:401
561
  #@ woocommerce-germanized
562
  msgid "Choose a custom text to display on order success page."
563
  msgstr "Hier können Sie einen individuellen kurzen Text eingeben, der nach der Bestellung ausgegeben wird."
564
 
565
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:409
566
  #@ woocommerce-germanized
567
  msgid "Order Success Data"
568
  msgstr "Bestellbestätigungs-Daten"
569
 
570
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:410
571
  #@ woocommerce-germanized
572
  msgid "Hide product table and customer data on order success page"
573
  msgstr "Zusätzliche Produktdetails (Tabelle, Kundeninformationen) von der Bestellbestätigungs-Seite entfernen"
@@ -752,73 +752,73 @@ msgstr "Ihren Widerruf online erklären"
752
  msgid "Please install <a href=\"%s\" target=\"_blank\">WooCommerce</a> before installing WooCommerce Germanized. Thank you!"
753
  msgstr "Bitte installieren Sie <a href=\"%s\" target=\"_blank\">WooCommerce</a> bevor Sie WooCommerce Germanized installieren. Vielen Dank!"
754
 
755
- #: includes/class-wc-gzd-install.php:213
756
  #@ woocommerce-germanized
757
  msgctxt "Page slug"
758
  msgid "data-security"
759
  msgstr "datenschutzbelehrung"
760
 
761
- #: includes/class-wc-gzd-install.php:214
762
  #@ woocommerce-germanized
763
  msgctxt "Page title"
764
  msgid "Data Security Statement"
765
  msgstr "Datenschutzbelehrung"
766
 
767
- #: includes/class-wc-gzd-install.php:218
768
  #@ woocommerce-germanized
769
  msgctxt "Page slug"
770
  msgid "imprint"
771
  msgstr "impressum"
772
 
773
- #: includes/class-wc-gzd-install.php:219
774
  #@ woocommerce-germanized
775
  msgctxt "Page title"
776
  msgid "Imprint"
777
  msgstr "Impressum"
778
 
779
- #: includes/class-wc-gzd-install.php:223
780
  #@ woocommerce-germanized
781
  msgctxt "Page slug"
782
  msgid "terms"
783
  msgstr "agb"
784
 
785
- #: includes/class-wc-gzd-install.php:224
786
  #@ woocommerce-germanized
787
  msgctxt "Page title"
788
  msgid "Terms & Conditions"
789
  msgstr "AGB"
790
 
791
- #: includes/class-wc-gzd-install.php:228
792
  #@ woocommerce-germanized
793
  msgctxt "Page slug"
794
  msgid "revocation"
795
  msgstr "widerrufsbelehrung"
796
 
797
- #: includes/class-wc-gzd-install.php:229
798
  #@ woocommerce-germanized
799
  msgctxt "Page title"
800
  msgid "Power of Revocation"
801
  msgstr "Widerrufsbelehrung"
802
 
803
- #: includes/class-wc-gzd-install.php:238
804
  #@ woocommerce-germanized
805
  msgctxt "Page slug"
806
  msgid "payment-methods"
807
  msgstr "bezahlmoeglichkeiten"
808
 
809
- #: includes/class-wc-gzd-install.php:239
810
  #@ woocommerce-germanized
811
  msgctxt "Page title"
812
  msgid "Payment Methods"
813
  msgstr "Zahlungsmethoden"
814
 
815
- #: includes/class-wc-gzd-install.php:233
816
  #@ woocommerce-germanized
817
  msgctxt "Page slug"
818
  msgid "shipping-methods"
819
  msgstr "versandmethoden"
820
 
821
- #: includes/class-wc-gzd-install.php:234
822
  #@ woocommerce-germanized
823
  msgctxt "Page title"
824
  msgid "Shipping Methods"
@@ -1009,39 +1009,33 @@ msgctxt "trusted-shops"
1009
  msgid "Financing"
1010
  msgstr "Finanzierung"
1011
 
1012
- #: includes/class-wc-gzd-trusted-shops.php:198
1013
  #, php-format
1014
  #@ woocommerce-germanized
1015
  msgctxt "trusted-shops"
1016
  msgid "Rated %s out of %s"
1017
  msgstr "Bewertet mit %s von %s"
1018
 
1019
- #: includes/class-wc-gzd-trusted-shops.php:200
1020
  #, php-format
1021
  #@ woocommerce-germanized
1022
  msgctxt "trusted-shops"
1023
  msgid "out of %s"
1024
  msgstr "von %s"
1025
 
1026
- #: includes/class-wc-gzd-trusted-shops.php:299
1027
  #@ woocommerce-germanized
1028
  msgctxt "trusted-shops"
1029
  msgid "Trusted Shops Integration"
1030
  msgstr "Trusted Shops Integration"
1031
 
1032
- #: includes/class-wc-gzd-trusted-shops.php:377
1033
  #, php-format
1034
  #@ woocommerce-germanized
1035
  msgctxt "trusted-shops"
1036
  msgid "Choose a Trusted Shops Payment Gateway linked to WooCommerce Payment Gateway %s"
1037
  msgstr "Wählen Sie für die Zahlungsmöglichkeit %s eine von Trusted Shops vorgegebene Zahlungsmöglichkeit aus."
1038
 
1039
- #: includes/emails/class-wc-gzd-email-customer-ekomi.php:24
1040
- #@ woocommerce-germanized
1041
- msgctxt "ekomi"
1042
- msgid "eKomi Review Notice"
1043
- msgstr "eKomi Bewertungseinladung"
1044
-
1045
  #: includes/emails/class-wc-gzd-email-customer-ekomi.php:25
1046
  #@ woocommerce-germanized
1047
  msgctxt "ekomi"
@@ -1076,47 +1070,47 @@ msgstr "Diese E-Mail wird als Bestätigung an den Kunden weitergeleitet, sobald
1076
  msgid "Your Revocation"
1077
  msgstr "Ihr Widerruf"
1078
 
1079
- #: includes/gateways/bacs/class-wc-gzd-gateway-bacs.php:28
1080
  #@ woocommerce-germanized
1081
  msgid "Print instructions?"
1082
  msgstr "Instruktionen ausgeben?"
1083
 
1084
- #: includes/gateways/bacs/class-wc-gzd-gateway-bacs.php:30
1085
  #@ woocommerce-germanized
1086
  msgid "Show instructions"
1087
  msgstr "Instruktionen ausgeben"
1088
 
1089
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:36
1090
  #, php-format
1091
  #@ woocommerce-germanized
1092
  msgid "plus %s payment charge"
1093
- msgstr "zzgl. %s Nachnahmegebühr"
1094
 
1095
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:23
1096
  #, php-format
1097
  #@ woocommerce-germanized
1098
  msgid "Plus %s payment charge."
1099
- msgstr "Zzgl. %s Nachnahmegebühr."
1100
 
1101
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:43
1102
  #@ woocommerce-germanized
1103
  msgid "Fee"
1104
- msgstr "Nachnahmegebühr"
1105
 
1106
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:45
1107
  #@ woocommerce-germanized
1108
  msgid "This fee is being added if customer selects payment method within checkout."
1109
- msgstr "Diese Gebühr wird während der Bestellung hinzugefügt, falls der Kunde Nachnahme auswählt."
1110
 
1111
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:50
1112
  #@ woocommerce-germanized
1113
  msgid "Fee is taxable?"
1114
  msgstr "Mwst. berechnen?"
1115
 
1116
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:60
1117
  #@ woocommerce-germanized
1118
  msgid "Payment charge"
1119
- msgstr "Nachnahmegebühr"
1120
 
1121
  #: includes/wc-gzd-cart-functions.php:65
1122
  #, php-format
@@ -1134,7 +1128,8 @@ msgstr "Bestellung bearbeiten"
1134
  msgid "Choose a Payment Gateway"
1135
  msgstr "Zahlungsmethode auswählen"
1136
 
1137
- #: includes/wc-gzd-template-functions.php:194
 
1138
  #@ woocommerce-germanized
1139
  msgid "I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun."
1140
  msgstr "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt."
@@ -1297,12 +1292,12 @@ msgstr "Widerruf erklären"
1297
  msgid "VAT free based on &#167;19 UStG"
1298
  msgstr "Umsatzsteuerbefreit nach &#167;19 UStG"
1299
 
1300
- #: woocommerce-germanized.php:418
1301
  #@ woocommerce
1302
  msgid "Settings"
1303
  msgstr "Einstellungen"
1304
 
1305
- #: woocommerce-germanized.php:565
1306
  #@ woocommerce
1307
  msgid "Order Total:"
1308
  msgstr "Gesamtsumme"
@@ -1362,106 +1357,106 @@ msgstr ""
1362
  msgid "Pay for order"
1363
  msgstr ""
1364
 
1365
- #: includes/class-wc-gzd-trusted-shops.php:197
1366
  #, php-format
1367
  #@ woocommerce-germanized
1368
  msgctxt "trusted-shops"
1369
  msgid "%s ratings"
1370
  msgstr "Bewertungen von %s"
1371
 
1372
- #: includes/class-wc-gzd-trusted-shops.php:219
1373
  #@ woocommerce-germanized
1374
  msgctxt "trusted-shops"
1375
  msgid "Show customer reviews"
1376
  msgstr "Kundenmeinungen ansehen"
1377
 
1378
- #: includes/class-wc-gzd-trusted-shops.php:269
1379
  #@ woocommerce-germanized
1380
  msgctxt "trusted-shops"
1381
  msgid "Trusted Shops Customer Reviews"
1382
  msgstr "Trusted Shops Kundenbewertungen"
1383
 
1384
- #: includes/class-wc-gzd-trusted-shops.php:302
1385
  #@ woocommerce-germanized
1386
  msgctxt "trusted-shops"
1387
  msgid "TS-ID"
1388
  msgstr "TS-ID"
1389
 
1390
- #: includes/class-wc-gzd-trusted-shops.php:303
1391
  #@ woocommerce-germanized
1392
  msgctxt "trusted-shops"
1393
  msgid "Insert your Trusted Shops ID here."
1394
  msgstr "Füge hier deine Trusted Shops ID ein."
1395
 
1396
- #: includes/class-wc-gzd-trusted-shops.php:312
1397
  #@ woocommerce-germanized
1398
  msgctxt "trusted-shops"
1399
  msgid "Configure the Trustbadge for your shop"
1400
  msgstr "Konfiguriere dein Trustbadge"
1401
 
1402
- #: includes/class-wc-gzd-trusted-shops.php:312
1403
  #, php-format
1404
  #@ woocommerce-germanized
1405
  msgctxt "trusted-shops"
1406
  msgid "You'll find a step-by-step instruction for your shopsoftware in our integration center. <a href=\"%s\" target=\"_blank\">Click here</a>"
1407
  msgstr "In unserem Integration Center findest du eine Schritt-für-Schritt Anleitung. Klicke <a href=\"%s\" target=\"_blank\">hier</a>."
1408
 
1409
- #: includes/class-wc-gzd-trusted-shops.php:315
1410
  #@ woocommerce-germanized
1411
  msgctxt "trusted-shops"
1412
  msgid "Trustbadge code"
1413
  msgstr "Trustbadge Code"
1414
 
1415
- #: includes/class-wc-gzd-trusted-shops.php:318
1416
  #@ woocommerce-germanized
1417
  msgctxt "trusted-shops"
1418
  msgid "Fill in your trustbadge code here"
1419
  msgstr "Trustbadge Code hier einfügen"
1420
 
1421
- #: includes/class-wc-gzd-trusted-shops.php:318
1422
  #@ woocommerce-germanized
1423
  msgctxt "trusted-shops"
1424
  msgid "If no further steps were required in the integration center, the Trustbadge is already displayed in your shop."
1425
  msgstr "Sofern keine weiteren Installationsschritte im Integration Center beschrieben wurden, wird das Trustbadge jetzt im Frontend deines Shops angezeigt."
1426
 
1427
- #: includes/class-wc-gzd-trusted-shops.php:325
1428
  #@ woocommerce-germanized
1429
  msgctxt "trusted-shops"
1430
  msgid "Configure Customer Reviews"
1431
  msgstr "Kundenbewertungen konfigurieren"
1432
 
1433
- #: includes/class-wc-gzd-trusted-shops.php:328
1434
  #@ woocommerce-germanized
1435
  msgctxt "trusted-shops"
1436
  msgid "Enable Review Widget"
1437
  msgstr "Kundenbewertungswidget aktiveren"
1438
 
1439
- #: includes/class-wc-gzd-trusted-shops.php:329
1440
  #, php-format
1441
  #@ woocommerce-germanized
1442
  msgctxt "trusted-shops"
1443
  msgid "This option will enable a Widget which shows your Trusted Shops Reviews as a graphic. You may configure your Widgets <a href=\"%s\">here</a>."
1444
  msgstr "Diese Option aktiviert ein Widget, mit dem du das Trusted Shops Review Widget in deinem Shop platzieren kannst. <a href=\"%s\">Hier</a> kannst du deine Widgets zuweisen."
1445
 
1446
- #: includes/class-wc-gzd-trusted-shops.php:337
1447
  #@ woocommerce-germanized
1448
  msgctxt "trusted-shops"
1449
  msgid "Enable Rich Snippets for Google"
1450
  msgstr "Rich Snippets Anzeige in Google aktivieren"
1451
 
1452
- #: includes/class-wc-gzd-trusted-shops.php:338
1453
  #@ woocommerce-germanized
1454
  msgctxt "trusted-shops"
1455
  msgid "This option will update your reviews received via Trusted Shops once per day and enables a Widget to show your reviews as Rich Snippets."
1456
  msgstr "Diese Option bewirkt, dass deine über Trusted Shops empfangenen Bewertungen als Rich Snippets im Shop als Widget verfügbar sind. "
1457
 
1458
- #: includes/class-wc-gzd-trusted-shops.php:347
1459
  #@ woocommerce-germanized
1460
  msgctxt "trusted-shops"
1461
  msgid "Assign payment methods"
1462
  msgstr "Zahlungsmethoden zuweisen"
1463
 
1464
- #: includes/class-wc-gzd-trusted-shops.php:396
1465
  #@ woocommerce-germanized
1466
  msgctxt "trusted-shops"
1467
  msgid "About Trusted Shops"
@@ -1485,34 +1480,29 @@ msgctxt "trusted-shops"
1485
  msgid "Trusted Shops Rich Snippets"
1486
  msgstr "Trusted Shops Rich Snippets"
1487
 
1488
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:36
1489
- #@ woocommerce
1490
- msgid "Cash on Delivery"
1491
- msgstr ""
1492
-
1493
- #: includes/class-wc-gzd-trusted-shops.php:205
1494
  #, php-format
1495
  #@ woocommerce-germanized
1496
  msgctxt "trusted-shops"
1497
  msgid "%s of %s based on %s <a href=\"%s\" target=\"_blank\">ratings</a>."
1498
  msgstr "%s von %s basierend auf %s <a href=\"%s\" target=\"_blank\">Bewertungen</a>."
1499
 
1500
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:363
1501
  #@ woocommerce-germanized
1502
  msgid "Checkout Table Color"
1503
  msgstr "Hintergrundfarbe der Tabelle"
1504
 
1505
- #: includes/admin/settings/class-wc-gzd-settings-germanized.php:365
1506
  #@ woocommerce-germanized
1507
  msgid "Choose the color of your checkout product table. This table should be highlighted within your checkout page."
1508
  msgstr "Wähle die Farbe des Hintergrundes deiner Produkt-Tabelle im Checkout. Die Tabelle sollte sich farblich vom Rest des Inhalts abheben."
1509
 
1510
- #: includes/admin/views/html-notice-theme-incompatibility.php:13
1511
  #@ woocommerce-germanized
1512
  msgid "Theme incompatibility found"
1513
  msgstr "Theme Inkompatibilität entdeckt"
1514
 
1515
- #: includes/admin/views/html-notice-theme-incompatibility.php:14
1516
  #, php-format
1517
  #@ woocommerce-germanized
1518
  msgid "It seems like your theme tries to overwrite legally relevant templates. Please review your checkout page. Some things might look weird because WooCommerce Germanized had to stop template overriding for legal purposes. See <a href=\"%s\" target=\"_blank\">making your theme compatible</a> or check out our Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> for 100&#37; compatibility."
@@ -1524,31 +1514,166 @@ msgstr "Es sieht so aus als wenn dein aktuelles Theme versucht rechtlich relevan
1524
  msgid "Get VendiPro now"
1525
  msgstr "VendiPro jetzt entdecken"
1526
 
1527
- #: includes/admin/views/html-notice-theme-incompatibility.php:18
1528
- #: includes/admin/views/html-notice-theme-not-ready.php:18
 
1529
  #@ woocommerce-germanized
1530
  msgid "Hide this notice"
1531
  msgstr "Diese Nachricht ausblenden"
1532
 
1533
- #: includes/admin/views/html-notice-theme-not-ready.php:13
1534
  #@ woocommerce-germanized
1535
  msgid "Theme not yet ready"
1536
  msgstr "Theme ist noch für WooCommerce Germanized optimiert"
1537
 
1538
- #: includes/admin/views/html-notice-theme-not-ready.php:14
1539
  #, php-format
1540
  #@ woocommerce-germanized
1541
  msgid "It seems like your theme is not yet ready for WooCommerce Germanized. Please check your theme's styles. Some things might look weird - WooCommerce Germanized can only offer basic styles. See <a href=\"%s\" target=\"_blank\">making your theme compatible</a> or check out our Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> for 100&#37; compatibility."
1542
  msgstr "Wir haben festgestellt, dass dein Theme scheinbar noch nicht für WooCommerce Germanized optimiert ist. Bitte überprüfe die Style-Angaben deines Themes bzw. das Aussehen deines Shops. Manche Elemente werden möglicherweise falsch dargestellt - WooCommerce Germanized kann nur grundlegende Style-Angaben machen. Lies dir dazu <a href=\"%s\" target=\"_blank\">wie mache ich mein Theme kompatibel</a> durch oder nutze das von uns entwickelte Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> für 100&#37; Kompatibilität."
1543
 
1544
- #. translators: plugin header field 'Version'
1545
- #: woocommerce-germanized.php:0
1546
- #@ woocommerce-germanized
1547
- msgid "1.0.1"
1548
- msgstr "1.0.1"
1549
-
1550
- #: includes/gateways/cod/class-wc-gzd-gateway-cod.php:52
1551
  #@ woocommerce-germanized
1552
  msgid "Check if fee is taxable."
1553
  msgstr "MwSt.-Berechnung für Gebühr aktivieren."
1554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WooCommerce Germanized v1.0.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2014-09-29 12:26+0100\n"
6
+ "PO-Revision-Date: 2014-12-02 14:55:40+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
76
  msgstr "l"
77
 
78
  #: includes/abstracts/abstract-wc-gzd-product.php:72
79
+ #: woocommerce-germanized.php:612
80
  #, php-format
81
  #@ woocommerce-germanized
82
  msgid "incl. %s VAT"
142
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:36
143
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:64
144
  #: includes/admin/settings/class-wc-gzd-settings-germanized.php:52
145
+ #: includes/class-wc-gzd-trusted-shops.php:344
146
  #@ woocommerce-germanized
147
  msgid "None"
148
  msgstr "Keine"
163
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data.php:28
164
  #@ woocommerce-germanized
165
  msgid "Sale Unit Price"
166
+ msgstr "Aktions-Einheitspreis"
167
 
168
  #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:59
169
  #@ woocommerce-germanized
449
  msgid "unset this option if you don't want to show the add to cart button within the product listings"
450
  msgstr "Deaktivieren Sie diese Option, wenn Sie den zum Warenkorb Button nicht innerhalb von Produktauflistungen darstellen möchten"
451
 
452
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:298
453
  #@ woocommerce-germanized
454
  msgid "Notice Footer"
455
  msgstr "Hinweise im Footer"
456
 
457
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:299
458
  #@ woocommerce-germanized
459
  msgid "Show a global VAT notice within footer"
460
  msgstr "Einen seitenübergreifenden Hinweis bzgl. der MwSt. im Footer darstellen"
461
 
462
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:307
463
  #@ woocommerce-germanized
464
  msgid "Show a global sale price notice within footer"
465
  msgstr "Einen seitenübergreifenden Hinweis bzgl. reduzierter Preise im Footer darstellen"
466
 
467
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:316
468
  #@ woocommerce-germanized
469
  msgid "Products"
470
  msgstr "Produkt"
471
 
472
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:319
473
  #@ woocommerce-germanized
474
  msgid "Show within Product Listings"
475
  msgstr "In Produktlisten"
476
 
477
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:320
478
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:345
479
  #@ woocommerce-germanized
480
  msgid "Shipping Costs notice"
481
  msgstr "Versandkosten-Hinweis"
482
 
483
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:328
484
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:361
485
  #@ woocommerce-germanized
486
  msgid "Unit Price"
487
  msgstr "Einheitspreis"
488
 
489
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:336
490
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:369
491
  #@ woocommerce-germanized
492
  msgid "Delivery Time Notice"
493
  msgstr "Lieferzeiten-Hinweis"
494
 
495
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:344
496
  #@ woocommerce-germanized
497
  msgid "Show on Product Detail Page"
498
  msgstr "Auf der Produktseite"
499
 
500
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:353
501
  #@ woocommerce-germanized
502
  msgid "Tax Info"
503
  msgstr "MwSt. Hinweis"
504
 
505
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:378
506
  #@ woocommerce-germanized
507
  msgid "Checkout & Cart"
508
  msgstr "Checkout & Warenkorb"
509
 
510
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:389
511
  #@ woocommerce-germanized
512
  msgid "Checkout Legal Display"
513
  msgstr "Checkbox oder Text"
514
 
515
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:390
516
  #@ woocommerce-germanized
517
  msgid "Use Text without Checkbox"
518
  msgstr "Rechtshinweis ohne Checkbox"
519
 
520
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:392
521
  #@ woocommerce-germanized
522
  msgid "This version will remove checkboxes from Checkout and display a text instead. This seems to be legally compliant (Zalando & Co are using this option)."
523
  msgstr "Diese Option nutzt anstatt einer Checkbox einen ausformulierten Text direkt überhalb des Kauf abschließen Buttons (Zalando und Andere Shops verwenden diese Form)"
524
 
525
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:398
526
  #@ woocommerce-germanized
527
  msgid "Legal Text"
528
  msgstr "Rechtlicher Hinweistext"
529
 
530
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:399
531
  #@ woocommerce-germanized
532
  msgid "Choose a Plain Text which will be shown right above checkout submit button. Use {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} as Placeholders for the links to legal pages."
533
  msgstr "Geben Sie hier den Text ein, den Sie als Hinweistext überhalb des \"Kaufen\" - Buttons darstellen möchten. Nutzen Sie die Platzhalter {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} um die jeweiligen Links zu den Seiten einzufügen."
534
 
535
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:401
536
  #@ woocommerce-germanized
537
  msgid "With your order, you agree to have read and understood our {term_link}Terms and Conditions{/term_link} and your {revocation_link}Right of Recission{/revocation_link}."
538
  msgstr "Mit Ihrer Bestellung erklären Sie sich mit unseren {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link} einverstanden."
539
 
540
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:408
541
  #@ woocommerce-germanized
542
  msgid "Legal Text Error"
543
  msgstr "Fehlermeldung der Checkbox"
544
 
545
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:409
546
  #@ woocommerce-germanized
547
  msgid "If you have chosen to use checkbox validation please choose a error message which will be shown if the user doesn't check checkbox. Use {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link} as Placeholders for the links to legal pages."
548
  msgstr "Falls Sie sich dazu entschieden haben, eine Checkbox zu nutzen, können Sie hier die Fehlermeldung eingeben, die angezeigt wird, wenn ein Benutzer die Checkbox nicht aktiviert hat. Nutzen Sie die Platzhalter um Links zu den jeweiligen Hinweisseiten einzufügen: {term_link}{/term_link}, {data_security_link}{/data_security_link}, {revocation_link}{/revocation_link}"
549
 
550
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:411
551
  #@ woocommerce-germanized
552
  msgid "To finish the order you have to accept to our {term_link}Terms and Conditions{/term_link} and {revocation_link}Right of Recission{/revocation_link}."
553
  msgstr "Bitte akzeptieren Sie unsere {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link}."
554
 
555
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:428
556
  #@ woocommerce-germanized
557
  msgid "Order Success Text"
558
  msgstr "Bestellung eingegangen"
559
 
560
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:429
561
  #@ woocommerce-germanized
562
  msgid "Choose a custom text to display on order success page."
563
  msgstr "Hier können Sie einen individuellen kurzen Text eingeben, der nach der Bestellung ausgegeben wird."
564
 
565
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:437
566
  #@ woocommerce-germanized
567
  msgid "Order Success Data"
568
  msgstr "Bestellbestätigungs-Daten"
569
 
570
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:438
571
  #@ woocommerce-germanized
572
  msgid "Hide product table and customer data on order success page"
573
  msgstr "Zusätzliche Produktdetails (Tabelle, Kundeninformationen) von der Bestellbestätigungs-Seite entfernen"
752
  msgid "Please install <a href=\"%s\" target=\"_blank\">WooCommerce</a> before installing WooCommerce Germanized. Thank you!"
753
  msgstr "Bitte installieren Sie <a href=\"%s\" target=\"_blank\">WooCommerce</a> bevor Sie WooCommerce Germanized installieren. Vielen Dank!"
754
 
755
+ #: includes/class-wc-gzd-install.php:218
756
  #@ woocommerce-germanized
757
  msgctxt "Page slug"
758
  msgid "data-security"
759
  msgstr "datenschutzbelehrung"
760
 
761
+ #: includes/class-wc-gzd-install.php:219
762
  #@ woocommerce-germanized
763
  msgctxt "Page title"
764
  msgid "Data Security Statement"
765
  msgstr "Datenschutzbelehrung"
766
 
767
+ #: includes/class-wc-gzd-install.php:223
768
  #@ woocommerce-germanized
769
  msgctxt "Page slug"
770
  msgid "imprint"
771
  msgstr "impressum"
772
 
773
+ #: includes/class-wc-gzd-install.php:224
774
  #@ woocommerce-germanized
775
  msgctxt "Page title"
776
  msgid "Imprint"
777
  msgstr "Impressum"
778
 
779
+ #: includes/class-wc-gzd-install.php:228
780
  #@ woocommerce-germanized
781
  msgctxt "Page slug"
782
  msgid "terms"
783
  msgstr "agb"
784
 
785
+ #: includes/class-wc-gzd-install.php:229
786
  #@ woocommerce-germanized
787
  msgctxt "Page title"
788
  msgid "Terms & Conditions"
789
  msgstr "AGB"
790
 
791
+ #: includes/class-wc-gzd-install.php:233
792
  #@ woocommerce-germanized
793
  msgctxt "Page slug"
794
  msgid "revocation"
795
  msgstr "widerrufsbelehrung"
796
 
797
+ #: includes/class-wc-gzd-install.php:234
798
  #@ woocommerce-germanized
799
  msgctxt "Page title"
800
  msgid "Power of Revocation"
801
  msgstr "Widerrufsbelehrung"
802
 
803
+ #: includes/class-wc-gzd-install.php:243
804
  #@ woocommerce-germanized
805
  msgctxt "Page slug"
806
  msgid "payment-methods"
807
  msgstr "bezahlmoeglichkeiten"
808
 
809
+ #: includes/class-wc-gzd-install.php:244
810
  #@ woocommerce-germanized
811
  msgctxt "Page title"
812
  msgid "Payment Methods"
813
  msgstr "Zahlungsmethoden"
814
 
815
+ #: includes/class-wc-gzd-install.php:238
816
  #@ woocommerce-germanized
817
  msgctxt "Page slug"
818
  msgid "shipping-methods"
819
  msgstr "versandmethoden"
820
 
821
+ #: includes/class-wc-gzd-install.php:239
822
  #@ woocommerce-germanized
823
  msgctxt "Page title"
824
  msgid "Shipping Methods"
1009
  msgid "Financing"
1010
  msgstr "Finanzierung"
1011
 
1012
+ #: includes/class-wc-gzd-trusted-shops.php:213
1013
  #, php-format
1014
  #@ woocommerce-germanized
1015
  msgctxt "trusted-shops"
1016
  msgid "Rated %s out of %s"
1017
  msgstr "Bewertet mit %s von %s"
1018
 
1019
+ #: includes/class-wc-gzd-trusted-shops.php:215
1020
  #, php-format
1021
  #@ woocommerce-germanized
1022
  msgctxt "trusted-shops"
1023
  msgid "out of %s"
1024
  msgstr "von %s"
1025
 
1026
+ #: includes/class-wc-gzd-trusted-shops.php:348
1027
  #@ woocommerce-germanized
1028
  msgctxt "trusted-shops"
1029
  msgid "Trusted Shops Integration"
1030
  msgstr "Trusted Shops Integration"
1031
 
1032
+ #: includes/class-wc-gzd-trusted-shops.php:444
1033
  #, php-format
1034
  #@ woocommerce-germanized
1035
  msgctxt "trusted-shops"
1036
  msgid "Choose a Trusted Shops Payment Gateway linked to WooCommerce Payment Gateway %s"
1037
  msgstr "Wählen Sie für die Zahlungsmöglichkeit %s eine von Trusted Shops vorgegebene Zahlungsmöglichkeit aus."
1038
 
 
 
 
 
 
 
1039
  #: includes/emails/class-wc-gzd-email-customer-ekomi.php:25
1040
  #@ woocommerce-germanized
1041
  msgctxt "ekomi"
1070
  msgid "Your Revocation"
1071
  msgstr "Ihr Widerruf"
1072
 
1073
+ #: includes/gateways/bacs/class-wc-gzd-gateway-bacs.php:41
1074
  #@ woocommerce-germanized
1075
  msgid "Print instructions?"
1076
  msgstr "Instruktionen ausgeben?"
1077
 
1078
+ #: includes/gateways/bacs/class-wc-gzd-gateway-bacs.php:43
1079
  #@ woocommerce-germanized
1080
  msgid "Show instructions"
1081
  msgstr "Instruktionen ausgeben"
1082
 
1083
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:78
1084
  #, php-format
1085
  #@ woocommerce-germanized
1086
  msgid "plus %s payment charge"
1087
+ msgstr "zzgl. %s Zahlungsgebühr"
1088
 
1089
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:18
1090
  #, php-format
1091
  #@ woocommerce-germanized
1092
  msgid "Plus %s payment charge."
1093
+ msgstr "Zzgl. %s Zahlungsgebühr."
1094
 
1095
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:40
1096
  #@ woocommerce-germanized
1097
  msgid "Fee"
1098
+ msgstr "Zahlungsgebühr"
1099
 
1100
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:42
1101
  #@ woocommerce-germanized
1102
  msgid "This fee is being added if customer selects payment method within checkout."
1103
+ msgstr "Diese Gebühr wird während der Bestellung hinzugefügt, falls der Kunde diese Zahlungsart aktiviert."
1104
 
1105
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:47
1106
  #@ woocommerce-germanized
1107
  msgid "Fee is taxable?"
1108
  msgstr "Mwst. berechnen?"
1109
 
1110
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:66
1111
  #@ woocommerce-germanized
1112
  msgid "Payment charge"
1113
+ msgstr "Zahlungsgebühr"
1114
 
1115
  #: includes/wc-gzd-cart-functions.php:65
1116
  #, php-format
1128
  msgid "Choose a Payment Gateway"
1129
  msgstr "Zahlungsmethode auswählen"
1130
 
1131
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:421
1132
+ #: includes/wc-gzd-cart-functions.php:100
1133
  #@ woocommerce-germanized
1134
  msgid "I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun."
1135
  msgstr "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt."
1292
  msgid "VAT free based on &#167;19 UStG"
1293
  msgstr "Umsatzsteuerbefreit nach &#167;19 UStG"
1294
 
1295
+ #: woocommerce-germanized.php:437
1296
  #@ woocommerce
1297
  msgid "Settings"
1298
  msgstr "Einstellungen"
1299
 
1300
+ #: woocommerce-germanized.php:590
1301
  #@ woocommerce
1302
  msgid "Order Total:"
1303
  msgstr "Gesamtsumme"
1357
  msgid "Pay for order"
1358
  msgstr ""
1359
 
1360
+ #: includes/class-wc-gzd-trusted-shops.php:212
1361
  #, php-format
1362
  #@ woocommerce-germanized
1363
  msgctxt "trusted-shops"
1364
  msgid "%s ratings"
1365
  msgstr "Bewertungen von %s"
1366
 
1367
+ #: includes/class-wc-gzd-trusted-shops.php:234
1368
  #@ woocommerce-germanized
1369
  msgctxt "trusted-shops"
1370
  msgid "Show customer reviews"
1371
  msgstr "Kundenmeinungen ansehen"
1372
 
1373
+ #: includes/class-wc-gzd-trusted-shops.php:284
1374
  #@ woocommerce-germanized
1375
  msgctxt "trusted-shops"
1376
  msgid "Trusted Shops Customer Reviews"
1377
  msgstr "Trusted Shops Kundenbewertungen"
1378
 
1379
+ #: includes/class-wc-gzd-trusted-shops.php:351
1380
  #@ woocommerce-germanized
1381
  msgctxt "trusted-shops"
1382
  msgid "TS-ID"
1383
  msgstr "TS-ID"
1384
 
1385
+ #: includes/class-wc-gzd-trusted-shops.php:352
1386
  #@ woocommerce-germanized
1387
  msgctxt "trusted-shops"
1388
  msgid "Insert your Trusted Shops ID here."
1389
  msgstr "Füge hier deine Trusted Shops ID ein."
1390
 
1391
+ #: includes/class-wc-gzd-trusted-shops.php:361
1392
  #@ woocommerce-germanized
1393
  msgctxt "trusted-shops"
1394
  msgid "Configure the Trustbadge for your shop"
1395
  msgstr "Konfiguriere dein Trustbadge"
1396
 
1397
+ #: includes/class-wc-gzd-trusted-shops.php:361
1398
  #, php-format
1399
  #@ woocommerce-germanized
1400
  msgctxt "trusted-shops"
1401
  msgid "You'll find a step-by-step instruction for your shopsoftware in our integration center. <a href=\"%s\" target=\"_blank\">Click here</a>"
1402
  msgstr "In unserem Integration Center findest du eine Schritt-für-Schritt Anleitung. Klicke <a href=\"%s\" target=\"_blank\">hier</a>."
1403
 
1404
+ #: includes/class-wc-gzd-trusted-shops.php:364
1405
  #@ woocommerce-germanized
1406
  msgctxt "trusted-shops"
1407
  msgid "Trustbadge code"
1408
  msgstr "Trustbadge Code"
1409
 
1410
+ #: includes/class-wc-gzd-trusted-shops.php:367
1411
  #@ woocommerce-germanized
1412
  msgctxt "trusted-shops"
1413
  msgid "Fill in your trustbadge code here"
1414
  msgstr "Trustbadge Code hier einfügen"
1415
 
1416
+ #: includes/class-wc-gzd-trusted-shops.php:367
1417
  #@ woocommerce-germanized
1418
  msgctxt "trusted-shops"
1419
  msgid "If no further steps were required in the integration center, the Trustbadge is already displayed in your shop."
1420
  msgstr "Sofern keine weiteren Installationsschritte im Integration Center beschrieben wurden, wird das Trustbadge jetzt im Frontend deines Shops angezeigt."
1421
 
1422
+ #: includes/class-wc-gzd-trusted-shops.php:374
1423
  #@ woocommerce-germanized
1424
  msgctxt "trusted-shops"
1425
  msgid "Configure Customer Reviews"
1426
  msgstr "Kundenbewertungen konfigurieren"
1427
 
1428
+ #: includes/class-wc-gzd-trusted-shops.php:377
1429
  #@ woocommerce-germanized
1430
  msgctxt "trusted-shops"
1431
  msgid "Enable Review Widget"
1432
  msgstr "Kundenbewertungswidget aktiveren"
1433
 
1434
+ #: includes/class-wc-gzd-trusted-shops.php:378
1435
  #, php-format
1436
  #@ woocommerce-germanized
1437
  msgctxt "trusted-shops"
1438
  msgid "This option will enable a Widget which shows your Trusted Shops Reviews as a graphic. You may configure your Widgets <a href=\"%s\">here</a>."
1439
  msgstr "Diese Option aktiviert ein Widget, mit dem du das Trusted Shops Review Widget in deinem Shop platzieren kannst. <a href=\"%s\">Hier</a> kannst du deine Widgets zuweisen."
1440
 
1441
+ #: includes/class-wc-gzd-trusted-shops.php:386
1442
  #@ woocommerce-germanized
1443
  msgctxt "trusted-shops"
1444
  msgid "Enable Rich Snippets for Google"
1445
  msgstr "Rich Snippets Anzeige in Google aktivieren"
1446
 
1447
+ #: includes/class-wc-gzd-trusted-shops.php:387
1448
  #@ woocommerce-germanized
1449
  msgctxt "trusted-shops"
1450
  msgid "This option will update your reviews received via Trusted Shops once per day and enables a Widget to show your reviews as Rich Snippets."
1451
  msgstr "Diese Option bewirkt, dass deine über Trusted Shops empfangenen Bewertungen als Rich Snippets im Shop als Widget verfügbar sind. "
1452
 
1453
+ #: includes/class-wc-gzd-trusted-shops.php:414
1454
  #@ woocommerce-germanized
1455
  msgctxt "trusted-shops"
1456
  msgid "Assign payment methods"
1457
  msgstr "Zahlungsmethoden zuweisen"
1458
 
1459
+ #: includes/class-wc-gzd-trusted-shops.php:463
1460
  #@ woocommerce-germanized
1461
  msgctxt "trusted-shops"
1462
  msgid "About Trusted Shops"
1480
  msgid "Trusted Shops Rich Snippets"
1481
  msgstr "Trusted Shops Rich Snippets"
1482
 
1483
+ #: includes/class-wc-gzd-trusted-shops.php:220
 
 
 
 
 
1484
  #, php-format
1485
  #@ woocommerce-germanized
1486
  msgctxt "trusted-shops"
1487
  msgid "%s of %s based on %s <a href=\"%s\" target=\"_blank\">ratings</a>."
1488
  msgstr "%s von %s basierend auf %s <a href=\"%s\" target=\"_blank\">Bewertungen</a>."
1489
 
1490
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:381
1491
  #@ woocommerce-germanized
1492
  msgid "Checkout Table Color"
1493
  msgstr "Hintergrundfarbe der Tabelle"
1494
 
1495
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:383
1496
  #@ woocommerce-germanized
1497
  msgid "Choose the color of your checkout product table. This table should be highlighted within your checkout page."
1498
  msgstr "Wähle die Farbe des Hintergrundes deiner Produkt-Tabelle im Checkout. Die Tabelle sollte sich farblich vom Rest des Inhalts abheben."
1499
 
1500
+ #: includes/admin/views/html-notice-theme-incompatibility.php:14
1501
  #@ woocommerce-germanized
1502
  msgid "Theme incompatibility found"
1503
  msgstr "Theme Inkompatibilität entdeckt"
1504
 
1505
+ #: includes/admin/views/html-notice-theme-incompatibility.php:15
1506
  #, php-format
1507
  #@ woocommerce-germanized
1508
  msgid "It seems like your theme tries to overwrite legally relevant templates. Please review your checkout page. Some things might look weird because WooCommerce Germanized had to stop template overriding for legal purposes. See <a href=\"%s\" target=\"_blank\">making your theme compatible</a> or check out our Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> for 100&#37; compatibility."
1514
  msgid "Get VendiPro now"
1515
  msgstr "VendiPro jetzt entdecken"
1516
 
1517
+ #: includes/admin/views/html-notice-review.php:23
1518
+ #: includes/admin/views/html-notice-theme-incompatibility.php:20
1519
+ #: includes/admin/views/html-notice-theme-not-ready.php:20
1520
  #@ woocommerce-germanized
1521
  msgid "Hide this notice"
1522
  msgstr "Diese Nachricht ausblenden"
1523
 
1524
+ #: includes/admin/views/html-notice-theme-not-ready.php:14
1525
  #@ woocommerce-germanized
1526
  msgid "Theme not yet ready"
1527
  msgstr "Theme ist noch für WooCommerce Germanized optimiert"
1528
 
1529
+ #: includes/admin/views/html-notice-theme-not-ready.php:15
1530
  #, php-format
1531
  #@ woocommerce-germanized
1532
  msgid "It seems like your theme is not yet ready for WooCommerce Germanized. Please check your theme's styles. Some things might look weird - WooCommerce Germanized can only offer basic styles. See <a href=\"%s\" target=\"_blank\">making your theme compatible</a> or check out our Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> for 100&#37; compatibility."
1533
  msgstr "Wir haben festgestellt, dass dein Theme scheinbar noch nicht für WooCommerce Germanized optimiert ist. Bitte überprüfe die Style-Angaben deines Themes bzw. das Aussehen deines Shops. Manche Elemente werden möglicherweise falsch dargestellt - WooCommerce Germanized kann nur grundlegende Style-Angaben machen. Lies dir dazu <a href=\"%s\" target=\"_blank\">wie mache ich mein Theme kompatibel</a> durch oder nutze das von uns entwickelte Theme <a href=\"%s\" target=\"_blank\">VendiPro</a> für 100&#37; Kompatibilität."
1534
 
1535
+ #: includes/abstracts/abstract-wc-gzd-payment-gateway.php:49
 
 
 
 
 
 
1536
  #@ woocommerce-germanized
1537
  msgid "Check if fee is taxable."
1538
  msgstr "MwSt.-Berechnung für Gebühr aktivieren."
1539
 
1540
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:418
1541
+ #@ woocommerce-germanized
1542
+ msgid "Legal Digital Text"
1543
+ msgstr "Hinweis Digital"
1544
+
1545
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:419
1546
+ #@ woocommerce-germanized
1547
+ msgid "Choose a Plain Text which will be shown right above checkout submit button if a user has picked a digital product. See legal text option for possible placeholders."
1548
+ msgstr "Passen Sie hier optional den Hinweistext an, der angezeigt wird, wenn ein Kunde ein digitales Produkt im Warenkorb hat. Sie können hier die gleichen Platzhalter verwenden wie beim Rechtlichen Hinweistext"
1549
+
1550
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:280
1551
+ #@ woocommerce-germanized
1552
+ msgid "Link to Details"
1553
+ msgstr "Verlinkung zu Produktdetails"
1554
+
1555
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:281
1556
+ #@ woocommerce-germanized
1557
+ msgid "Want to link to product details page instead of add to cart within listings?"
1558
+ msgstr "Anstatt des zum Warenkorb Buttons einen Button zur Produktdetail-Seite einfügen?"
1559
+
1560
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:285
1561
+ #@ woocommerce-germanized
1562
+ msgid "Decide whether you like to link to your product's details page instead of displaying an add to cart button within product listings."
1563
+ msgstr "Wenn du lieber einen Link zu deiner Produktseite anstatt eines zum Warenkorb Buttons innerhalb von Produktauflistungen haben möchtest, dann setze einfach diese Option."
1564
+
1565
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:289
1566
+ #@ woocommerce-germanized
1567
+ msgid "Product Details Text"
1568
+ msgstr "Produktdetails Text"
1569
+
1570
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:291
1571
+ #@ woocommerce-germanized
1572
+ msgid "Details"
1573
+ msgstr "Details"
1574
+
1575
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:293
1576
+ #@ woocommerce-germanized
1577
+ msgid "If you have chosen to link to product details page instead of add to cart URL you may want to change the button text."
1578
+ msgstr "Wenn du dich dazu entschlossen hast, lieber auf die Produktseite zu verlinken anstatt den zum Warenkorb Button einzublenden, kannst du hier einen Button-Text vergeben."
1579
+
1580
+ #: includes/class-wc-gzd-trusted-shops.php:395
1581
+ #@ woocommerce-germanized
1582
+ msgctxt "trusted-shops"
1583
+ msgid "Enable Review Reminder"
1584
+ msgstr "Bewertungserinnerung aktivieren"
1585
+
1586
+ #: includes/class-wc-gzd-trusted-shops.php:396
1587
+ #@ woocommerce-germanized
1588
+ msgctxt "trusted-shops"
1589
+ msgid "This option will enable a one-time email review reminder being sent to your customer."
1590
+ msgstr "Diese Option sendet eine einmalige E-Mail Erinnerung bzgl. der Abgabe einer Bewertung über Trusted Shops an den Kunden."
1591
+
1592
+ #: includes/class-wc-gzd-trusted-shops.php:404
1593
+ #@ woocommerce-germanized
1594
+ msgctxt "trusted-shops"
1595
+ msgid "Days until reminder"
1596
+ msgstr "Tage bis zur Erinnerung"
1597
+
1598
+ #: includes/class-wc-gzd-trusted-shops.php:405
1599
+ #@ woocommerce-germanized
1600
+ msgctxt "trusted-shops"
1601
+ msgid "Decide how many days after an order the email review reminder will be sent."
1602
+ msgstr "Anzahl der Tage (nachdem die Bestellung als \\\"abgeschlossen\\\" markiert wurde) bis zur E-Mail Erinnerung an den Kunden."
1603
+
1604
+ #: includes/emails/class-wc-gzd-email-customer-ekomi.php:24
1605
+ #@ woocommerce-germanized
1606
+ msgctxt "ekomi"
1607
+ msgid "eKomi Review Reminder"
1608
+ msgstr "eKomi Bewertungs-Erinnerung"
1609
+
1610
+ #: includes/emails/class-wc-gzd-email-customer-trusted-shops.php:24
1611
+ #@ woocommerce-germanized
1612
+ msgctxt "trusted-shops"
1613
+ msgid "Trusted Shops Review Reminder"
1614
+ msgstr "Trusted Shops Bewertungs-Erinnerung"
1615
+
1616
+ #: includes/emails/class-wc-gzd-email-customer-trusted-shops.php:25
1617
+ #@ woocommerce-germanized
1618
+ msgctxt "trusted-shops"
1619
+ msgid "This E-Mail is being sent to a customer to remind him about the possibility to leave a review at Trusted Shops."
1620
+ msgstr "Diese E-Mail wird einmalig an Kunden verschickt, um diese an die Abgabe einer Bewertung bei Trusted Shops zu erinnern."
1621
+
1622
+ #: includes/emails/class-wc-gzd-email-customer-trusted-shops.php:27
1623
+ #@ woocommerce-germanized
1624
+ msgctxt "trusted-shops"
1625
+ msgid "Please rate your Order"
1626
+ msgstr "Bitte bewerten Sie Ihre Bestellung"
1627
+
1628
+ #: includes/emails/class-wc-gzd-email-customer-trusted-shops.php:28
1629
+ #@ woocommerce-germanized
1630
+ msgctxt "trusted-shops"
1631
+ msgid "Please rate your {site_title} order from {order_date}"
1632
+ msgstr "Bitte bewerten Sie Ihre Bestellung bei {site_title} vom {order_date}"
1633
+
1634
+ #: templates/emails/customer-trusted-shops.php:18
1635
+ #, php-format
1636
+ #@ woocommerce-germanized
1637
+ msgctxt "trusted-shops"
1638
+ msgid "Dear %s %s,"
1639
+ msgstr "Hallo %s %s,"
1640
+
1641
+ #: templates/emails/customer-trusted-shops.php:19
1642
+ #, php-format
1643
+ #@ woocommerce-germanized
1644
+ msgctxt "trusted-shops"
1645
+ msgid "You have recently shopped at %s. Thank you! We would be glad if you spent some time to write a review about your order. To do so please follow follow the link."
1646
+ msgstr "Sie haben vor kurzem bei %s online bestellt. Vielen Dank! Wir würden uns sehr freuen, wenn Sie sich die Zeit nehmen würden, eine kurze Bewertung zu Ihrer Bestellung zu verfassen. Bitte klicken Sie einfach auf nachfolgendem Button um Ihre Bewertung bei Trusted Shops abzugeben."
1647
+
1648
+ #: templates/emails/customer-trusted-shops.php:22
1649
+ #@ woocommerce-germanized
1650
+ msgctxt "trusted-shops"
1651
+ msgid "Rate Order now"
1652
+ msgstr "Bestellung jetzt bewerten"
1653
+
1654
+ #: includes/admin/views/html-notice-review.php:14
1655
+ #@ woocommerce-germanized
1656
+ msgid "Do you like WooCommerce Germanized?"
1657
+ msgstr "Gefällt dir WooCommerce Germanized?"
1658
+
1659
+ #: includes/admin/views/html-notice-review.php:16
1660
+ #@ woocommerce-germanized
1661
+ msgid "If you like WooCommerce Germanized and our Plugin does a good job it would be great if you would write a review about WooCommerce Germanized on WordPress.org. Thank you for your support!"
1662
+ msgstr "Wenn du WooCommerce Germanized nützlich findest und dir unsere Arbeit gefällt, dann würden wir uns sehr darüber freuen, wenn du dir die Zeit nehmen könntest, eine kurze Bewertung zum Plugin bei WordPress zu veröffentlichen. Vielen Dank für deine Mühen!"
1663
+
1664
+ #: includes/admin/views/html-notice-review.php:19
1665
+ #@ woocommerce-germanized
1666
+ msgid "Write review now"
1667
+ msgstr "jetzt Bewertung verfassen"
1668
+
1669
+ #: includes/admin/views/html-notice-review.php:20
1670
+ #@ woocommerce-germanized
1671
+ msgid "Found Bugs?"
1672
+ msgstr "Bugs oder Wünsche melden"
1673
+
1674
+ #. translators: plugin header field 'Version'
1675
+ #: woocommerce-germanized.php:0
1676
+ #@ woocommerce-germanized
1677
+ msgid "1.0.2"
1678
+ msgstr "1.0.2"
1679
+
includes/abstracts/abstract-wc-gzd-payment-gateway.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adds payment method fee to applicable payment methods
4
+ *
5
+ * @class WC_GZD_Payment_Gateway
6
+ * @version 1.0.0
7
+ * @author Vendidero
8
+ */
9
+ class WC_GZD_Payment_Gateway {
10
+
11
+ public $gateway;
12
+
13
+ public function __construct( WC_Payment_Gateway $gateway ) {
14
+ $this->gateway = $gateway;
15
+ $this->init_form_fields();
16
+ if ( $this->get_option( 'fee' ) ) {
17
+ add_filter( 'woocommerce_gateway_title', array( $this, 'manipulate_title' ), 0, 2 );
18
+ $this->description .= ' ' . sprintf( __( 'Plus %s payment charge.', 'woocommerce-germanized' ), wc_price( $this->get_option( 'fee' ) ) );
19
+ }
20
+ }
21
+
22
+ public function __get( $key ) {
23
+ return $this->gateway->$key;
24
+ }
25
+
26
+ public function __set( $key, $value ) {
27
+ $this->gateway->$key = $value;
28
+ }
29
+
30
+ public function __call( $method, $arguments ) {
31
+ if ( method_exists( $this->gateway, $method ) )
32
+ return call_user_func_array( array( $this->gateway, $method), $arguments );
33
+ }
34
+
35
+ /**
36
+ * Add default form fields to enable fee within payment method settings page
37
+ */
38
+ public function init_form_fields() {
39
+ $this->gateway->form_fields[ 'fee' ] = array(
40
+ 'title' => __( 'Fee', 'woocommerce-germanized' ),
41
+ 'type' => 'decimal',
42
+ 'description' => __( 'This fee is being added if customer selects payment method within checkout.', 'woocommerce-germanized' ),
43
+ 'default' => 0,
44
+ 'desc_tip' => true,
45
+ );
46
+ $this->gateway->form_fields[ 'fee_is_taxable' ] = array(
47
+ 'title' => __( 'Fee is taxable?', 'woocommerce-germanized' ),
48
+ 'type' => 'checkbox',
49
+ 'label' => __( 'Check if fee is taxable.', 'woocommerce-germanized' ),
50
+ 'default' => 'no',
51
+ );
52
+ }
53
+
54
+ /**
55
+ * Adds the fee to current Cart. If fee is taxable calculate net price and add net price as fee.
56
+ */
57
+ public function add_fee() {
58
+ if ( $this->get_option( 'fee' ) ) {
59
+ $is_taxable = ( $this->get_option( 'fee_is_taxable', 'no' ) == 'no' ? false : true );
60
+ $fee = $this->get_option( 'fee' );
61
+ if ( $is_taxable ) {
62
+ $tax_rates = WC()->cart->tax->get_rates();
63
+ $fee_taxes = WC()->cart->tax->calc_tax( $fee, $tax_rates, true );
64
+ $fee = $fee - array_sum( $fee_taxes );
65
+ }
66
+ WC()->cart->add_fee( __( 'Payment charge', 'woocommerce-germanized' ), $fee, $is_taxable );
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Adds a fee notice to the payment method title
72
+ *
73
+ * @param string $title
74
+ * @param int $id payment method id
75
+ */
76
+ public function manipulate_title( $title, $id ) {
77
+ if ( $id == $this->id && $this->get_option( 'fee' ) && ( is_checkout() || ( defined( 'DOING_AJAX' ) && isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'woocommerce_update_order_review' ) ) )
78
+ $title = $this->title . ' <span class="small">(' . sprintf( __( 'plus %s payment charge', 'woocommerce-germanized' ), wc_price( $this->get_option( 'fee' ) ) ) . ')</span>';
79
+ return $title;
80
+ }
81
+
82
+ }
83
+
84
+ ?>
includes/admin/class-wc-gzd-admin-notices.php CHANGED
@@ -20,7 +20,7 @@ if ( ! class_exists( 'WC_GZD_Admin_Notices' ) ) :
20
  class WC_GZD_Admin_Notices {
21
 
22
  public function __construct() {
23
- add_action( 'admin_print_styles', array( $this, 'check_theme_notice_hide' ), 0 );
24
  add_action( 'admin_print_styles', array( $this, 'add_notices' ), 1 );
25
  }
26
 
@@ -37,7 +37,8 @@ class WC_GZD_Admin_Notices {
37
  add_action( 'admin_notices', array( $this, 'theme_incompatibility_notice' ) );
38
  else if ( ! $this->is_theme_ready() && ! get_option( '_wc_gzd_hide_theme_notice' ) )
39
  add_action( 'admin_notices', array( $this, 'theme_not_ready_notice' ) );
40
- // delete_option( '_wc_gzd_hide_theme_notice' );
 
41
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'wc-gzd-about' || get_option( '_wc_gzd_needs_pages' ) ) {
42
  remove_action( 'admin_notices', array( $this, 'theme_incompatibility_notice' ) );
43
  remove_action( 'admin_notices', array( $this, 'theme_not_ready_notice' ) );
@@ -58,11 +59,20 @@ class WC_GZD_Admin_Notices {
58
  }
59
  }
60
 
61
- public function check_theme_notice_hide() {
 
62
  if ( isset( $_GET[ 'activated' ] ) )
63
  delete_option( '_wc_gzd_hide_theme_notice' );
64
- if ( isset( $_GET[ 'wc-gzd-hide-theme-notice' ] ) )
65
- update_option( '_wc_gzd_hide_theme_notice', true );
 
 
 
 
 
 
 
 
66
  }
67
 
68
  public function theme_incompatibility_notice() {
@@ -81,6 +91,16 @@ class WC_GZD_Admin_Notices {
81
  return true;
82
  }
83
 
 
 
 
 
 
 
 
 
 
 
84
  /**
85
  * Checks if current theme is woocommerce germanized compatible
86
  *
20
  class WC_GZD_Admin_Notices {
21
 
22
  public function __construct() {
23
+ add_action( 'admin_init', array( $this, 'check_notice_hide' ) );
24
  add_action( 'admin_print_styles', array( $this, 'add_notices' ), 1 );
25
  }
26
 
37
  add_action( 'admin_notices', array( $this, 'theme_incompatibility_notice' ) );
38
  else if ( ! $this->is_theme_ready() && ! get_option( '_wc_gzd_hide_theme_notice' ) )
39
  add_action( 'admin_notices', array( $this, 'theme_not_ready_notice' ) );
40
+ if ( ! get_option( '_wc_gzd_hide_review_notice' ) )
41
+ add_action( 'admin_notices', array( $this, 'add_review_notice' ) );
42
  if ( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'wc-gzd-about' || get_option( '_wc_gzd_needs_pages' ) ) {
43
  remove_action( 'admin_notices', array( $this, 'theme_incompatibility_notice' ) );
44
  remove_action( 'admin_notices', array( $this, 'theme_not_ready_notice' ) );
59
  }
60
  }
61
 
62
+ public function check_notice_hide() {
63
+ $notices = array( 'wc-gzd-hide-theme-notice', 'wc-gzd-hide-review-notice' );
64
  if ( isset( $_GET[ 'activated' ] ) )
65
  delete_option( '_wc_gzd_hide_theme_notice' );
66
+ if ( ! empty( $notices ) ) {
67
+ foreach ( $notices as $notice ) {
68
+ if ( isset( $_GET[ 'notice' ] ) && $_GET[ 'notice' ] == $notice && isset( $_GET['nonce'] ) && check_admin_referer( $notice, 'nonce' ) ) {
69
+ update_option( '_' . str_replace( '-', '_', $notice ) , true );
70
+ $redirect_url = remove_query_arg( 'notice', remove_query_arg( 'nonce', $_SERVER['REQUEST_URI'] ) );
71
+ wp_safe_redirect( $redirect_url );
72
+ exit();
73
+ }
74
+ }
75
+ }
76
  }
77
 
78
  public function theme_incompatibility_notice() {
91
  return true;
92
  }
93
 
94
+ public function add_review_notice() {
95
+ if ( get_option( 'woocommerce_gzd_activation_date' ) ) {
96
+ $activation_date = new DateTime( get_option( 'woocommerce_gzd_activation_date' ) );
97
+ $today = new DateTime();
98
+ $diff = $activation_date->diff( $today );
99
+ if ( $diff->d >= 7 )
100
+ include( 'views/html-notice-review.php' );
101
+ }
102
+ }
103
+
104
  /**
105
  * Checks if current theme is woocommerce germanized compatible
106
  *
includes/admin/settings/class-wc-gzd-settings-germanized.php CHANGED
@@ -273,7 +273,25 @@ class WC_GZD_Settings_Germanized extends WC_Settings_Page {
273
  'id' => 'woocommerce_gzd_display_listings_add_to_cart',
274
  'default' => 'yes',
275
  'type' => 'checkbox',
276
- 'desc_tip' => sprintf( __( 'unset this option if you don\'t want to show the add to cart button within the product listings', 'woocommerce-germanized' ), esc_url( 'http://www.gesetze-im-internet.de/ustg_1980/__19.html' ) )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  ),
278
 
279
  array(
@@ -396,6 +414,16 @@ class WC_GZD_Settings_Germanized extends WC_Settings_Page {
396
  'type' => 'textarea',
397
  ),
398
 
 
 
 
 
 
 
 
 
 
 
399
  array(
400
  'title' => __( 'Order Success Text', 'woocommerce-germanized' ),
401
  'desc' => __( 'Choose a custom text to display on order success page.', 'woocommerce-germanized' ),
273
  'id' => 'woocommerce_gzd_display_listings_add_to_cart',
274
  'default' => 'yes',
275
  'type' => 'checkbox',
276
+ 'desc_tip' => __( 'unset this option if you don\'t want to show the add to cart button within the product listings', 'woocommerce-germanized' ),
277
+ ),
278
+
279
+ array(
280
+ 'title' => __( 'Link to Details', 'woocommerce-germanized' ),
281
+ 'desc' => __( 'Want to link to product details page instead of add to cart within listings?', 'woocommerce-germanized' ),
282
+ 'id' => 'woocommerce_gzd_display_listings_link_details',
283
+ 'default' => 'no',
284
+ 'type' => 'checkbox',
285
+ 'desc_tip' => __( 'Decide whether you like to link to your product\'s details page instead of displaying an add to cart button within product listings.', 'woocommerce-germanized' ),
286
+ ),
287
+
288
+ array(
289
+ 'title' => __( 'Product Details Text', 'woocommerce-germanized' ),
290
+ 'id' => 'woocommerce_gzd_display_listings_link_details_text',
291
+ 'default' => __( 'Details', 'woocommerce-germanized' ),
292
+ 'type' => 'text',
293
+ 'desc_tip' => __( 'If you have chosen to link to product details page instead of add to cart URL you may want to change the button text.', 'woocommerce-germanized' ),
294
+ 'css' => 'min-width:300px;',
295
  ),
296
 
297
  array(
414
  'type' => 'textarea',
415
  ),
416
 
417
+ array(
418
+ 'title' => __( 'Legal Digital Text', 'woocommerce-germanized' ),
419
+ 'desc' => __( 'Choose a Plain Text which will be shown right above checkout submit button if a user has picked a digital product. See legal text option for possible placeholders.', 'woocommerce-germanized' ),
420
+ 'desc_tip' => true,
421
+ 'default' => __( 'I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun.', 'woocommerce-germanized' ),
422
+ 'css' => 'width:100%; height: 65px;',
423
+ 'id' => 'woocommerce_gzd_checkout_legal_text_digital',
424
+ 'type' => 'textarea',
425
+ ),
426
+
427
  array(
428
  'title' => __( 'Order Success Text', 'woocommerce-germanized' ),
429
  'desc' => __( 'Choose a custom text to display on order success page.', 'woocommerce-germanized' ),
includes/admin/views/html-notice-review.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin View: Notice - Review
4
+ */
5
+
6
+ if ( ! defined( 'ABSPATH' ) ) {
7
+ exit; // Exit if accessed directly
8
+ }
9
+
10
+ $dismiss_url = add_query_arg( 'notice', 'wc-gzd-hide-review-notice', add_query_arg( 'nonce', wp_create_nonce( 'wc-gzd-hide-review-notice' ) ) );
11
+ ?>
12
+
13
+ <div class="updated fade">
14
+ <h3><?php _e( 'Do you like WooCommerce Germanized?', 'woocommerce-germanized' ); ?></h3>
15
+ <p>
16
+ <?php _e( 'If you like WooCommerce Germanized and our Plugin does a good job it would be great if you would write a review about WooCommerce Germanized on WordPress.org. Thank you for your support!', 'woocommerce-germanized' ); ?>
17
+ </p>
18
+ <p class="alignleft wc-gzd-button-wrapper">
19
+ <a class="button button-primary" href="https://wordpress.org/support/view/plugin-reviews/woocommerce-germanized" target="_blank"><?php _e( 'Write review now', 'woocommerce-germanized' );?></a>
20
+ <a class="button button-secondary" href="https://wordpress.org/support/plugin/woocommerce-germanized" target="_blank"><?php _e( 'Found Bugs?', 'woocommerce-germanized' );?></a>
21
+ </p>
22
+ <p class="alignright">
23
+ <a href="<?php echo esc_url( $dismiss_url );?>"><?php _e( 'Hide this notice', 'woocommerce-germanized' ); ?></a>
24
+ </p>
25
+ <div class="clear"></div>
26
+ </div>
includes/admin/views/html-notice-theme-incompatibility.php CHANGED
@@ -7,21 +7,17 @@ if ( ! defined( 'ABSPATH' ) ) {
7
  exit; // Exit if accessed directly
8
  }
9
 
 
10
  ?>
11
 
12
- <div class="error">
13
  <h3><?php _e( 'Theme incompatibility found', 'woocommerce-germanized' ); ?></h3>
14
  <p><?php printf( __( 'It seems like your theme tries to overwrite legally relevant templates. Please review your checkout page. Some things might look weird because WooCommerce Germanized had to stop template overriding for legal purposes. See <a href="%s" target="_blank">making your theme compatible</a> or check out our Theme <a href="%s" target="_blank">VendiPro</a> for 100&#37; compatibility.', 'woocommerce-germanized' ), 'http://vendidero.de/dokument/woocommerce-germanized-theme-kompatibilitaet', 'http://vendidero.de/vendipro' ); ?></p>
15
- <form name="wc-gzd-hide-theme-incompatible-notice" method="get">
16
- <p>
17
- <a class="button button-primary" style="margin-right: 1em" href="http://vendidero.de/vendipro" target="_blank"><?php _e( 'Get VendiPro now', 'woocommerce-germanized' ); ?></a>
18
- <input type="hidden" name="wc-gzd-hide-theme-notice" value="1" />
19
- <?php if ( ! empty( $_GET ) ) : ?>
20
- <?php foreach ( $_GET as $key => $val ) : ?>
21
- <input type="hidden" name="<?php echo sanitize_text_field( $key ); ?>" value="<?php echo esc_attr( sanitize_text_field( $val ) ); ?>" />
22
- <?php endforeach; ?>
23
- <?php endif; ?>
24
- <button class="button button-secondary" type="submit"><?php _e( 'Hide this notice', 'woocommerce-germanized' ); ?></button>
25
- </p>
26
- </form>
27
  </div>
7
  exit; // Exit if accessed directly
8
  }
9
 
10
+ $dismiss_url = add_query_arg( 'notice', 'wc-gzd-hide-theme-notice', add_query_arg( 'nonce', wp_create_nonce( 'wc-gzd-hide-theme-notice' ) ) );
11
  ?>
12
 
13
+ <div class="error fade">
14
  <h3><?php _e( 'Theme incompatibility found', 'woocommerce-germanized' ); ?></h3>
15
  <p><?php printf( __( 'It seems like your theme tries to overwrite legally relevant templates. Please review your checkout page. Some things might look weird because WooCommerce Germanized had to stop template overriding for legal purposes. See <a href="%s" target="_blank">making your theme compatible</a> or check out our Theme <a href="%s" target="_blank">VendiPro</a> for 100&#37; compatibility.', 'woocommerce-germanized' ), 'http://vendidero.de/dokument/woocommerce-germanized-theme-kompatibilitaet', 'http://vendidero.de/vendipro' ); ?></p>
16
+ <p class="alignleft wc-gzd-button-wrapper">
17
+ <a class="button button-primary" href="http://vendidero.de/vendipro" target="_blank"><?php _e( 'Get VendiPro now', 'woocommerce-germanized' ); ?></a>
18
+ </p>
19
+ <p class="alignright">
20
+ <a href="<?php echo esc_url( $dismiss_url );?>"><?php _e( 'Hide this notice', 'woocommerce-germanized' ); ?></a>
21
+ </p>
22
+ <div class="clear"></div>
 
 
 
 
 
23
  </div>
includes/admin/views/html-notice-theme-not-ready.php CHANGED
@@ -7,21 +7,17 @@ if ( ! defined( 'ABSPATH' ) ) {
7
  exit; // Exit if accessed directly
8
  }
9
 
 
10
  ?>
11
 
12
- <div class="error">
13
  <h3><?php _e( 'Theme not yet ready', 'woocommerce-germanized' ); ?></h3>
14
  <p><?php printf( __( 'It seems like your theme is not yet ready for WooCommerce Germanized. Please check your theme\'s styles. Some things might look weird - WooCommerce Germanized can only offer basic styles. See <a href="%s" target="_blank">making your theme compatible</a> or check out our Theme <a href="%s" target="_blank">VendiPro</a> for 100&#37; compatibility.', 'woocommerce-germanized' ), 'http://vendidero.de/dokument/woocommerce-germanized-theme-kompatibilitaet', 'http://vendidero.de/vendipro' ); ?></p>
15
- <form name="wc-gzd-hide-theme-incompatible-notice" method="get" action="">
16
- <p>
17
- <a class="button button-primary" style="margin-right: 1em" href="http://vendidero.de/vendipro" target="_blank"><?php _e( 'Get VendiPro now', 'woocommerce-germanized' ); ?></a>
18
- <input type="hidden" name="wc-gzd-hide-theme-notice" value="1" />
19
- <?php if ( ! empty( $_GET ) ) : ?>
20
- <?php foreach ( $_GET as $key => $val ) : ?>
21
- <input type="hidden" name="<?php echo sanitize_text_field( $key ); ?>" value="<?php echo esc_attr( sanitize_text_field( $val ) ); ?>" />
22
- <?php endforeach; ?>
23
- <?php endif; ?>
24
- <button class="button button-secondary" type="submit"><?php _e( 'Hide this notice', 'woocommerce-germanized' ); ?></button>
25
- </p>
26
- </form>
27
  </div>
7
  exit; // Exit if accessed directly
8
  }
9
 
10
+ $dismiss_url = add_query_arg( 'notice', 'wc-gzd-hide-theme-notice', add_query_arg( 'nonce', wp_create_nonce( 'wc-gzd-hide-theme-notice' ) ) );
11
  ?>
12
 
13
+ <div class="error fade">
14
  <h3><?php _e( 'Theme not yet ready', 'woocommerce-germanized' ); ?></h3>
15
  <p><?php printf( __( 'It seems like your theme is not yet ready for WooCommerce Germanized. Please check your theme\'s styles. Some things might look weird - WooCommerce Germanized can only offer basic styles. See <a href="%s" target="_blank">making your theme compatible</a> or check out our Theme <a href="%s" target="_blank">VendiPro</a> for 100&#37; compatibility.', 'woocommerce-germanized' ), 'http://vendidero.de/dokument/woocommerce-germanized-theme-kompatibilitaet', 'http://vendidero.de/vendipro' ); ?></p>
16
+ <p class="alignleft wc-gzd-button-wrapper">
17
+ <a class="button button-primary" href="http://vendidero.de/vendipro" target="_blank"><?php _e( 'Get VendiPro now', 'woocommerce-germanized' ); ?></a>
18
+ </p>
19
+ <p class="alignright">
20
+ <a href="<?php echo esc_url( $dismiss_url );?>"><?php _e( 'Hide this notice', 'woocommerce-germanized' ); ?></a>
21
+ </p>
22
+ <div class="clear"></div>
 
 
 
 
 
23
  </div>
includes/class-wc-gzd-ekomi.php CHANGED
@@ -145,7 +145,7 @@ class WC_GZD_Ekomi {
145
  * @return boolean
146
  */
147
  public function put_order( $order_id ) {
148
- $order = get_order( $order_id );
149
  if ( ! isset( $order->ekomi_review_link ) ) {
150
  $items = $order->get_items();
151
  $product_ids = array();
145
  * @return boolean
146
  */
147
  public function put_order( $order_id ) {
148
+ $order = wc_get_order( $order_id );
149
  if ( ! isset( $order->ekomi_review_link ) ) {
150
  $items = $order->get_items();
151
  $product_ids = array();
includes/class-wc-gzd-install.php CHANGED
@@ -93,7 +93,7 @@ class WC_GZD_Install {
93
  if ( file_exists( WC_germanized()->plugin_path() . '/i18n/languages/woocommerce-germanized-' . $locale . '.mo' ) )
94
  $mofile = WC_germanized()->plugin_path() . '/i18n/languages/woocommerce-germanized-' . $locale . '.mo';
95
  load_textdomain( 'woocommerce-germanized', $mofile );
96
- if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
97
  deactivate_plugins( WC_GERMANIZED_PLUGIN_FILE );
98
  wp_die( sprintf( __( 'Please install <a href="%s" target="_blank">WooCommerce</a> before installing WooCommerce Germanized. Thank you!', 'woocommerce-germanized' ), 'http://wordpress.org/plugins/woocommerce/' ) );
99
  }
@@ -113,9 +113,14 @@ class WC_GZD_Install {
113
  // Update version
114
  update_option( 'woocommerce_gzd_version', WC_germanized()->version );
115
 
 
 
 
116
  // Add theme compatibility check
117
  delete_option( '_wc_gzd_hide_theme_notice' );
118
 
 
 
119
  // Check if pages are needed
120
  if ( wc_get_page_id( 'revocation' ) < 1 ) {
121
  update_option( '_wc_gzd_needs_pages', 1 );
93
  if ( file_exists( WC_germanized()->plugin_path() . '/i18n/languages/woocommerce-germanized-' . $locale . '.mo' ) )
94
  $mofile = WC_germanized()->plugin_path() . '/i18n/languages/woocommerce-germanized-' . $locale . '.mo';
95
  load_textdomain( 'woocommerce-germanized', $mofile );
96
+ if ( ! WC_germanized()->is_woocommerce_activated() ) {
97
  deactivate_plugins( WC_GERMANIZED_PLUGIN_FILE );
98
  wp_die( sprintf( __( 'Please install <a href="%s" target="_blank">WooCommerce</a> before installing WooCommerce Germanized. Thank you!', 'woocommerce-germanized' ), 'http://wordpress.org/plugins/woocommerce/' ) );
99
  }
113
  // Update version
114
  update_option( 'woocommerce_gzd_version', WC_germanized()->version );
115
 
116
+ // Update activation date
117
+ update_option( 'woocommerce_gzd_activation_date', date( 'Y-m-d' ) );
118
+
119
  // Add theme compatibility check
120
  delete_option( '_wc_gzd_hide_theme_notice' );
121
 
122
+ delete_option( '_wc_gzd_hide_review_notice' );
123
+
124
  // Check if pages are needed
125
  if ( wc_get_page_id( 'revocation' ) < 1 ) {
126
  update_option( '_wc_gzd_needs_pages', 1 );
includes/class-wc-gzd-trusted-shops.php CHANGED
@@ -64,7 +64,9 @@ class WC_GZD_Trusted_Shops {
64
  add_action( 'woocommerce_gzd_trusted_shops_reviews', array( $this, 'update_reviews' ) );
65
  if ( $this->is_review_widget_enabled() )
66
  add_action( 'woocommerce_gzd_trusted_shops_reviews', array( $this, 'update_review_widget' ) );
67
- //add_action( 'init', array( $this, 'update_review_widget' ) );
 
 
68
  // Add Badge to Footer
69
  if ( $this->is_enabled() && $this->get_badge_js() )
70
  add_action( 'wp_footer', array( $this, 'add_badge' ), 5 );
@@ -117,6 +119,10 @@ class WC_GZD_Trusted_Shops {
117
  return ( $this->review_widget_enable == 'yes' && $this->is_enabled() ? true : false );
118
  }
119
 
 
 
 
 
120
  /**
121
  * Gets Trusted Shops payment gateway by woocommerce payment id
122
  *
@@ -145,6 +151,15 @@ class WC_GZD_Trusted_Shops {
145
  return 'https://www.trustedshops.com/shop/certificate.php?shop_id=' . $this->id;
146
  }
147
 
 
 
 
 
 
 
 
 
 
148
  /**
149
  * Returns the rating link
150
  *
@@ -285,6 +300,40 @@ class WC_GZD_Trusted_Shops {
285
  wp_update_attachment_metadata( $attachment_id, $attach_data );
286
  }
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  /**
289
  * Get Trusted Shops related Settings for Admin Interface
290
  *
@@ -342,6 +391,24 @@ class WC_GZD_Trusted_Shops {
342
  'autoload' => false
343
  ),
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  array( 'type' => 'sectionend', 'id' => 'trusted_shops_reviews_options' ),
346
 
347
  array( 'title' => _x( 'Assign payment methods', 'trusted-shops', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'trusted_shops_payment_options' ),
64
  add_action( 'woocommerce_gzd_trusted_shops_reviews', array( $this, 'update_reviews' ) );
65
  if ( $this->is_review_widget_enabled() )
66
  add_action( 'woocommerce_gzd_trusted_shops_reviews', array( $this, 'update_review_widget' ) );
67
+ if ( $this->is_review_reminder_enabled() )
68
+ add_action( 'woocommerce_gzd_trusted_shops_reviews', array( $this, 'send_mails' ) );
69
+ // add_action( 'init', array( $this, 'send_mails' ) );
70
  // Add Badge to Footer
71
  if ( $this->is_enabled() && $this->get_badge_js() )
72
  add_action( 'wp_footer', array( $this, 'add_badge' ), 5 );
119
  return ( $this->review_widget_enable == 'yes' && $this->is_enabled() ? true : false );
120
  }
121
 
122
+ public function is_review_reminder_enabled() {
123
+ return ( $this->review_reminder_enable == 'yes' && $this->is_enabled() ? true : false );
124
+ }
125
+
126
  /**
127
  * Gets Trusted Shops payment gateway by woocommerce payment id
128
  *
151
  return 'https://www.trustedshops.com/shop/certificate.php?shop_id=' . $this->id;
152
  }
153
 
154
+ /**
155
+ * Returns add new rating link
156
+ *
157
+ * @return string
158
+ */
159
+ public function get_new_review_link() {
160
+ return 'https://www.trustedshops.de/bewertung/bewerten_' . $this->id . '.html';
161
+ }
162
+
163
  /**
164
  * Returns the rating link
165
  *
300
  wp_update_attachment_metadata( $attachment_id, $attach_data );
301
  }
302
 
303
+ /**
304
+ * Send review reminder mails after x days
305
+ */
306
+ public function send_mails() {
307
+ $order_query = new WP_Query(
308
+ array( 'post_type' => 'shop_order', 'post_status' => array( 'wc-completed' ), 'meta_query' =>
309
+ array(
310
+ array(
311
+ 'key' => '_trusted_shops_review_mail_sent',
312
+ 'compare' => 'NOT EXISTS',
313
+ ),
314
+ ),
315
+ )
316
+ );
317
+ while ( $order_query->have_posts() ) {
318
+ $order_query->next_post();
319
+ $order = wc_get_order( $order_query->post->ID );
320
+ $completed_date = new DateTime( date( 'Y-m-d', strtotime( $order->completed_date ) ) );
321
+ $current_date = new DateTime( date( 'Y-m-d' ) );
322
+ $day_diff = $current_date->diff( $completed_date );
323
+ if ( $day_diff->d >= (int) 0 ) {
324
+ $mails = WC()->mailer()->get_emails();
325
+ if ( !empty( $mails ) ) {
326
+ foreach ( $mails as $mail ) {
327
+ if ( $mail->id == 'customer_trusted_shops' ) {
328
+ $mail->trigger( $order->id );
329
+ update_post_meta( $order->id, '_trusted_shops_review_mail_sent', 1 );
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }
336
+
337
  /**
338
  * Get Trusted Shops related Settings for Admin Interface
339
  *
391
  'autoload' => false
392
  ),
393
 
394
+ array(
395
+ 'title' => _x( 'Enable Review Reminder', 'trusted-shops', 'woocommerce-germanized' ),
396
+ 'desc' => sprintf( _x( 'This option will enable a one-time email review reminder being sent to your customer.', 'trusted-shops', 'woocommerce-germanized' ), admin_url( 'widgets.php' ) ),
397
+ 'id' => 'woocommerce_gzd_trusted_shops_review_reminder_enable',
398
+ 'type' => 'checkbox',
399
+ 'default' => 'no',
400
+ 'autoload' => false
401
+ ),
402
+
403
+ array(
404
+ 'title' => _x( 'Days until reminder', 'trusted-shops', 'woocommerce-germanized' ),
405
+ 'desc' => _x( 'Decide how many days after an order the email review reminder will be sent.', 'trusted-shops', 'woocommerce-germanized' ),
406
+ 'desc_tip' => true,
407
+ 'default' => 7,
408
+ 'id' => 'woocommerce_gzd_trusted_review_reminder_days',
409
+ 'type' => 'number',
410
+ ),
411
+
412
  array( 'type' => 'sectionend', 'id' => 'trusted_shops_reviews_options' ),
413
 
414
  array( 'title' => _x( 'Assign payment methods', 'trusted-shops', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'trusted_shops_payment_options' ),
includes/emails/class-wc-gzd-email-customer-ekomi.php CHANGED
@@ -21,7 +21,7 @@ class WC_GZD_Email_Customer_Ekomi extends WC_Email {
21
  function __construct() {
22
 
23
  $this->id = 'customer_ekomi';
24
- $this->title = _x( 'eKomi Review Notice', 'ekomi', 'woocommerce-germanized' );
25
  $this->description = _x( 'This E-Mail is being sent to a customer to transfer eKomi order review link to a customer.', 'ekomi', 'woocommerce-germanized' );
26
 
27
  $this->heading = _x( 'Please rate your Order', 'ekomi', 'woocommerce-germanized' );
@@ -46,7 +46,7 @@ class WC_GZD_Email_Customer_Ekomi extends WC_Email {
46
  function trigger( $order_id ) {
47
 
48
  if ( $order_id ) {
49
- $this->object = get_order( $order_id );
50
  $this->recipient = $this->object->billing_email;
51
 
52
  $this->find['order-date'] = '{order_date}';
21
  function __construct() {
22
 
23
  $this->id = 'customer_ekomi';
24
+ $this->title = _x( 'eKomi Review Reminder', 'ekomi', 'woocommerce-germanized' );
25
  $this->description = _x( 'This E-Mail is being sent to a customer to transfer eKomi order review link to a customer.', 'ekomi', 'woocommerce-germanized' );
26
 
27
  $this->heading = _x( 'Please rate your Order', 'ekomi', 'woocommerce-germanized' );
46
  function trigger( $order_id ) {
47
 
48
  if ( $order_id ) {
49
+ $this->object = wc_get_order( $order_id );
50
  $this->recipient = $this->object->billing_email;
51
 
52
  $this->find['order-date'] = '{order_date}';
includes/emails/class-wc-gzd-email-customer-revocation.php CHANGED
@@ -23,15 +23,15 @@ class WC_GZD_Email_Customer_Revocation extends WC_Email {
23
  */
24
  function __construct() {
25
 
26
- $this->id = 'customer_revocation';
27
- $this->title = __( 'Revocation', 'woocommerce-germanized' );
28
- $this->description = __( 'Email being sent if a customer fills out the revocation form.', 'woocommerce-germanized' );
29
 
30
- $this->template_html = 'emails/customer-revocation.php';
31
- $this->template_plain = 'emails/plain/customer-revocation.php';
32
 
33
- $this->subject = __( 'Your Revocation', 'woocommerce-germanized' );
34
- $this->heading = __( 'Your Revocation', 'woocommerce-germanized' );
35
 
36
  // Call parent constuctor
37
  parent::__construct();
@@ -68,11 +68,11 @@ class WC_GZD_Email_Customer_Revocation extends WC_Email {
68
  function get_content_html() {
69
  ob_start();
70
  wc_get_template( $this->template_html, array(
71
- 'user' => $this->object,
72
- 'email_heading' => $this->get_heading(),
73
- 'blogname' => $this->get_blogname(),
74
- 'sent_to_admin' => false,
75
- 'plain_text' => false
76
  ) );
77
  return ob_get_clean();
78
  }
@@ -86,11 +86,11 @@ class WC_GZD_Email_Customer_Revocation extends WC_Email {
86
  function get_content_plain() {
87
  ob_start();
88
  wc_get_template( $this->template_plain, array(
89
- 'user' => $this->object,
90
- 'email_heading' => $this->get_heading(),
91
- 'blogname' => $this->get_blogname(),
92
- 'sent_to_admin' => false,
93
- 'plain_text' => true
94
  ) );
95
  return ob_get_clean();
96
  }
23
  */
24
  function __construct() {
25
 
26
+ $this->id = 'customer_revocation';
27
+ $this->title = __( 'Revocation', 'woocommerce-germanized' );
28
+ $this->description = __( 'Email being sent if a customer fills out the revocation form.', 'woocommerce-germanized' );
29
 
30
+ $this->template_html = 'emails/customer-revocation.php';
31
+ $this->template_plain = 'emails/plain/customer-revocation.php';
32
 
33
+ $this->subject = __( 'Your Revocation', 'woocommerce-germanized' );
34
+ $this->heading = __( 'Your Revocation', 'woocommerce-germanized' );
35
 
36
  // Call parent constuctor
37
  parent::__construct();
68
  function get_content_html() {
69
  ob_start();
70
  wc_get_template( $this->template_html, array(
71
+ 'user' => $this->object,
72
+ 'email_heading' => $this->get_heading(),
73
+ 'blogname' => $this->get_blogname(),
74
+ 'sent_to_admin' => false,
75
+ 'plain_text' => false
76
  ) );
77
  return ob_get_clean();
78
  }
86
  function get_content_plain() {
87
  ob_start();
88
  wc_get_template( $this->template_plain, array(
89
+ 'user' => $this->object,
90
+ 'email_heading' => $this->get_heading(),
91
+ 'blogname' => $this->get_blogname(),
92
+ 'sent_to_admin' => false,
93
+ 'plain_text' => true
94
  ) );
95
  return ob_get_clean();
96
  }
includes/emails/class-wc-gzd-email-customer-trusted-shops.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
+
5
+ if ( ! class_exists( 'WC_GZD_Email_Customer_Trusted_Shops' ) ) :
6
+
7
+ /**
8
+ * eKomi Review Reminder Email
9
+ *
10
+ * This Email is being sent after the order has been marked as completed to transfer the eKomi Rating Link to the customer.
11
+ *
12
+ * @class WC_GZD_Email_Customer_Ekomi
13
+ * @version 1.0.0
14
+ * @author Vendidero
15
+ */
16
+ class WC_GZD_Email_Customer_Trusted_Shops extends WC_Email {
17
+
18
+ /**
19
+ * Constructor
20
+ */
21
+ function __construct() {
22
+
23
+ $this->id = 'customer_trusted_shops';
24
+ $this->title = _x( 'Trusted Shops Review Reminder', 'trusted-shops', 'woocommerce-germanized' );
25
+ $this->description = _x( 'This E-Mail is being sent to a customer to remind him about the possibility to leave a review at Trusted Shops.', 'trusted-shops', 'woocommerce-germanized' );
26
+
27
+ $this->heading = _x( 'Please rate your Order', 'trusted-shops', 'woocommerce-germanized' );
28
+ $this->subject = _x( 'Please rate your {site_title} order from {order_date}', 'trusted-shops', 'woocommerce-germanized' );
29
+
30
+ $this->template_html = 'emails/customer-trusted-shops.php';
31
+
32
+ // Triggers for this email
33
+ add_action( 'woocommerce_germanized_trusted_shops_review_notification', array( $this, 'trigger' ) );
34
+
35
+ // Call parent constuctor
36
+ parent::__construct();
37
+ }
38
+
39
+ /**
40
+ * trigger function.
41
+ *
42
+ * @access public
43
+ * @return void
44
+ */
45
+ function trigger( $order_id ) {
46
+
47
+ if ( $order_id ) {
48
+ $this->object = wc_get_order( $order_id );
49
+ $this->recipient = $this->object->billing_email;
50
+
51
+ $this->find['order-date'] = '{order_date}';
52
+ $this->find['order-number'] = '{order_number}';
53
+
54
+ $this->replace['order-date'] = date_i18n( wc_date_format(), strtotime( $this->object->order_date ) );
55
+ $this->replace['order-number'] = $this->object->get_order_number();
56
+ }
57
+
58
+ if ( ! $this->is_enabled() || ! $this->get_recipient() ) {
59
+ return;
60
+ }
61
+
62
+ $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
63
+ }
64
+
65
+ /**
66
+ * get_content_html function.
67
+ *
68
+ * @access public
69
+ * @return string
70
+ */
71
+ function get_content_html() {
72
+ ob_start();
73
+ wc_get_template( $this->template_html, array(
74
+ 'order' => $this->object,
75
+ 'email_heading' => $this->get_heading(),
76
+ 'sent_to_admin' => false,
77
+ 'plain_text' => false
78
+ ) );
79
+ return ob_get_clean();
80
+ }
81
+
82
+ }
83
+
84
+ endif;
85
+
86
+ return new WC_GZD_Email_Customer_Trusted_Shops();
includes/gateways/bacs/class-wc-gzd-gateway-bacs.php CHANGED
@@ -16,10 +16,23 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class WC_GZD_Gateway_BACS extends WC_Gateway_BACS {
18
 
 
 
19
  public function __construct() {
20
  parent::__construct();
21
  if ( $this->get_option( 'has_instructions' ) == 'no' )
22
  $this->instructions = '';
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
  public function init_form_fields() {
16
  */
17
  class WC_GZD_Gateway_BACS extends WC_Gateway_BACS {
18
 
19
+ public $parent;
20
+
21
  public function __construct() {
22
  parent::__construct();
23
  if ( $this->get_option( 'has_instructions' ) == 'no' )
24
  $this->instructions = '';
25
+ $this->parent = new WC_GZD_Payment_Gateway( $this );
26
+ }
27
+
28
+ public function __call( $method, $arguments ) {
29
+ if ( method_exists( $this->parent, $method ) )
30
+ return call_user_func_array( array( $this->parent, $method), $arguments );
31
+ }
32
+
33
+ public function __get( $key ) {
34
+ if ( isset( $this->parent->$key ) )
35
+ return $this->parent->$key;
36
  }
37
 
38
  public function init_form_fields() {
includes/gateways/cod/class-wc-gzd-gateway-cod.php CHANGED
@@ -16,49 +16,25 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  class WC_GZD_Gateway_COD extends WC_Gateway_COD {
18
 
 
 
19
  public function __construct() {
20
  parent::__construct();
21
- if ( $this->get_option( 'fee' ) ) {
22
- add_filter( 'woocommerce_gateway_title', array( $this, 'manipulate_title' ), 0, 2 );
23
- $this->description .= ' ' . sprintf( __( 'Plus %s payment charge.', 'woocommerce-germanized' ), wc_price( $this->get_option( 'fee' ) ) );
24
- }
25
  }
26
 
27
- /**
28
- * Manipulate title if is within svn_checkout
29
- *
30
- * @param string $title
31
- * @param payment gateway $id
32
- * @return string
33
- */
34
- public function manipulate_title( $title, $id ) {
35
- if ( $id == $this->id && $this->get_option( 'fee' ) && ( is_checkout() || ( defined( 'DOING_AJAX' ) && isset( $_POST[ 'action' ] ) && $_POST[ 'action' ] == 'woocommerce_update_order_review' ) ) )
36
- $title = __( 'Cash on Delivery', 'woocommerce' ) . ' <span class="small">(' . sprintf( __( 'plus %s payment charge', 'woocommerce-germanized' ), wc_price( $this->get_option( 'fee' ) ) ) . ')</span>';
37
- return $title;
38
  }
39
 
40
- public function init_form_fields() {
41
- parent::init_form_fields();
42
- $this->form_fields[ 'fee' ] = array(
43
- 'title' => __( 'Fee', 'woocommerce-germanized' ),
44
- 'type' => 'decimal',
45
- 'description' => __( 'This fee is being added if customer selects payment method within checkout.', 'woocommerce-germanized' ),
46
- 'default' => 0,
47
- 'desc_tip' => true,
48
- );
49
- $this->form_fields[ 'fee_is_taxable' ] = array(
50
- 'title' => __( 'Fee is taxable?', 'woocommerce-germanized' ),
51
- 'type' => 'checkbox',
52
- 'label' => __( 'Check if fee is taxable.', 'woocommerce-germanized' ),
53
- 'default' => 'no',
54
- );
55
  }
56
 
57
- public function add_fee() {
58
- if ( $this->get_option( 'fee' ) ) {
59
- $is_taxable = ( $this->get_option( 'fee_is_taxable', 'no' ) == 'no' ? false : true );
60
- WC()->cart->add_fee( __( 'Payment charge', 'woocommerce-germanized' ), $this->get_option( 'fee' ), $is_taxable );
61
- }
62
  }
63
 
64
  }
16
  */
17
  class WC_GZD_Gateway_COD extends WC_Gateway_COD {
18
 
19
+ public $parent;
20
+
21
  public function __construct() {
22
  parent::__construct();
23
+ $this->parent = new WC_GZD_Payment_Gateway( $this );
 
 
 
24
  }
25
 
26
+ public function __call( $method, $arguments ) {
27
+ if ( method_exists( $this->parent, $method ) )
28
+ return call_user_func_array( array( $this->parent, $method), $arguments );
 
 
 
 
 
 
 
 
29
  }
30
 
31
+ public function __get( $key ) {
32
+ if ( isset( $this->parent->$key ) )
33
+ return $this->parent->$key;
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
 
36
+ public function init_form_fields() {
37
+ parent::init_form_fields();
 
 
 
38
  }
39
 
40
  }
includes/gateways/paypal/class-wc-gzd-gateway-paypal.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit; // Exit if accessed directly
5
+ }
6
+
7
+ /**
8
+ * PayPal Standard Payment Gateway
9
+ *
10
+ * Provides a PayPal Standard Payment Gateway.
11
+ *
12
+ * @class WC_Paypal
13
+ * @extends WC_Gateway_Paypal
14
+ * @version 2.0.0
15
+ * @package WooCommerce/Classes/Payment
16
+ * @author WooThemes
17
+ */
18
+ class WC_GZD_Gateway_Paypal extends WC_Gateway_Paypal {
19
+
20
+ public $parent;
21
+
22
+ public function __construct() {
23
+ parent::__construct();
24
+ $this->parent = new WC_GZD_Payment_Gateway( $this );
25
+ }
26
+
27
+ public function __call( $method, $arguments ) {
28
+ if ( method_exists( $this->parent, $method ) )
29
+ return call_user_func_array( array( $this->parent, $method), $arguments );
30
+ }
31
+
32
+ public function __get( $key ) {
33
+ if ( isset( $this->parent->$key ) )
34
+ return $this->parent->$key;
35
+ }
36
+
37
+ }
includes/wc-gzd-cart-functions.php CHANGED
@@ -86,7 +86,7 @@ function wc_gzd_get_legal_text( $text = '' ) {
86
  $plain_text
87
  );
88
  }
89
- return $plain_text;
90
  }
91
 
92
  function wc_gzd_get_legal_text_error() {
@@ -94,4 +94,11 @@ function wc_gzd_get_legal_text_error() {
94
  if ( get_option( 'woocommerce_gzd_checkout_legal_text_error' ) )
95
  $plain_text = wc_gzd_get_legal_text( get_option( 'woocommerce_gzd_checkout_legal_text_error' ) );
96
  return $plain_text;
97
- }
 
 
 
 
 
 
 
86
  $plain_text
87
  );
88
  }
89
+ return $plain_text;
90
  }
91
 
92
  function wc_gzd_get_legal_text_error() {
94
  if ( get_option( 'woocommerce_gzd_checkout_legal_text_error' ) )
95
  $plain_text = wc_gzd_get_legal_text( get_option( 'woocommerce_gzd_checkout_legal_text_error' ) );
96
  return $plain_text;
97
+ }
98
+
99
+ function wc_gzd_get_legal_text_digital() {
100
+ $plain_text = __( 'I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun.', 'woocommerce-germanized' );
101
+ if ( get_option( 'woocommerce_gzd_checkout_legal_text_digital' ) )
102
+ $plain_text = wc_gzd_get_legal_text( get_option( 'woocommerce_gzd_checkout_legal_text_digital' ) );
103
+ return $plain_text;
104
+ }
includes/wc-gzd-template-functions.php CHANGED
@@ -191,7 +191,7 @@ if ( ! function_exists( 'woocommerce_gzd_digital_checkbox' ) ) {
191
  if ( $is_downloadable ) {
192
  echo '<p class="form-row data-download terms">
193
  <input type="checkbox" class="input-checkbox" name="download-revocate" id="data-download" />
194
- <label for="data-download" class="checkbox">' . __( 'I want immediate access to the digital content and I acknowledge that thereby I lose my right to cancel once the service has begun.', 'woocommerce-germanized' ) . '</label>
195
  </p>';
196
  }
197
  }
@@ -289,4 +289,16 @@ if ( ! function_exists( 'woocommerce_gzd_template_order_success_text' ) ) {
289
 
290
  }
291
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  ?>
191
  if ( $is_downloadable ) {
192
  echo '<p class="form-row data-download terms">
193
  <input type="checkbox" class="input-checkbox" name="download-revocate" id="data-download" />
194
+ <label for="data-download" class="checkbox">' . wc_gzd_get_legal_text_digital() . '</label>
195
  </p>';
196
  }
197
  }
289
 
290
  }
291
 
292
+ if ( ! function_exists( 'woocommerce_gzd_template_loop_add_to_cart' ) ) {
293
+
294
+ function woocommerce_gzd_template_loop_add_to_cart( $text, $product ) {
295
+ return sprintf(
296
+ '<a href="%s" class="button">%s</a>',
297
+ esc_attr( $product->get_permalink() ),
298
+ esc_html( get_option( 'woocommerce_gzd_display_listings_link_details_text' ) )
299
+ );
300
+ }
301
+
302
+ }
303
+
304
  ?>
includes/wc-gzd-template-hooks.php CHANGED
@@ -35,6 +35,8 @@ if ( get_option( 'woocommerce_gzd_display_listings_delivery_time' ) == 'yes' )
35
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_gzd_template_single_delivery_time_info', 7 );
36
  if ( get_option( 'woocommerce_gzd_display_listings_add_to_cart' ) == 'no' )
37
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
 
 
38
 
39
  /**
40
  * Cart
35
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_gzd_template_single_delivery_time_info', 7 );
36
  if ( get_option( 'woocommerce_gzd_display_listings_add_to_cart' ) == 'no' )
37
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
38
+ if ( get_option( 'woocommerce_gzd_display_listings_link_details' ) == 'yes' )
39
+ add_filter( 'woocommerce_loop_add_to_cart_link', 'woocommerce_gzd_template_loop_add_to_cart', 99, 2 );
40
 
41
  /**
42
  * Cart
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, woocommerce german market, woocommerce deutsch, woocommerce d
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=info@vendidero.de&item_name=Donation+for+WooCommerce+Germanized
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 1.0.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -14,15 +14,15 @@ Extends WooCommerce to become a legally compliant shop for german market. WooCom
14
 
15
  (see below for english version)
16
 
17
- WooCommerce Germanized erweitert WooCommerce um alle technisch relevanten Funktionen für den Betrieb eines rechtssicheren Online-Shops in Deutschland. Das Plugin wird von einem WordPress-erfahrenen, deutschen Team aktiv (weiter-)entwickelt - auf Updates von WooCommerce reagieren wir schnell und zuverlässig.
18
 
19
  Natürlich können wir mit unserem Plugin keine ausführliche Rechtsberatung ersetzen. Wir möchten lediglich die technischen Voraussetzungen für den Betrieb eines rechtssicheren Shops in Deutschland zur Verfügung stellen.
20
 
21
- Damit WooCommerce Germanized noch schicker aussieht haben wir ein komplett auf den deutschen Markt abgestimmtes WooCommerce Theme entwickelt: [VendiPro](http://vendidero.de/vendipro "WordPress E-Commerce & WooCommerce Theme für den deutschen Markt").
22
  Bei der Entwicklung von VendiPro haben wir besonders auf die Einhaltung deutscher Shop-Design-Prinzipien Wert gelegt. WooCommerce Germanized + VendiPro - zusammen die optimale Wahl für deinen deutschen WooCommerce Shop.
23
 
24
- = Deutsche Rechtsgrundlagen =
25
- WooCommerce Germanized unterstützt eine Vielzahl typisch deutscher Funktionalitäten: Lieferzeiten, Einheitspreise, Versandkosten- und Mehrwertsteuer-Hinweise, rechtlich relevante Hinweisseiten (z.B. AGB, Widerrufsbelehrung usw.) - auch in E-Mails, Kleinuternehmerregelung und noch vieles mehr.
26
  Zudem haben wir einige Anpassungen am Bezahlvorgang vorgenommen, damit dieser den rechtlichen Ansprüchen eines deutschen Online-Shops entspricht. Eine ausführliche Liste der Funktionalitäten sowie weitere Informationen findest du auf [vendidero.de](http://vendidero.de/woocommerce-germanized "WooCommerce Germanized - WooCommerce Plugin für den deutschen Markt")
27
 
28
  = Trusted Shops vorzertifiziert =
@@ -118,6 +118,13 @@ Bugs sowie Hilfe bei der Arbeit an WooCommerce Germanized werden gerne über uns
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
 
121
  = 1.0.1 =
122
  * Fix - Better theme compatibility
123
  * Fix - By default don't let themes override legally relevant templates (e.g. checkout/review-order.php, checkout/form-pay.php)
@@ -139,4 +146,4 @@ Bugs sowie Hilfe bei der Arbeit an WooCommerce Germanized werden gerne über uns
139
  == Upgrade Notice ==
140
 
141
  = 1.0.0 =
142
- no upgrade - just install :)
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=info@vendidero.de&item_name=Donation+for+WooCommerce+Germanized
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 1.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
14
 
15
  (see below for english version)
16
 
17
+ WooCommerce Germanized erweitert WooCommerce um alle technisch relevanten Funktionen für den Betrieb eines rechtssicheren Online-Shops mit WooCommerce in Deutschland. Zudem bieten wir mit dem Plugin eine Möglichkeit an, WooCommerce noch besser an den deutschen Mark anzupassen. Das Plugin wird von einem WordPress-erfahrenen, deutschen Team aktiv (weiter-)entwickelt - auf Updates von WooCommerce reagieren wir schnell und zuverlässig.
18
 
19
  Natürlich können wir mit unserem Plugin keine ausführliche Rechtsberatung ersetzen. Wir möchten lediglich die technischen Voraussetzungen für den Betrieb eines rechtssicheren Shops in Deutschland zur Verfügung stellen.
20
 
21
+ Damit WooCommerce Germanized noch schicker aussieht haben wir ein komplett auf den deutschen Markt abgestimmtes [WooCommerce Theme](http://vendidero.de/vendipro "WooCommerce Theme für den deutschen Markt"): VendiPro.
22
  Bei der Entwicklung von VendiPro haben wir besonders auf die Einhaltung deutscher Shop-Design-Prinzipien Wert gelegt. WooCommerce Germanized + VendiPro - zusammen die optimale Wahl für deinen deutschen WooCommerce Shop.
23
 
24
+ = WooCommerce rechtssicher für den deutschen Markt =
25
+ WooCommerce Germanized unterstützt eine Vielzahl typisch deutscher Funktionalitäten: Lieferzeiten, Einheitspreise, Versandkosten- und Mehrwertsteuer-Hinweise, rechtlich relevante Hinweisseiten (z.B. AGB, Widerrufsbelehrung usw.) - auch in E-Mails, Kleinuternehmerregelung, Gebühren für Zahlungsmethoden und noch vieles mehr.
26
  Zudem haben wir einige Anpassungen am Bezahlvorgang vorgenommen, damit dieser den rechtlichen Ansprüchen eines deutschen Online-Shops entspricht. Eine ausführliche Liste der Funktionalitäten sowie weitere Informationen findest du auf [vendidero.de](http://vendidero.de/woocommerce-germanized "WooCommerce Germanized - WooCommerce Plugin für den deutschen Markt")
27
 
28
  = Trusted Shops vorzertifiziert =
118
 
119
  == Changelog ==
120
 
121
+ = 1.0.2 =
122
+ * Feature - Added WP multisite support
123
+ * Feature - Added optional payment charge for PayPal, COD, Prepayment
124
+ * Feature - Added optional review reminder mail for Trusted Shops
125
+ * Fix - Filter templates with priority PHP_INT_MAX to disallow template override
126
+ * Fix - Fixed vat calculation for payment method charges
127
+
128
  = 1.0.1 =
129
  * Fix - Better theme compatibility
130
  * Fix - By default don't let themes override legally relevant templates (e.g. checkout/review-order.php, checkout/form-pay.php)
146
  == Upgrade Notice ==
147
 
148
  = 1.0.0 =
149
+ no upgrade - just install :)
templates/emails/customer-trusted-shops.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Customer Trusted Shops Review Notification
4
+ *
5
+ * @author Vendidero
6
+ * @version 1.0.0
7
+ */
8
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
9
+
10
+ $base = get_option( 'woocommerce_email_base_color' );
11
+ $base_text = wc_light_or_dark( $base, '#202020', '#ffffff' );
12
+ $text = get_option( 'woocommerce_email_text_color' );
13
+
14
+ ?>
15
+
16
+ <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
17
+
18
+ <p><?php echo sprintf( _x( 'Dear %s %s,', 'trusted-shops', 'woocommerce-germanized' ), $order->billing_first_name, $order->billing_last_name ); ?></p>
19
+ <p><?php echo sprintf( _x( 'You have recently shopped at %s. Thank you! We would be glad if you spent some time to write a review about your order. To do so please follow follow the link.', 'trusted-shops', 'woocommerce-germanized' ), get_bloginfo( 'name' ) ); ?></p>
20
+ <table cellspacing="0" cellpadding="0" style="width: 100%; border: none;" border="0">
21
+ <tr align="center">
22
+ <td align="center"><a class="email_btn" href="<?php echo esc_url( WC_Germanized()->trusted_shops->get_new_review_link() ); ?>" target="_blank" style="text-decoration: none; background-color: <?php echo esc_attr( $base ); ?>; color: <?php echo $base_text;?>; border-radius: 3px !important; padding: font-family:Arial; font-weight:bold; line-height:100%; padding: 0.5rem;"><?php echo _x( 'Rate Order now', 'trusted-shops', 'woocommerce-germanized' );?></a></td>
23
+ </tr>
24
+ </table>
25
+
26
+ <?php do_action( 'woocommerce_email_footer' ); ?>
woocommerce-germanized.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: http://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
- * Version: 1.0.1
7
  * Author: Vendidero
8
  * Author URI: http://vendidero.de
9
  * Requires at least: 3.8
@@ -26,7 +26,7 @@ final class WooCommerce_Germanized {
26
  *
27
  * @var string
28
  */
29
- public $version = '1.0.1';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class
@@ -120,7 +120,7 @@ final class WooCommerce_Germanized {
120
 
121
  // Hooks
122
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
123
- add_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );
124
  add_action( 'init', array( $this, 'init' ), 1 );
125
  add_action( 'init', array( 'WC_GZD_Shortcodes', 'init' ), 2 );
126
  add_action( 'widgets_init', array( $this, 'include_widgets' ), 25 );
@@ -135,17 +135,32 @@ final class WooCommerce_Germanized {
135
  deactivate_plugins( plugin_basename( __FILE__ ) );
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  /**
139
  * Init WooCommerceGermanized when WordPress initializes.
140
  */
141
  public function init() {
142
- if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
143
  // Before init action
144
  do_action( 'before_woocommerce_germanized_init' );
145
  // Include required files
146
  $this->includes();
147
- add_filter( 'woocommerce_locate_template', array( $this, 'filter_templates' ), 0, 3 );
148
- add_filter( 'woocommerce_product_class', array( $this, 'filter_product_classes' ), 0, 4 );
149
  add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_settings' ) );
150
  add_filter( 'woocommerce_enqueue_styles', array( $this, 'add_styles' ) );
151
  add_action( 'wp_enqueue_scripts', array( $this, 'add_scripts' ) );
@@ -245,19 +260,18 @@ final class WooCommerce_Germanized {
245
  include_once 'includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php';
246
  }
247
 
248
- if ( defined( 'DOING_AJAX' ) ) {
249
  $this->ajax_includes();
250
- }
251
 
252
- if ( ! is_admin() || defined( 'DOING_AJAX' ) ) {
253
  $this->frontend_includes();
254
- }
255
 
256
  // Post types
257
  include_once 'includes/class-wc-gzd-post-types.php';
258
 
259
  // Abstracts
260
  include_once 'includes/abstracts/abstract-wc-gzd-product.php';
 
261
 
262
  include_once 'includes/wc-gzd-cart-functions.php';
263
  include_once 'includes/class-wc-gzd-checkout.php';
@@ -281,9 +295,8 @@ final class WooCommerce_Germanized {
281
  * Function used to Init WooCommerceGermanized Template Functions - This makes them pluggable by plugins and themes.
282
  */
283
  public function include_template_functions() {
284
- if ( ! is_admin() || defined( 'DOING_AJAX' ) ) {
285
  include_once 'includes/wc-gzd-template-functions.php';
286
- }
287
  }
288
 
289
  /**
@@ -353,11 +366,17 @@ final class WooCommerce_Germanized {
353
  $gateways[ $key ] = 'WC_GZD_Gateway_BACS';
354
  else if ( $gateway == 'WC_Gateway_COD' )
355
  $gateways[ $key ] = 'WC_GZD_Gateway_COD';
 
 
356
  }
357
  }
358
  return $gateways;
359
  }
360
 
 
 
 
 
361
  /**
362
  * Load WooCommerce Germanized Product Classes instead of WooCommerce builtin Product Classes
363
  *
@@ -515,6 +534,7 @@ final class WooCommerce_Germanized {
515
  public function add_emails( $mails ) {
516
  $mails[] = include 'includes/emails/class-wc-gzd-email-customer-revocation.php';
517
  $mails[] = include 'includes/emails/class-wc-gzd-email-customer-ekomi.php';
 
518
  return $mails;
519
  }
520
 
@@ -544,12 +564,17 @@ final class WooCommerce_Germanized {
544
  }
545
 
546
  /**
547
- * Update fee for cart if cod has been selected as payment method
548
  */
549
  public function add_fee_cart() {
550
- if ( WC()->session->get('chosen_payment_method') == 'cod' ) {
551
- $cod = new WC_GZD_Gateway_COD();
552
- $cod->add_fee();
 
 
 
 
 
553
  }
554
  }
555
 
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: http://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
+ * Version: 1.0.2
7
  * Author: Vendidero
8
  * Author URI: http://vendidero.de
9
  * Requires at least: 3.8
26
  *
27
  * @var string
28
  */
29
+ public $version = '1.0.2';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class
120
 
121
  // Hooks
122
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
123
+ add_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 12 );
124
  add_action( 'init', array( $this, 'init' ), 1 );
125
  add_action( 'init', array( 'WC_GZD_Shortcodes', 'init' ), 2 );
126
  add_action( 'widgets_init', array( $this, 'include_widgets' ), 25 );
135
  deactivate_plugins( plugin_basename( __FILE__ ) );
136
  }
137
 
138
+ /**
139
+ * Checks if WooCommerce is activated
140
+ *
141
+ * @return boolean true if WooCommerce is activated
142
+ */
143
+ public function is_woocommerce_activated() {
144
+ if ( is_multisite() )
145
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
146
+ if ( is_multisite() && ! is_plugin_active_for_network( 'woocommerce/woocommerce.php' ) )
147
+ return false;
148
+ else if ( ! is_multisite() && ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
149
+ return false;
150
+ return true;
151
+ }
152
+
153
  /**
154
  * Init WooCommerceGermanized when WordPress initializes.
155
  */
156
  public function init() {
157
+ if ( $this->is_woocommerce_activated() ) {
158
  // Before init action
159
  do_action( 'before_woocommerce_germanized_init' );
160
  // Include required files
161
  $this->includes();
162
+ add_filter( 'woocommerce_locate_template', array( $this, 'filter_templates' ), 0, PHP_INT_MAX );
163
+ add_filter( 'woocommerce_product_class', array( $this, 'filter_product_classes' ), 0, PHP_INT_MAX );
164
  add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_settings' ) );
165
  add_filter( 'woocommerce_enqueue_styles', array( $this, 'add_styles' ) );
166
  add_action( 'wp_enqueue_scripts', array( $this, 'add_scripts' ) );
260
  include_once 'includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php';
261
  }
262
 
263
+ if ( defined( 'DOING_AJAX' ) )
264
  $this->ajax_includes();
 
265
 
266
+ if ( ! is_admin() || defined( 'DOING_AJAX' ) )
267
  $this->frontend_includes();
 
268
 
269
  // Post types
270
  include_once 'includes/class-wc-gzd-post-types.php';
271
 
272
  // Abstracts
273
  include_once 'includes/abstracts/abstract-wc-gzd-product.php';
274
+ include_once 'includes/abstracts/abstract-wc-gzd-payment-gateway.php';
275
 
276
  include_once 'includes/wc-gzd-cart-functions.php';
277
  include_once 'includes/class-wc-gzd-checkout.php';
295
  * Function used to Init WooCommerceGermanized Template Functions - This makes them pluggable by plugins and themes.
296
  */
297
  public function include_template_functions() {
298
+ if ( ! is_admin() || defined( 'DOING_AJAX' ) )
299
  include_once 'includes/wc-gzd-template-functions.php';
 
300
  }
301
 
302
  /**
366
  $gateways[ $key ] = 'WC_GZD_Gateway_BACS';
367
  else if ( $gateway == 'WC_Gateway_COD' )
368
  $gateways[ $key ] = 'WC_GZD_Gateway_COD';
369
+ else if ( $gateway == 'WC_Gateway_Paypal' )
370
+ $gateways[ $key ] = 'WC_GZD_Gateway_Paypal';
371
  }
372
  }
373
  return $gateways;
374
  }
375
 
376
+ public function get_payment_gateways_feeable() {
377
+ return apply_filters( 'wc_gzd_payment_gateways_feeable', array( 'bacs', 'paypal', 'cod' ) );
378
+ }
379
+
380
  /**
381
  * Load WooCommerce Germanized Product Classes instead of WooCommerce builtin Product Classes
382
  *
534
  public function add_emails( $mails ) {
535
  $mails[] = include 'includes/emails/class-wc-gzd-email-customer-revocation.php';
536
  $mails[] = include 'includes/emails/class-wc-gzd-email-customer-ekomi.php';
537
+ $mails[] = include 'includes/emails/class-wc-gzd-email-customer-trusted-shops.php';
538
  return $mails;
539
  }
540
 
564
  }
565
 
566
  /**
567
+ * Update fee for cart if feeable gateway has been selected as payment method
568
  */
569
  public function add_fee_cart() {
570
+ if ( in_array( WC()->session->get('chosen_payment_method'), $this->get_payment_gateways_feeable() ) ) {
571
+ $key = WC()->session->get('chosen_payment_method');
572
+ $gateways = WC()->payment_gateways()->get_available_payment_gateways();
573
+ if ( isset( $gateways[ $key ] ) ) {
574
+ $gateway = $gateways[ $key ];
575
+ if ( is_callable( array( $gateway, 'add_fee' ) ) )
576
+ $gateway->add_fee();
577
+ }
578
  }
579
  }
580