International Online Database of Registered Trade Marks -Scam
We recently received an unsolicited letter from IDRTM (International Database of Registered Trademarks) asking for the princely sum of $1,638 to include one of our Trade Marks in their online database. They do indeed have a website on which you can search for trade marks etc but you have to ask yourself why would you…
Read MoreSimple Down for Maintenance Page using .htaccess
.htaccess To put a site into maintenance mode put either of the following in an .htaccess file in the site root. 1) Very simple #close the site down ############################################ RewriteEngine On ErrorDocument 403 /maintenance.php order deny,allow deny from all allow from xxx.xxx.xx.xxx #end of closed site rules################################## The “allow from” line permits access only from…
Read MoreContact Form 7 Thank You Page
To redirect to a thank you page add this to the “Additional Settings” field: on_sent_ok: “location = ‘http://example.com/’;” This can be useful to track form submissions via Google Analytics and to invite the visitor to stay on the site
Read MoreChange 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 MoreAdd 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 MoreChange 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 MoreChange 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 MoreChange 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 MoreCustomize 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 MoreDisplay Posts Shortcode – Change Date Format
Default date format in the Display Posts Shortcode plugin is hard coded in the plugin but it can be changed using a filter. By default the date format is (8/29/15) which is useless for countries other than the USA. The following function can be placed in the THEME/functions.php file to change the format so that…
Read More