WooCommerce Germanized - Version 1.0.3

Version Description

  • Fix - PHP 5.3 date diff backward compatibility
  • Fix - Trusted Shops review email days ignore fix
  • Feature - By default hide shipping costs notice for virtual products
  • Feature - Added product cart description for variations
Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

i18n/languages/woocommerce-germanized-de_DE.mo CHANGED
Binary file
i18n/languages/woocommerce-germanized-de_DE.po CHANGED
@@ -3,7 +3,7 @@ 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"
@@ -123,12 +123,13 @@ msgstr "Optionaler E-Mail Inhalt"
123
  msgid "Add content which will be replacing default page content within emails."
124
  msgstr "Füllen Sie dieses Feld aus um einen abweichenden E-Mail Anhangstext für diese Seite zu bestimmen."
125
 
126
- #: includes/admin/class-wc-gzd-admin.php:68
 
127
  #@ woocommerce-germanized
128
  msgid "Optional Mini Description"
129
  msgstr "Warenkorb Kurzbeschreibung"
130
 
131
- #: includes/admin/class-wc-gzd-admin.php:72
132
  #@ woocommerce-germanized
133
  msgid "This content will be shown as short product description within checkout and emails."
134
  msgstr "Dieser Inhalt wird während des Bezahlvorganges und in den E-Mails als Produkt Kurzbeschreibung angezeigt."
@@ -475,99 +476,100 @@ 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"
@@ -1112,29 +1114,29 @@ msgstr "Mwst. berechnen?"
1112
  msgid "Payment charge"
1113
  msgstr "Zahlungsgebühr"
1114
 
1115
- #: includes/wc-gzd-cart-functions.php:65
1116
  #, php-format
1117
  #@ woocommerce-germanized
1118
  msgid "incl. %s%% VAT"
1119
  msgstr "inkl. %s%% MwSt."
1120
 
1121
- #: includes/wc-gzd-template-functions.php:152
1122
  #@ woocommerce-germanized
1123
  msgid "Edit Order"
1124
  msgstr "Bestellung bearbeiten"
1125
 
1126
- #: includes/wc-gzd-template-functions.php:163
1127
  #@ woocommerce-germanized
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."
1136
 
1137
- #: includes/wc-gzd-template-functions.php:221
1138
  #@ woocommerce-germanized
1139
  msgid "To get immediate access to digital content you have to agree to the losal of your right to cancel."
1140
  msgstr "Um direkten Zugang zu den digitalen Inhalte zu erhalten, müssen Sie auf das Widerrufsrecht verzichten."
@@ -1462,7 +1464,7 @@ msgctxt "trusted-shops"
1462
  msgid "About Trusted Shops"
1463
  msgstr "Über Trusted Shops"
1464
 
1465
- #: includes/wc-gzd-template-functions.php:132
1466
  #@ woocommerce
1467
  msgid "Proceed to Checkout"
1468
  msgstr ""
@@ -1487,12 +1489,12 @@ 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."
@@ -1537,12 +1539,12 @@ msgstr "Wir haben festgestellt, dass dein Theme scheinbar noch nicht für WooCom
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"
@@ -1677,3 +1679,13 @@ msgstr "Bugs oder Wünsche melden"
1677
  msgid "1.0.2"
1678
  msgstr "1.0.2"
1679
 
 
 
 
 
 
 
 
 
 
 
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 16:57:36+0000\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
123
  msgid "Add content which will be replacing default page content within emails."
124
  msgstr "Füllen Sie dieses Feld aus um einen abweichenden E-Mail Anhangstext für diese Seite zu bestimmen."
125
 
126
+ #: includes/admin/class-wc-gzd-admin.php:72
127
+ #: includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php:76
128
  #@ woocommerce-germanized
129
  msgid "Optional Mini Description"
130
  msgstr "Warenkorb Kurzbeschreibung"
131
 
132
+ #: includes/admin/class-wc-gzd-admin.php:77
133
  #@ woocommerce-germanized
134
  msgid "This content will be shown as short product description within checkout and emails."
135
  msgstr "Dieser Inhalt wird während des Bezahlvorganges und in den E-Mails als Produkt Kurzbeschreibung angezeigt."
476
  msgstr "In Produktlisten"
477
 
478
  #: includes/admin/settings/class-wc-gzd-settings-germanized.php:320
479
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:353
480
  #@ woocommerce-germanized
481
  msgid "Shipping Costs notice"
482
  msgstr "Versandkosten-Hinweis"
483
 
484
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:336
485
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:369
486
  #@ woocommerce-germanized
487
  msgid "Unit Price"
488
  msgstr "Einheitspreis"
489
 
490
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:344
491
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:377
492
  #@ woocommerce-germanized
493
  msgid "Delivery Time Notice"
494
  msgstr "Lieferzeiten-Hinweis"
495
 
496
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:352
497
  #@ woocommerce-germanized
498
  msgid "Show on Product Detail Page"
499
  msgstr "Auf der Produktseite"
500
 
501
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:328
502
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:361
503
  #@ woocommerce-germanized
504
  msgid "Tax Info"
505
  msgstr "MwSt. Hinweis"
506
 
507
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:394
508
  #@ woocommerce-germanized
509
  msgid "Checkout & Cart"
510
  msgstr "Checkout & Warenkorb"
511
 
512
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:405
513
  #@ woocommerce-germanized
514
  msgid "Checkout Legal Display"
515
  msgstr "Checkbox oder Text"
516
 
517
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:406
518
  #@ woocommerce-germanized
519
  msgid "Use Text without Checkbox"
520
  msgstr "Rechtshinweis ohne Checkbox"
521
 
522
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:408
523
  #@ woocommerce-germanized
524
  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)."
525
  msgstr "Diese Option nutzt anstatt einer Checkbox einen ausformulierten Text direkt überhalb des Kauf abschließen Buttons (Zalando und Andere Shops verwenden diese Form)"
526
 
527
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:414
528
  #@ woocommerce-germanized
529
  msgid "Legal Text"
530
  msgstr "Rechtlicher Hinweistext"
531
 
532
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:415
533
  #@ woocommerce-germanized
534
  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."
535
  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."
536
 
537
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:417
538
  #@ woocommerce-germanized
539
  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}."
540
  msgstr "Mit Ihrer Bestellung erklären Sie sich mit unseren {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link} einverstanden."
541
 
542
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:424
543
  #@ woocommerce-germanized
544
  msgid "Legal Text Error"
545
  msgstr "Fehlermeldung der Checkbox"
546
 
547
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:425
548
  #@ woocommerce-germanized
549
  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."
550
  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}"
551
 
552
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:427
553
  #@ woocommerce-germanized
554
  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}."
555
  msgstr "Bitte akzeptieren Sie unsere {term_link}Allgemeinen Geschäftsbedingungen{/term_link} und {revocation_link}Widerrufsbestimmungen{/revocation_link}."
556
 
557
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:444
558
  #@ woocommerce-germanized
559
  msgid "Order Success Text"
560
  msgstr "Bestellung eingegangen"
561
 
562
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:445
563
  #@ woocommerce-germanized
564
  msgid "Choose a custom text to display on order success page."
565
  msgstr "Hier können Sie einen individuellen kurzen Text eingeben, der nach der Bestellung ausgegeben wird."
566
 
567
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:453
568
  #@ woocommerce-germanized
569
  msgid "Order Success Data"
570
  msgstr "Bestellbestätigungs-Daten"
571
 
572
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:454
573
  #@ woocommerce-germanized
574
  msgid "Hide product table and customer data on order success page"
575
  msgstr "Zusätzliche Produktdetails (Tabelle, Kundeninformationen) von der Bestellbestätigungs-Seite entfernen"
1114
  msgid "Payment charge"
1115
  msgstr "Zahlungsgebühr"
1116
 
1117
+ #: includes/wc-gzd-cart-functions.php:69
1118
  #, php-format
1119
  #@ woocommerce-germanized
1120
  msgid "incl. %s%% VAT"
1121
  msgstr "inkl. %s%% MwSt."
1122
 
1123
+ #: includes/wc-gzd-template-functions.php:162
1124
  #@ woocommerce-germanized
1125
  msgid "Edit Order"
1126
  msgstr "Bestellung bearbeiten"
1127
 
1128
+ #: includes/wc-gzd-template-functions.php:173
1129
  #@ woocommerce-germanized
1130
  msgid "Choose a Payment Gateway"
1131
  msgstr "Zahlungsmethode auswählen"
1132
 
1133
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:437
1134
+ #: includes/wc-gzd-cart-functions.php:104
1135
  #@ woocommerce-germanized
1136
  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."
1137
  msgstr "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt."
1138
 
1139
+ #: includes/wc-gzd-template-functions.php:231
1140
  #@ woocommerce-germanized
1141
  msgid "To get immediate access to digital content you have to agree to the losal of your right to cancel."
1142
  msgstr "Um direkten Zugang zu den digitalen Inhalte zu erhalten, müssen Sie auf das Widerrufsrecht verzichten."
1464
  msgid "About Trusted Shops"
1465
  msgstr "Über Trusted Shops"
1466
 
1467
+ #: includes/wc-gzd-template-functions.php:142
1468
  #@ woocommerce
1469
  msgid "Proceed to Checkout"
1470
  msgstr ""
1489
  msgid "%s of %s based on %s <a href=\"%s\" target=\"_blank\">ratings</a>."
1490
  msgstr "%s von %s basierend auf %s <a href=\"%s\" target=\"_blank\">Bewertungen</a>."
1491
 
1492
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:397
1493
  #@ woocommerce-germanized
1494
  msgid "Checkout Table Color"
1495
  msgstr "Hintergrundfarbe der Tabelle"
1496
 
1497
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:399
1498
  #@ woocommerce-germanized
1499
  msgid "Choose the color of your checkout product table. This table should be highlighted within your checkout page."
1500
  msgstr "Wähle die Farbe des Hintergrundes deiner Produkt-Tabelle im Checkout. Die Tabelle sollte sich farblich vom Rest des Inhalts abheben."
1539
  msgid "Check if fee is taxable."
1540
  msgstr "MwSt.-Berechnung für Gebühr aktivieren."
1541
 
1542
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:434
1543
  #@ woocommerce-germanized
1544
  msgid "Legal Digital Text"
1545
  msgstr "Hinweis Digital"
1546
 
1547
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:435
1548
  #@ woocommerce-germanized
1549
  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."
1550
  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"
1679
  msgid "1.0.2"
1680
  msgstr "1.0.2"
1681
 
1682
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:385
1683
+ #@ woocommerce-germanized
1684
+ msgid "Shipping Costs for Virtual"
1685
+ msgstr "Versandkosten für virtuelle Produkte"
1686
+
1687
+ #: includes/admin/settings/class-wc-gzd-settings-germanized.php:386
1688
+ #@ woocommerce-germanized
1689
+ msgid "Select this option if you want to display shipping costs notice for virtual products."
1690
+ msgstr "Setze diese Option, falls du für virtuelle Produkte auch einen Versandkosten-Hinweis anzeigen möchtest."
1691
+
includes/abstracts/abstract-wc-gzd-product.php CHANGED
@@ -52,8 +52,8 @@ class WC_GZD_Product extends WC_Product {
52
  }
53
 
54
  public function get_mini_desc() {
55
- if ( $this->mini_desc )
56
- return apply_filters( 'the_content', $this->mini_desc );
57
  return false;
58
  }
59
 
@@ -67,7 +67,7 @@ class WC_GZD_Product extends WC_Product {
67
  if ( $this->is_taxable() ) {
68
  $tax_display_mode = get_option( 'woocommerce_tax_display_shop' );
69
  $tax_rates = $_tax->get_rates( $this->get_tax_class() );
70
- if ( !empty( $tax_rates ) ) {
71
  $tax_rates = array_values( $tax_rates );
72
  return ( $tax_display_mode == 'incl' ? sprintf( __( 'incl. %s VAT', 'woocommerce-germanized' ), ( (int) $tax_rates[0][ 'rate' ] ) . '%' ) : sprintf( __( 'excl. %s VAT', 'woocommerce-germanized' ), ( (int) $tax_rates[0][ 'rate' ] ) . '%' ) );
73
  }
@@ -213,6 +213,8 @@ class WC_GZD_Product extends WC_Product {
213
  * @return string
214
  */
215
  public function get_shipping_costs_html() {
 
 
216
  $find = array(
217
  '{link}',
218
  '{/link}'
52
  }
53
 
54
  public function get_mini_desc() {
55
+ if ( $this->child->mini_desc )
56
+ return apply_filters( 'the_content', $this->child->mini_desc );
57
  return false;
58
  }
59
 
67
  if ( $this->is_taxable() ) {
68
  $tax_display_mode = get_option( 'woocommerce_tax_display_shop' );
69
  $tax_rates = $_tax->get_rates( $this->get_tax_class() );
70
+ if ( ! empty( $tax_rates ) ) {
71
  $tax_rates = array_values( $tax_rates );
72
  return ( $tax_display_mode == 'incl' ? sprintf( __( 'incl. %s VAT', 'woocommerce-germanized' ), ( (int) $tax_rates[0][ 'rate' ] ) . '%' ) : sprintf( __( 'excl. %s VAT', 'woocommerce-germanized' ), ( (int) $tax_rates[0][ 'rate' ] ) . '%' ) );
73
  }
213
  * @return string
214
  */
215
  public function get_shipping_costs_html() {
216
+ if ( $this->is_virtual() && get_option( 'woocommerce_gzd_display_shipping_costs_virtual' ) != 'yes' )
217
+ return false;
218
  $find = array(
219
  '{link}',
220
  '{/link}'
includes/admin/class-wc-gzd-admin-notices.php CHANGED
@@ -93,10 +93,9 @@ class WC_GZD_Admin_Notices {
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
  }
93
 
94
  public function add_review_notice() {
95
  if ( get_option( 'woocommerce_gzd_activation_date' ) ) {
96
+ $activation_date = ( get_option( 'woocommerce_gzd_activation_date' ) ? get_option( 'woocommerce_gzd_activation_date' ) : date( 'Y-m-d' ) );
97
+ $diff = WC_germanized()->get_date_diff( $activation_date, date( 'Y-m-d' ) );
98
+ if ( $diff[ 'd' ] >= 7 )
 
99
  include( 'views/html-notice-review.php' );
100
  }
101
  }
includes/admin/class-wc-gzd-admin.php CHANGED
@@ -65,7 +65,12 @@ class WC_GZD_Admin {
65
  }
66
 
67
  public function add_product_mini_desc() {
68
- add_meta_box( 'wc-gzd-product-mini-desc', __( 'Optional Mini Description', 'woocommerce-germanized' ), array( $this, 'init_product_mini_desc' ), 'product', 'advanced', 'high' );
 
 
 
 
 
69
  }
70
 
71
  public function init_product_mini_desc( $post ) {
65
  }
66
 
67
  public function add_product_mini_desc() {
68
+ global $post;
69
+ if ( isset( $post ) ) {
70
+ $product = wc_get_product( $post );
71
+ if ( ! $product->is_type( 'variable' ) )
72
+ add_meta_box( 'wc-gzd-product-mini-desc', __( 'Optional Mini Description', 'woocommerce-germanized' ), array( $this, 'init_product_mini_desc' ), 'product', 'advanced', 'high' );
73
+ }
74
  }
75
 
76
  public function init_product_mini_desc( $post ) {
includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data-variable.php CHANGED
@@ -71,6 +71,12 @@ class WC_Germanized_Meta_Box_Product_Data_Variable {
71
  ?>
72
  </td>
73
  </tr>
 
 
 
 
 
 
74
  <?php
75
  }
76
 
@@ -83,10 +89,11 @@ class WC_Germanized_Meta_Box_Product_Data_Variable {
83
  $variable_unit_price_regular = $_POST['variable_unit_price_regular'];
84
  $variable_unit_price_sale = $_POST['variable_unit_price_sale'];
85
  $variable_delivery_time = $_POST['variable_delivery_time'];
 
86
  for ( $i = 0; $i < sizeof( $variable_post_id ); $i++ ) {
87
  $variation_id = (int) $variable_post_id[$i];
88
  if ( isset( $variable_unit[$i] ) ) {
89
- update_post_meta( $variation_id, '_unit', esc_attr( $variable_unit[$i] ) );
90
  }
91
  if ( isset( $variable_unit_base[$i] ) ) {
92
  update_post_meta( $variation_id, '_unit_base', ( $variable_unit_base[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_base[$i] ) );
@@ -95,6 +102,9 @@ class WC_Germanized_Meta_Box_Product_Data_Variable {
95
  update_post_meta( $variation_id, '_unit_price_regular', ( $variable_unit_price_regular[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_price_regular[$i] ) );
96
  update_post_meta( $variation_id, '_unit_price', ( $variable_unit_price_regular[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_price_regular[$i] ) );
97
  }
 
 
 
98
  if ( isset( $variable_unit_price_sale[$i] ) ) {
99
  update_post_meta( $variation_id, '_unit_price_sale', '' );
100
  // Update Sale Price only if is on sale (Cron?!)
71
  ?>
72
  </td>
73
  </tr>
74
+ <tr>
75
+ <td colspan="2">
76
+ <label for="variable_product_mini_desc"><?php echo __( 'Optional Mini Description', 'woocommerce-germanized' ); ?>:</label>
77
+ <?php wp_editor( ( isset( $variation_data['_mini_desc'][0] ) ? $variation_data['_mini_desc'][0] : '' ), 'wc_gzd_product_mini_desc_' . $loop, array( 'textarea_name' => 'variable_product_mini_desc[' . $loop . ']', 'textarea_rows' => 5, 'media_buttons' => false, 'teeny' => true ) ); ?>
78
+ </td>
79
+ </tr>
80
  <?php
81
  }
82
 
89
  $variable_unit_price_regular = $_POST['variable_unit_price_regular'];
90
  $variable_unit_price_sale = $_POST['variable_unit_price_sale'];
91
  $variable_delivery_time = $_POST['variable_delivery_time'];
92
+ $variable_product_desc = $_POST['variable_product_mini_desc'];
93
  for ( $i = 0; $i < sizeof( $variable_post_id ); $i++ ) {
94
  $variation_id = (int) $variable_post_id[$i];
95
  if ( isset( $variable_unit[$i] ) ) {
96
+ update_post_meta( $variation_id, '_unit', sanitize_text_field( $variable_unit[$i] ) );
97
  }
98
  if ( isset( $variable_unit_base[$i] ) ) {
99
  update_post_meta( $variation_id, '_unit_base', ( $variable_unit_base[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_base[$i] ) );
102
  update_post_meta( $variation_id, '_unit_price_regular', ( $variable_unit_price_regular[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_price_regular[$i] ) );
103
  update_post_meta( $variation_id, '_unit_price', ( $variable_unit_price_regular[$i] === '' ) ? '' : wc_format_decimal( $variable_unit_price_regular[$i] ) );
104
  }
105
+ if ( isset( $variable_product_desc[$i] ) ) {
106
+ update_post_meta( $variation_id, '_mini_desc', esc_html( $variable_product_desc[$i] ) );
107
+ }
108
  if ( isset( $variable_unit_price_sale[$i] ) ) {
109
  update_post_meta( $variation_id, '_unit_price_sale', '' );
110
  // Update Sale Price only if is on sale (Cron?!)
includes/admin/meta-boxes/class-wc-gzd-meta-box-product-data.php CHANGED
@@ -30,7 +30,7 @@ class WC_Germanized_Meta_Box_Product_Data {
30
 
31
  public static function save($post_id) {
32
  if ( isset( $_POST['_unit'] ) ) {
33
- update_post_meta( $post_id, '_unit', esc_attr( $_POST['_unit'] ) );
34
  }
35
  if ( isset( $_POST['_unit_base'] ) ) {
36
  update_post_meta( $post_id, '_unit_base', ( $_POST['_unit_base'] === '' ) ? '' : wc_format_decimal( $_POST['_unit_base'] ) );
@@ -48,7 +48,7 @@ class WC_Germanized_Meta_Box_Product_Data {
48
  }
49
  }
50
  if ( isset( $_POST[ '_mini_desc' ] ) ) {
51
- update_post_meta( $post_id, '_mini_desc', $_POST[ '_mini_desc' ] );
52
  }
53
  }
54
 
30
 
31
  public static function save($post_id) {
32
  if ( isset( $_POST['_unit'] ) ) {
33
+ update_post_meta( $post_id, '_unit', sanitize_text_field( $_POST['_unit'] ) );
34
  }
35
  if ( isset( $_POST['_unit_base'] ) ) {
36
  update_post_meta( $post_id, '_unit_base', ( $_POST['_unit_base'] === '' ) ? '' : wc_format_decimal( $_POST['_unit_base'] ) );
48
  }
49
  }
50
  if ( isset( $_POST[ '_mini_desc' ] ) ) {
51
+ update_post_meta( $post_id, '_mini_desc', esc_html( $_POST[ '_mini_desc' ] ) );
52
  }
53
  }
54
 
includes/admin/settings/class-wc-gzd-settings-germanized.php CHANGED
@@ -324,6 +324,14 @@ class WC_GZD_Settings_Germanized extends WC_Settings_Page {
324
  'checkboxgroup' => 'start',
325
  ),
326
 
 
 
 
 
 
 
 
 
327
  array(
328
  'desc' => __( 'Unit Price', 'woocommerce-germanized' ),
329
  'id' => 'woocommerce_gzd_display_listings_unit_price',
@@ -373,6 +381,14 @@ class WC_GZD_Settings_Germanized extends WC_Settings_Page {
373
  'checkboxgroup' => 'end',
374
  ),
375
 
 
 
 
 
 
 
 
 
376
  array( 'type' => 'sectionend', 'id' => 'product_options' ),
377
 
378
  array( 'title' => __( 'Checkout & Cart', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'checkout_options' ),
324
  'checkboxgroup' => 'start',
325
  ),
326
 
327
+ array(
328
+ 'desc' => __( 'Tax Info', 'woocommerce-germanized' ),
329
+ 'id' => 'woocommerce_gzd_display_listings_tax_info',
330
+ 'type' => 'checkbox',
331
+ 'default' => 'yes',
332
+ 'checkboxgroup' => '',
333
+ ),
334
+
335
  array(
336
  'desc' => __( 'Unit Price', 'woocommerce-germanized' ),
337
  'id' => 'woocommerce_gzd_display_listings_unit_price',
381
  'checkboxgroup' => 'end',
382
  ),
383
 
384
+ array(
385
+ 'title' => __( 'Shipping Costs for Virtual', 'woocommerce-germanized' ),
386
+ 'desc' => __( 'Select this option if you want to display shipping costs notice for virtual products.', 'woocommerce-germanized' ),
387
+ 'id' => 'woocommerce_gzd_display_shipping_costs_virtual',
388
+ 'type' => 'checkbox',
389
+ 'default' => 'false',
390
+ ),
391
+
392
  array( 'type' => 'sectionend', 'id' => 'product_options' ),
393
 
394
  array( 'title' => __( 'Checkout & Cart', 'woocommerce-germanized' ), 'type' => 'title', 'id' => 'checkout_options' ),
includes/class-wc-gzd-ekomi.php CHANGED
@@ -185,10 +185,8 @@ class WC_GZD_Ekomi {
185
  while ( $order_query->have_posts() ) {
186
  $order_query->next_post();
187
  $order = wc_get_order( $order_query->post->ID );
188
- $completed_date = new DateTime( date( 'Y-m-d', strtotime( $order->completed_date ) ) );
189
- $current_date = new DateTime( date( 'Y-m-d' ) );
190
- $day_diff = $current_date->diff( $completed_date );
191
- if ( $day_diff->d >= (int) get_option( 'woocommerce_gzd_ekomi_day_diff' ) ) {
192
  $mails = WC()->mailer()->get_emails();
193
  if ( !empty( $mails ) ) {
194
  foreach ( $mails as $mail ) {
185
  while ( $order_query->have_posts() ) {
186
  $order_query->next_post();
187
  $order = wc_get_order( $order_query->post->ID );
188
+ $diff = WC_germanized()->get_date_diff( $order->completed_date, date( 'Y-m-d H:i:s' ) );
189
+ if ( $diff[ 'd' ] >= (int) get_option( 'woocommerce_gzd_ekomi_day_diff' ) ) {
 
 
190
  $mails = WC()->mailer()->get_emails();
191
  if ( !empty( $mails ) ) {
192
  foreach ( $mails as $mail ) {
includes/class-wc-gzd-install.php CHANGED
@@ -193,7 +193,7 @@ class WC_GZD_Install {
193
  'tax_rate_order' => 1,
194
  'tax_rate_class' => ''
195
  );
196
- $exists = $wpdb->get_results ( 'SELECT tax_rate_id FROM ' . $wpdb->prefix . 'woocommerce_tax_rates' . ' WHERE tax_rate = 19' );
197
  if ( empty( $exists ) )
198
  $wpdb->insert( $wpdb->prefix . 'woocommerce_tax_rates', $_tax_rate );
199
 
@@ -201,7 +201,7 @@ class WC_GZD_Install {
201
  $_tax_rate[ 'tax_rate_class' ] = 'reduced-rate';
202
  $_tax_rate[ 'tax_rate_name' ] = 'MwSt. 7%';
203
 
204
- $exists = $wpdb->get_results ( 'SELECT tax_rate_id FROM ' . $wpdb->prefix . 'woocommerce_tax_rates' . ' WHERE tax_rate = 7' );
205
  if ( empty( $exists ) )
206
  $wpdb->insert( $wpdb->prefix . 'woocommerce_tax_rates', $_tax_rate );
207
  }
193
  'tax_rate_order' => 1,
194
  'tax_rate_class' => ''
195
  );
196
+ $exists = $wpdb->get_results ( 'SELECT tax_rate_id FROM ' . $wpdb->prefix . 'woocommerce_tax_rates' . ' WHERE tax_rate LIKE "19%"' );
197
  if ( empty( $exists ) )
198
  $wpdb->insert( $wpdb->prefix . 'woocommerce_tax_rates', $_tax_rate );
199
 
201
  $_tax_rate[ 'tax_rate_class' ] = 'reduced-rate';
202
  $_tax_rate[ 'tax_rate_name' ] = 'MwSt. 7%';
203
 
204
+ $exists = $wpdb->get_results ( 'SELECT tax_rate_id FROM ' . $wpdb->prefix . 'woocommerce_tax_rates' . ' WHERE tax_rate LIKE "7%"' );
205
  if ( empty( $exists ) )
206
  $wpdb->insert( $wpdb->prefix . 'woocommerce_tax_rates', $_tax_rate );
207
  }
includes/class-wc-gzd-product-variation.php CHANGED
@@ -32,6 +32,7 @@ class WC_GZD_Product_Variation extends WC_Product_Variation {
32
  $this->variation_level_meta_data[ 'unit_base' ] = '';
33
  $this->variation_level_meta_data[ 'unit_price_regular' ] = 0;
34
  $this->variation_level_meta_data[ 'unit_price_sale' ] = 0;
 
35
  }
36
 
37
  /**
32
  $this->variation_level_meta_data[ 'unit_base' ] = '';
33
  $this->variation_level_meta_data[ 'unit_price_regular' ] = 0;
34
  $this->variation_level_meta_data[ 'unit_price_sale' ] = 0;
35
+ $this->variation_level_meta_data[ 'mini_desc' ] = '';
36
  }
37
 
38
  /**
includes/class-wc-gzd-trusted-shops.php CHANGED
@@ -66,7 +66,7 @@ class WC_GZD_Trusted_Shops {
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 );
@@ -317,10 +317,8 @@ class WC_GZD_Trusted_Shops {
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 ) {
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 );
317
  while ( $order_query->have_posts() ) {
318
  $order_query->next_post();
319
  $order = wc_get_order( $order_query->post->ID );
320
+ $diff = WC_germanized()->get_date_diff( $order->completed_date, date( 'Y-m-d H:i:s' ) );
321
+ if ( $diff[ 'd' ] >= (int) $this->review_reminder_days ) {
 
 
322
  $mails = WC()->mailer()->get_emails();
323
  if ( !empty( $mails ) ) {
324
  foreach ( $mails as $mail ) {
includes/wc-gzd-cart-functions.php CHANGED
@@ -20,8 +20,12 @@ function wc_gzd_get_tax_rate( $tax_rate_id ) {
20
 
21
  function wc_gzd_product_item_desc( $title, $item ) {
22
  $new = $title;
23
- if ( isset( $item[ 'product_id' ] ) && get_post_meta( $item[ 'product_id' ], '_mini_desc', true ) )
24
- $new .= '<div class="wc-gzd-item-desc item-desc">' . apply_filters( 'the_content', get_post_meta( $item[ 'product_id' ], '_mini_desc', true ) ) . '</div>';
 
 
 
 
25
  return $new;
26
  }
27
 
20
 
21
  function wc_gzd_product_item_desc( $title, $item ) {
22
  $new = $title;
23
+ if ( isset( $item[ 'product_id' ] ) ) {
24
+ $product_id = ( ! empty( $item[ 'variation_id' ] ) ? $item[ 'variation_id' ] : $item[ 'product_id' ] );
25
+ $product = wc_get_product( $product_id );
26
+ if ( $product->get_mini_desc() )
27
+ $new .= '<div class="wc-gzd-item-desc item-desc">' . $product->get_mini_desc() . '</div>';
28
+ }
29
  return $new;
30
  }
31
 
includes/wc-gzd-template-functions.php CHANGED
@@ -53,6 +53,16 @@ if ( ! function_exists( 'woocommerce_gzd_template_single_delivery_time_info' ) )
53
  }
54
  }
55
 
 
 
 
 
 
 
 
 
 
 
56
  if ( ! function_exists( 'woocommerce_gzd_template_single_small_business_info' ) ) {
57
 
58
  /**
53
  }
54
  }
55
 
56
+ if ( ! function_exists( 'woocommerce_gzd_template_single_tax_info' ) ) {
57
+
58
+ /**
59
+ * Single Product delivery time info
60
+ */
61
+ function woocommerce_gzd_template_single_tax_info() {
62
+ wc_get_template( 'single-product/tax-info.php' );
63
+ }
64
+ }
65
+
66
  if ( ! function_exists( 'woocommerce_gzd_template_single_small_business_info' ) ) {
67
 
68
  /**
includes/wc-gzd-template-hooks.php CHANGED
@@ -33,6 +33,8 @@ if ( get_option( 'woocommerce_gzd_display_listings_shipping_costs' ) == 'yes' )
33
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_gzd_template_single_shipping_costs_info', 8 );
34
  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
  if ( get_option( 'woocommerce_gzd_display_listings_link_details' ) == 'yes' )
33
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_gzd_template_single_shipping_costs_info', 8 );
34
  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_tax_info' ) == 'yes' )
37
+ add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_gzd_template_single_tax_info', 6 );
38
  if ( get_option( 'woocommerce_gzd_display_listings_add_to_cart' ) == 'no' )
39
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
40
  if ( get_option( 'woocommerce_gzd_display_listings_link_details' ) == 'yes' )
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vendidero
3
  Tags: woocommerce, woocommerce german market, woocommerce deutsch, woocommerce de, woocommerce german, shop, commerce, e-commerce, woocommerce deutsche rechtsgrundlagen
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
 
@@ -118,6 +118,12 @@ Bugs sowie Hilfe bei der Arbeit an WooCommerce Germanized werden gerne über uns
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
121
  = 1.0.2 =
122
  * Feature - Added WP multisite support
123
  * Feature - Added optional payment charge for PayPal, COD, Prepayment
3
  Tags: woocommerce, woocommerce german market, woocommerce deutsch, woocommerce de, woocommerce german, shop, commerce, e-commerce, woocommerce deutsche rechtsgrundlagen
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.1
7
+ Stable tag: 1.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.0.3 =
122
+ * Fix - PHP 5.3 date diff backward compatibility
123
+ * Fix - Trusted Shops review email days ignore fix
124
+ * Feature - By default hide shipping costs notice for virtual products
125
+ * Feature - Added product cart description for variations
126
+
127
  = 1.0.2 =
128
  * Feature - Added WP multisite support
129
  * Feature - Added optional payment charge for PayPal, COD, Prepayment
templates/single-product/legal-info.php CHANGED
@@ -16,7 +16,7 @@ global $product;
16
  <?php if ( $product->get_tax_info() && get_option( 'woocommerce_gzd_display_product_detail_tax_info' ) == 'yes' ) : ?>
17
  <span class="wc-gzd-additional-info tax-info"><?php echo $product->get_tax_info(); ?></span>
18
  <?php endif; ?>
19
- <?php if ( get_option( 'woocommerce_gzd_display_product_detail_shipping_costs' ) == 'yes' ) : ?>
20
  <span class="wc-gzd-additional-info shipping-costs-info"><?php echo $product->get_shipping_costs_html();?></span>
21
  <?php endif; ?>
22
  </p>
16
  <?php if ( $product->get_tax_info() && get_option( 'woocommerce_gzd_display_product_detail_tax_info' ) == 'yes' ) : ?>
17
  <span class="wc-gzd-additional-info tax-info"><?php echo $product->get_tax_info(); ?></span>
18
  <?php endif; ?>
19
+ <?php if ( $product->get_shipping_costs_html() && get_option( 'woocommerce_gzd_display_product_detail_shipping_costs' ) == 'yes' ) : ?>
20
  <span class="wc-gzd-additional-info shipping-costs-info"><?php echo $product->get_shipping_costs_html();?></span>
21
  <?php endif; ?>
22
  </p>
templates/single-product/shipping-costs-info.php CHANGED
@@ -12,4 +12,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
12
  global $product;
13
  ?>
14
 
15
- <p class="wc-gzd-additional-info shipping-costs-info"><?php echo $product->get_shipping_costs_html();?></p>
 
 
12
  global $product;
13
  ?>
14
 
15
+ <?php if ( $product->get_shipping_costs_html() ) : ?>
16
+ <p class="wc-gzd-additional-info shipping-costs-info"><?php echo $product->get_shipping_costs_html();?></p>
17
+ <?php endif; ?>
woocommerce-germanized.php CHANGED
@@ -3,11 +3,11 @@
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
10
- * Tested up to: 4.0
11
  *
12
  * Text Domain: woocommerce-germanized
13
  * Domain Path: /i18n/languages/
@@ -26,7 +26,7 @@ final class WooCommerce_Germanized {
26
  *
27
  * @var string
28
  */
29
- public $version = '1.0.2';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class
@@ -143,9 +143,9 @@ final class WooCommerce_Germanized {
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
  }
@@ -170,13 +170,23 @@ final class WooCommerce_Germanized {
170
  add_filter( 'woocommerce_email_classes', array( $this, 'add_emails' ) );
171
  add_filter( 'woocommerce_locate_core_template', array( $this, 'email_templates' ), 0, 3 );
172
  add_action( 'woocommerce_email_order_meta', array( $this, 'email_small_business_notice' ), 1 );
173
- // Payment Gateway BACS
174
  add_filter( 'woocommerce_payment_gateways', array( $this, 'payment_gateway_filter' ) );
175
  // Add better tax display to order totals
176
  add_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 0, 2 );
177
  add_action( 'woocommerce_cart_calculate_fees', array( $this, 'add_fee_cart' ), 0 );
178
- // Send order notice directly after new order is being added
179
- add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'update_initial_order_status' ), 0, 2 );
 
 
 
 
 
 
 
 
 
 
180
 
181
  $this->units = new WC_GZD_Units();
182
  $this->trusted_shops = new WC_GZD_Trusted_Shops();
@@ -525,6 +535,21 @@ final class WooCommerce_Germanized {
525
  woocommerce_get_template( 'global/small-business-info.php' );
526
  }
527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  /**
529
  * Add Custom Email templates
530
  *
@@ -553,14 +578,20 @@ final class WooCommerce_Germanized {
553
  }
554
 
555
  /**
556
- * Set initial order status to processing - even if paypal is being used (email affirmation has to be sent directly after order submit)
557
  *
558
- * @param int $order_id the order id
559
- * @param array $post_data meta data
560
- */
561
- public function update_initial_order_status( $order_id, $post_data ) {
562
- $order = wc_get_order( $order_id );
563
- $order->update_status( 'processing' );
 
 
 
 
 
 
564
  }
565
 
566
  /**
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.3
7
  * Author: Vendidero
8
  * Author URI: http://vendidero.de
9
  * Requires at least: 3.8
10
+ * Tested up to: 4.1
11
  *
12
  * Text Domain: woocommerce-germanized
13
  * Domain Path: /i18n/languages/
26
  *
27
  * @var string
28
  */
29
+ public $version = '1.0.3';
30
 
31
  /**
32
  * Single instance of WooCommerce Germanized Main Class
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' ) || in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) )
147
  return false;
148
+ if ( ! is_multisite() && ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )
149
  return false;
150
  return true;
151
  }
170
  add_filter( 'woocommerce_email_classes', array( $this, 'add_emails' ) );
171
  add_filter( 'woocommerce_locate_core_template', array( $this, 'email_templates' ), 0, 3 );
172
  add_action( 'woocommerce_email_order_meta', array( $this, 'email_small_business_notice' ), 1 );
173
+ // Payment Gateway Filter
174
  add_filter( 'woocommerce_payment_gateways', array( $this, 'payment_gateway_filter' ) );
175
  // Add better tax display to order totals
176
  add_filter( 'woocommerce_get_order_item_totals', array( $this, 'order_item_totals' ), 0, 2 );
177
  add_action( 'woocommerce_cart_calculate_fees', array( $this, 'add_fee_cart' ), 0 );
178
+
179
+ // Send order notice directly after new order is being added - use these filters because order status has to be updated already
180
+ add_filter( 'woocommerce_payment_successful_result', array( $this, 'send_order_confirmation_mails' ), 0, 2 );
181
+ add_filter( 'woocommerce_checkout_no_payment_needed_redirect', array( $this, 'send_order_confirmation_mails' ), 0, 2 );
182
+
183
+ // Remove processing + on-hold default order confirmation mails
184
+ $mailer = WC()->mailer();
185
+ $mails = $mailer->get_emails();
186
+ remove_action( 'woocommerce_order_status_pending_to_processing_notification', array( $mails[ 'WC_Email_Customer_Processing_Order' ], 'trigger' ) );
187
+ remove_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $mails[ 'WC_Email_Customer_Processing_Order' ], 'trigger' ) );
188
+ remove_action( 'woocommerce_order_status_pending_to_processing_notification', array( $mails[ 'WC_Email_New_Order' ], 'trigger' ) );
189
+ remove_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $mails[ 'WC_Email_New_Order' ], 'trigger' ) );
190
 
191
  $this->units = new WC_GZD_Units();
192
  $this->trusted_shops = new WC_GZD_Trusted_Shops();
535
  woocommerce_get_template( 'global/small-business-info.php' );
536
  }
537
 
538
+ /**
539
+ * PHP 5.3 backwards compatibility for getting date diff
540
+ *
541
+ * @param string $from date from
542
+ * @param string $to date to
543
+ * @return array array containing year, month, date diff
544
+ */
545
+ public function get_date_diff( $from, $to ) {
546
+ $diff = abs( strtotime( $to ) - strtotime( $from ) );
547
+ $years = floor( $diff / (365*60*60*24) );
548
+ $months = floor( ( $diff - $years * 365*60*60*24 ) / ( 30*60*60*24 ) );
549
+ $days = floor( ( $diff - $years * 365*60*60*24 - $months*30*60*60*24 ) / ( 60*60*24 ) );
550
+ return array( 'y' => $years, 'm' => $months, 'd' => $days );
551
+ }
552
+
553
  /**
554
  * Add Custom Email templates
555
  *
578
  }
579
 
580
  /**
581
+ * Send order confirmation mail directly after order is being sent
582
  *
583
+ * @param mixed $return
584
+ * @param mixed $order
585
+ */
586
+ public function send_order_confirmation_mails( $return, $order ) {
587
+ if ( ! is_object( $order ) )
588
+ $order = wc_get_order( $order );
589
+ // Send order processing mail
590
+ $mailer = WC()->mailer();
591
+ $mails = $mailer->get_emails();
592
+ $mails[ 'WC_Email_Customer_Processing_Order' ]->trigger( $order->id );
593
+ $mails[ 'WC_Email_New_Order' ]->trigger( $order->id );
594
+ return $return;
595
  }
596
 
597
  /**