WooCommerce – Change “Proceed to PayPal” Text on Checkout button

add_filter( ‘gettext’, ‘custom_paypal_button_text’, 20, 3 ); function custom_paypal_button_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘Proceed to PayPal’ : $translated_text = __( ‘NEW BUTTON TEXT’, $domain ); break; } return $translated_text; } That’s all !! Views (505) [Total: 1    Average: 2/5]

WooCommerce – Allow only one product in Cart

This snippet can be used for many ways. For instance, your store only allows to buy one product at a time such as “Buy Now”. Open functions.php under your activated theme and put the code below: // Only one product in cart add_filter( ‘woocommerce_add_cart_item_data’, ‘only_one_product_in_cart’ ); function only_one_product_in_cart( $cart_item_data ) { global $woocommerce; $woocommerce->cart->empty_cart(); return[…]

WooCommerce – Redirect to a custom page after logging out

By default, WooCommerce will redirect customers to the My Account page after logging out. However, you may want them to go somewhere else – here’s how. Firstly, you’ll need to make sure that you are overriding the default WooCommerce template files in your theme. If you’ve already got a woocommerce folder in your theme’s directory,[…]

WooCommerce – Redirect to a custom page after logging in based on the user role

By default WooCommerce redirects the user to the My Account page after a successful login. You may change this and use a custom URL based on the user role, like the Dashboard for admins and My Account page for customers. To do this, add this code at the end of the file functions.php located in[…]

WooCommerce – Redirect to a custom page after logging in for All Users

Sometimes you may want to send users to a unique or custom URL after logging in through WooCommerce. No need for additional plugins or complicated code. Just add the following code to the custom functions area of your functions.php file. // Custom redirect for users after logging in add_filter(‘woocommerce_login_redirect’, ‘wcs_login_redirect’); function wcs_login_redirect( $redirect ) {[…]

WooCommerce – How to change “Add to cart” button text, Tips & Tricks

I’d like to share how to change “Add to cart” text of the WooCommerce. Change the add to cart text on product archives Add the following to your functions.php file under your activated theme. WooCommerce <2.1 WooCommerce 2.1+ Change the add to cart text on single product pages Add the following to your functions.php file[…]

Cheap Woocommerce Shipping Plugins for Australian Business

Woocommerce is one of the most popular ecommerce plugin for WordPress. As an online retailer in Australia, the most complicate part of online business is definitely the SHIPPING! ┬áBusiness easily lose money on the shipping if not setting it up properly. The cost of shipping in Australia varies depending on the destination. There are huge[…]