Showing posts with label Woocommerce support. Show all posts
Showing posts with label Woocommerce support. Show all posts

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.

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.
  1. Go to: Dashboard > Settings > General and change the Site language.
Once this has been done, the shop will be displayed in your locale if the language file exists. Otherwise you need to create the language files (process explained below).

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:
Update WooCommerce 2.2+ Translation Packs
Update WooCommerce 2.2+ Translation Packs
If for some reason the translation packs install fails, you can force the download in WooCommerce > System Status > Tools > Force Translation Upgrade:
Force Translation Upgrade (WooCommerce > System Status > Tools)
Force Translation Upgrade (WooCommerce > System Status > Tools)
PO and MO files are copied in wp-content/languages/woocommerce/

Connect your eBay store to your WooCommerce shop with ease

Using this easy yet flexible plugin, you can link up your eBay store with your WooCommerce shop as well as benefit from all the added features, including verifying items and getting listing fees before actually listing them. WP-Lister for eBay plugin

WP-Lister for eBay Download

How to add videos to your products for customers to watch

This simple little "WooCommerce Video Product Tab"   plugin to  allows you to add a Video to the Product page with an additional tab that allows your customers to view the video you embedded..simple! Click below link to download this woocommerce addon


WooCommerce Video Product Tab  Download

How to remove the ‘reviews’ tab so that only ‘product description’ appears

Just add this little line of code to your custom.css file:
.woocommerce .woocommerce-tabs ul.tabs {display:none !important}

How to remove specific (or all) of the product tabs

Use this snippet in the functions.php if you want to remove any (or all) of the product tabs, such as the description and reviews:


       
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
}

Add a border around the product description

Modify the border size (1px, 2px, etc), style (solid, dotted, dashed) and color (#xxxxxx) to suit your needs in custom.css:
.woocommerce .woocommerce-tabs {border: 1px solid #e6e6e6}

Want to remove the orderby dropdown for products?

To remove the drop down and ordering options completely, add the following to your functions.php file:
1
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
However, if you want to edit the drop down and make it something else.  You can find the file at the following location:
/wp-content/plugins/woocommerce/template/loops/ordering.php

You can then copy that file to your theme folder, edit it, and override the default drop down.
/wp-content/themes/yourtheme/woocommerce/loops/ordering.php

How to add cart and my account link in header of woocommerce?

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 login / signup page. If the user is logged in the link will display ‘My account’ and take them directly to their account.

<?php if ( is_user_logged_in() ) { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account','woothemes'); ?>"><?php _e('My Account','woothemes'); ?></a>
<?php }
else { ?>
<a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('Login / Register','woothemes'); ?>"><?php _e('Login / Register','woothemes'); ?></a>
<?php } ?>

Woocommerce - Shipping option and category discount

WooCommerce - 2.3.8
Wordpress - 4.2.2
First Question
Shipping is
Free shipping if order over $50
Otherwise
Standard shipping - $5
Rural Shipping - $8
Free Shipping is easy
However the the two flat rate options 5 and 8
I cannot work out how to set this, this is all within the same country, the customer picks either rural or standard depending on where they are in the country.
But i can't seem to figure out how to get it to work, can i just clone the flat rate option (I can't even figure out how to do that)
The other questions is,
What if i want to give 20% of on the T-Shirts category is there a way to blanket do this, or do i have to manually edit each product
Thanks in advance

WooCommerce extremely slow after WordPress 4.2 update

After updating to WordPress 4.2, it is literally taking 10 mins to open up one WooCommerce product in the admin backend. Everything else seems to be fine -- opening products for edit or creating new products is the thing screwing up. Any idea what is up?


Open products works at the usual speed for me. Consider the debug procedure: Deactivate plugins and try the default theme to try to identify the element that's causing the problem.. 


The theme and other plugins is not the issue. WordPress 4.2 made some change that is effecting WooCommerce.
How many products and purchases do you have? Your WooCommerce database may be small enough to not feel the change. I have over 1,000 products and over 1,000,000 purchases.

WooCommerce - excelling eCommerce

 WooCommerce - excelling eCommerce    Download


WooCommerce - 2.3.8
Wordpress - 4.2.2
First Question
Shipping is
Free shipping if order over $50
Otherwise
Standard shipping - $5
Rural Shipping - $8
Free Shipping is easy
However the the two flat rate options 5 and 8
I cannot work out how to set this, this is all within the same country, the customer picks either rural or standard depending on where they are in the country.
But i can't seem to figure out how to get it to work, can i just clone the flat rate option (I can't even figure out how to do that)
The other questions is,
What if i want to give 20% of on the T-Shirts category is there a way to blanket do this, or do i have to manually edit each product
Thanks in advance
https://wordpress.org/plugins/woocommerce/

How to create and edit Custom Templates of woocommerce

WooCommerce (and almost all add-ons) provides a templating system. This means that every element displayed on a WooCommerce page can be overridden.
This system’s advantage is that you can modify the display of an element without editing WooCommerce core files (which is absolutely NOT recommended, if you do so, all your modifications will be lost at the next WooCommerce update, so just don’t do it). All templates are located in a woocommerce/templates folder. As explained in our documentation, all you have to do is to create a woocommerce folder within your theme’s directory, and in this folder duplicate the files you’d like to override. Please note that we strongly recommend using a child theme in order not to lose any modifications during your theme update.
Overriding default templates also allow you to customize all emails sent by WooCommerce ;-)

Example:

Let’s say you would like to add a new class to product tabs in order to apply custom CSS code to the tabs. You would need to duplicate the woocommerce/templates/single-product/tabs/tabs.php file in the following folder wp-content/themes/your-theme-folder/woocommerce/single-product/tabs/ and change the following code <ul class=« tabs”> to <ul class=« tabs my-custom-tabs-class « >.

Popular Articles