Woocommerce

Change URL of Continue Shopping Button

When add to cart redirects to the cart page, a “Continue Shopping” button shows which takes the customer back to the product they just added to the cart. This can be improved upon by sending the customer to the /shop/ page. To achieve this add the following to THEME/functions.php /** * Redirect the Continue Shopping…

Read More

Add Product Short Description to Category Product Lists

To add the product short description from the product details to the list of products in each category add this to THEMES/functions.php // add short description to product category list add_action(‘woocommerce_after_shop_loop_item_title’,’woocommerce_template_single_excerpt’,20 );  

Read More

Change Currency Symbol

We needed to use NZ$ instead of $ for pricing which was achieved by adding the following to THEME/functions.php // change currency symbol add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case ‘NZD’: $currency_symbol = ‘NZ$’; break; } return $currency_symbol; }  

Read More

Change BACS Payment Details Layout in Thank You Message and Email

We needed to reorder the BACS (online banking) details on the “Thank You” page and the email sent to the customer so that they made more sense to New Zealand customers by combining the sort code and the account number. This was achieved by adding the following to THEME/functions.php // change BACS fields //original fields…

Read More

Change Variation Price Format in Category Listing and Single Product Display

Currently Woocommerce shows the price range of products that have variations as: Price from $300 to $1200 This can be changed to From $300 by adding the following to THEME/functions.php // change variations price display to From $**** add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2); function custom_variation_price( $price, $product ) { $price = ”; if ( !$product->min_variation_price ||…

Read More

Customize Currency Symbol

For example the standard currency symbol for New Zealand Dollars is $ but for clarity we’d like to use NZ$. This can be achieved by adding the following to the THEME/functions.php file: add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case ‘NZD’: $currency_symbol = ‘NZ$’; break; } return $currency_symbol;…

Read More