Beschreibung
Wasch-/Pflegesymbole in WooCommerce-Produkten anzeigen.
Nutzung und Dokumentation
You can choose wash/care symbols to display on product category level or in each individual product
Bisher gibt es folgende Auswahlmöglichkeiten:
-
Waschen:
- Maschinenwäsche, Schonwaschgang
- Maschinenwäsche, bügelfest / knitterarm
- Maschinenwäsche, Normalprogramm
- Nicht waschen
- Nur Handwäsche
- Maschinenwäsche, Schonwaschgang 30°C
- Maschinenwäsche, bügelfest / knitterarm, 30°C
- Maschinenwäsche, Normalprogramm, 30°C
- Maschinenwäsche, Schonwaschgang 40°C
- Maschinenwäsche, bügelfest / knitterarm, 40°C
- Maschinenwäsche, Normalprogramm, 40°C
- Maschinenwäsche, Schonwaschgang 50°C
- Maschinenwäsche, bügelfest / knitterarm 50°C
- Maschinenwäsche, Normalprogramm, 50°C
- Maschinenwäsche, Schonwaschgang 60°C
- Maschinenwäsche, bügelfest / knitterarm 60°C
- Maschinenwäsche, Normalprogramm, 60°C
- Maschinenwäsche, Schonwaschgang 70°C
- Maschinenwäsche, bügelfest / knitterarm 70°C
- Maschinenwäsche, Normalprogramm, 70°C
- Maschinenwäsche, Schonwaschgang 95°C
- Maschinenwäsche, bügelfest / knitterarm, 95°C
- Maschinenwäsche, Normalprogramm, 95°C
- Handwäsche 30°C
- Handwäsche 40°C
- Handwäsche 50°C
-
Trocknen:
- Trocknen im Wäschetrockner, normal
- Trocknen im Wäschetrockner, normal, niedrige Temperatur
- Trocknen im Wäschetrockner, normal, mittlere Temperatur
- Trocknen im Wäschetrockner, normal, hohe Temperatur
- Trocknen im Wäschetrockner, normal, ohne Wärme
- Trockner, bügelfrei
- Trockner, bügelfrei, geringe Hitze
- Trockner, bügelfrei, mittlere Hitze
- Trockner, bügelfrei, hohe Hitze
- Trocknen im Wäschetrockner, schonend
- Trocknen im Wäschetrockner, schonend, niedrige Temperatur
- Trocknen im Wäschetrockner, schonend, mittlere Temperatur
- Trocknen im Wäschetrockner, schonend, hohe Temperatur
- Trockner, bügelfrei, keine Hitze
- Leinentrocknung
- Tropfnass
- Liegend trocknen
- Im Schatten trocknen
- Nicht im Trockner trocknen
- Leinentrocknung im Schatten
- Im Schatten abtropfen lassen
- Liegend im Schatten trocknen
-
Bügeln:
- Bügeln erforderlich
- Bügeln, niedrige Temperatur
- Bügeln, mittlere Temperatur
- Bügeln, hohe Temperatur
- Nicht bügeln
- Bügeln, ohne Dampf
- Bügeln, ohne Dampf, niedrige Temperatur
- Bügeln, ohne Dampf, mittlere Temperatur
- Bügeln, ohne Dampf, hohe Temperatur
-
Chemische Reinigung:
- Chemisch reinigen
- Chemische Reinigung, beliebiges Lösungsmittel
- Chemische Reinigung, nur Lösungsmittel auf Mineralölbasis
- Chemische Reinigung, beliebiges Lösungsmittel außer Trichlorethylen
- Nicht chemisch reinigen
- Chemische Reinigung, Kurzreinigung
- Chemische Reinigung, geringe Feuchtigkeit
- Chemische Reinigung, geringe Hitze
- Chemische Reinigung, ohne Dampf
- Chemische Reinigung, beliebiges Lösungsmittel, Kurzreinigung
- Chemische Reinigung, beliebiges Lösungsmittel, geringe Feuchtigkeit
- Chemische Reinigung, beliebiges Lösungsmittel, geringe Hitze
- Chemische Reinigung, beliebiges Lösungsmittel, ohne Dampf
-
Bleichen:
- Beliebiges Bleichmittel verwenden
- Nur chlorfreie Bleichmittel verwenden
- Nicht bleichen
-
Chemische Reinigung
- Chemische Reinigung, nur Kohlenwasserstoff-Lösungsmittel (HCS)
- Schonende Reinigung mit Kohlenwasserstoff-Lösungsmitteln (HCS)
- Sehr schonende Reinigung mit Kohlenwasserstoff-Lösungsmitteln (HCS)
- Chemische Reinigung, nur Tetrachlorethylen (PCE)
- Gentle cleaning with tetrachloroethylene (PCE)
- Sehr schonende Reinigung mit Tetrachlorethylen (PCE)
-
Nassreinigung
- Nassreinigung
- Schonende Nassreinigung
- Sehr sanfte Nassreinigung
- Keine professionellen Nassreinigungsverfahren
Einstellungen
Go to Settings > Wash Care Symbols for WooCommerce.
- Position: Inside „Additional Information“(default) / below short description (added in 2.4) / In custom tab (added in 3.1).
- Layout: Horizontal/Vertical/Minimal (added in 2.2).
- Icon-Größe (hinzugefügt in 2.7).
Shortcode
If for some reason, you don’t want to use WooCommerce Product data tabs, you can display wash/care instructions wherever you want with the [wcsfwc] shortcode.
In a product page, just do:
[wcsfwc]
It will use current product and the layout you defined in Settings.
If you want to override layout, add a „layout“ argument (available values are „minimal“, „vertical“, „horizontal“):
[wcsfwc layout="minimal"]
If you want to display the wash/care instructions outside a product page, or for another product, use „product“ argument:
[wcsfwc product="123"]
In a .php file, use the do_shortcode function:
echo do_shortcode( '[wcsfwc]' );
Hooks
wcsfw_display(action): allows you to use your own display hookwcsfw-data(filter): allows you to modify symbols data and textswcsfw_below_short_desc_priority(filter): allows you to change hook priority if symbols doesn’t appear in the right place when using below short description settingwcsfw_custom_tab_priority(filter): allows you to change tabs order when using custom tab layout
How to Customize
Remove hooks
In order to remove hooks used by this plugin, you’ll need to get plugin instance and pass it in an array inside the callback argument.
For example:
$wcsfwc = WCSFWC\WashCareSymbolsForWooCommerce::get_instance();
remove_action( 'woocommerce_single_product_summary', [ $wcsfwc, 'below_short_desc_display' ], apply_filters( 'wcsfw_below_short_desc_priority', 21 ) );
remove_action( 'woocommerce_product_additional_information', [ $wcsfwc, 'additional_info_display' ] );
Display wherever you want
Here is what you’ll need to use a custom hook to display instructions wherever you want on your product page:
add_action('whatever_hook_you_want', function(){
$wcsfwc = WCSFWC\WashCareSymbolsForWooCommerce::get_instance();
$wcsfwc->additional_info_display();
});
Ressourcen
Installation
- Install this plugin either via the WordPress.org plugin directory, or by uploading the files to your server.
- Aktiviere das Plugin.
- That’s it. You’re ready to go! Please, refer to the Usage & Documentation section for examples and how-to information.
FAQ
-
Ist dieses Plugin kostenlos?
-
Ja.
-
Kann ich dieses Plugin für kommerzielle Zwecke verwenden?
-
Sure, go ahead! It is completely open source.
If you like my work, you can donate here: https://paypal.me/webnancy -
Is it compatible with Elementor Page Builder?
-
Ja.
-
Wie kann ich mich bedanken?
-
If you like my work, you can donate here: https://paypal.me/webnancy
Rezensionen
Mitwirkende und Entwickler
„Wash Care Symbols for WooCommerce“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Wash Care Symbols for WooCommerce“ wurde in 4 Sprachen übersetzt. Danke an die Übersetzer für ihre Mitwirkung.
Übersetze „Wash Care Symbols for WooCommerce“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
4.2.0
- Make plugin compatible with WooCommerce HPOS
4.1.0
- [FIX] Fix tooltip overlap in some cases
- [FIX] Fix tooltip being hidden in elementor in some cases
- [FIX] Make method static (https://wordpress.org/support/topic/wordpress-backend-throws-error-on-wash-care-plugin-category-level-enabling/)
4.0.0
- Major update, with rewrite of most of plugin’s code.
- We can now display wash/care symbols with the
[wcsfwc]shortcode! See the Shortcode section of the docs for more details.
3.1.0
- We can now display wash/care symbols in a custom tab! Just go in settings and set position to „In custom tab“
- A new hook has been added:
wcsfw_custom_tab_priority. It allows you to change tabs order.
3.0.0
- Wir können jetzt Wasch-/Pflegesymbole auf Kategorieebene auswählen! Diese Einstellung kann in jedem einzelnen Produkt überschrieben werden.
2.7.0
- Fügt eine Auswahloption für die Symbolgröße hinzu.
2.6.0
- We now have symbols in admin too! Gets rid of selectWoo on WCSFW fields and loads a modified copy of select2.js in order to add symbols in dropdowns and selected options, which is not possible with selectWoo since v1.07 (see https://github.com/woocommerce/selectWoo/issues/39)
- Move to Singleton pattern to let other developpers unhook actions or filters. If you want to unhook something, use it like this, for example:
remove_filter( 'hook_name', [ WashCareSymbolsForWooCommerce::get_instance(), 'method_name' ] );
2.5.0
- Improve LocoTranslate compatibility: fix wrong domain path in .pot filename
- Update .pot file with new strings
- Improve themes compatibility: fix too large symbols on some themes
- Trying to improve WPML compatibility: in progress…
2.4.0
- Adds a setting option to display symbols below short description
2.3.0
- Adds 10 new symbols for professional cleaning:
- Chemische Reinigung, nur Kohlenwasserstoff-Lösungsmittel (HCS)
- Schonende Reinigung mit Kohlenwasserstoff-Lösungsmitteln (HCS)
- Sehr schonende Reinigung mit Kohlenwasserstoff-Lösungsmitteln (HCS)
- Chemische Reinigung, nur Tetrachlorethylen (PCE)
- Gentle cleaning with tetrachloroethylene (PCE)
- Sehr schonende Reinigung mit Tetrachlorethylen (PCE)
- Nassreinigung
- Schonende Nassreinigung
- Sehr sanfte Nassreinigung
- Keine professionellen Nassreinigungsverfahren
2.2.2
- Fix translation
2.2.1
- You can now choose between Horizontal/Vertical/Minimal layouts
2.2.0
- Added „vertical“ mode


