A common WooCommerce
question lately has been how to hide the “Free” price label in the
product/category/shop pages. Thanks to WooCommerce’s judicious use of
filters/actions, this is very easy
Showing posts with label Woocommerce help. Show all posts
Showing posts with label Woocommerce help. Show all posts
Monday, 31 August 2015
Tuesday, 19 May 2015
how to change woocommerce language?
WooCommerce comes localization ready out of the box – all that’s
needed is your translation, if the plugin does not come bundled with one
for your language.
There are several methods to create a translation, most of which are outlined in the WordPress Codex. However, we find the easiest method is to use a plugin called Loco Translate. More advanced users can use PoEdit. Both methods are covered in this doc.
If for some reason the translation packs install fails, you can force the download in WooCommerce > System Status > Tools > Force Translation Upgrade:
PO and MO files are copied in wp-content/languages/woocommerce/
There are several methods to create a translation, most of which are outlined in the WordPress Codex. However, we find the easiest method is to use a plugin called Loco Translate. More advanced users can use PoEdit. Both methods are covered in this doc.
Before you begin
WooCommerce includes a language file (.po or .pot file) which contains all of the English text. You can find this language file inside the plugin folder in woocommerce/i18n/languages/.Set up WordPress
WordPress needs to be told which language it should run under.- Go to: Dashboard > Settings > General and change the Site language.
WooCommerce 2.2+ Language Packs
From version 2.2, WooCommerce includes a language pack downloader. PO and MO files will no longer be bundled with the plugin – they will be downloadable from your dashboard if you have the WPLANG constant set, or from a git repository if you wish to grab them manually. A notice will be displayed within your administration:If for some reason the translation packs install fails, you can force the download in WooCommerce > System Status > Tools > Force Translation Upgrade:
PO and MO files are copied in wp-content/languages/woocommerce/
How to re-order the product tabs?
Change it as you want it and add to the functions.php, but here is a
snippet to put the reviews first, description second and additional info
third:
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );function woo_reorder_tabs( $tabs ) {$tabs['reviews']['priority'] = 5; // Reviews first$tabs['description']['priority'] = 10; // Description second$tabs['additional_information']['priority'] = 15; // Additional information thirdreturn $tabs;}
Subscribe to:
Posts (Atom)
Popular Articles
-
WooCommerce comes localization ready out of the box – all that’s needed is your translation, if the plugin does not come bundled with one ...
-
A common WooCommerce question lately has been how to hide the “Free” price label in the product/category/shop pages. Thanks to WooCommer...
-
Open the settings page for Contact Form 7, and then open the contact form you want to add. Each contact form has its own tag (shortcode...
-
Displays a link to the user account section. If the user is not logged in the link will display ‘Login / Register’ and take the use to the...
-
Modify the border size (1px, 2px, etc), style (solid, dotted, dashed) and color (#xxxxxx) to suit your needs in custom.css: .woocommerce ...
-
This one is simple. If you’ve been building WordPress themes for a while, you’ll remember the days when you had to manually include code to...
-
If you would like to hook in your own functions, the process is quite simple. You first need to know a few pieces of information. For act...
-
On home page, we generally show a fixed number of recent posts with summary. Although, WordPress provides Sticky Posts functionality but n...
-
Most people commenting on blogs online have an avatar associated with them. If, however, they don’t and you don’t particularly like the Wor...
-
The featured image function, as the codex explains, allows the author to choose a representative image for Posts, Pages or Custom Post Ty...