Tuesday, 18 July 2017

Your Business Website – Affordable Rental Site With No Upfront Fee

A PROFESSIONAL RENTAL WEBSITE WITH ONGOING SUPPORT AND MAINTENANCE

Have you got a small business but don’t have a website yet? If you don’t, then Your Business has to be the perfect solution for you! Our aim is to give all our customers the best quality websites at a low monthly fee of £100 which includes hosting, FREE maintenance, security and daily backups! (usually £80pm).

With all this in mind it might be good for you to know about all the other excellent reasons to choose Your Business...

 

6 reasons to Choose Your Business

 

Our Incentive for you…

If you refer a friend to Fertile Frog for Your Business then we will give you £80 to spend in our online shop which has a wide range of marketing material that would be great to use for any company. Take a look at our shop here: Online Shop

Why not take a look at Your Business website for yourself and do not hesitate to get in touch about this truly great opportunity to get yourself a professional maintained website, without a hefty upfront fee.

 

See the three designs to choose from here: FERTILEFROG.COM/YOURBUSINESSPACKAGES

The post Your Business Website – Affordable Rental Site With No Upfront Fee appeared first on Fertile Frog.



source http://www.fertilefrog.com/your-business-rental-website/

Thursday, 6 July 2017

Woocommerce Adding a Prefix to Product Prices

Problem:  Woocommerce  – Adding a Prefix ‘From: ‘ to Product Prices

Woocommerce Adding Prefix Product Prices

A customer recently challenged us to add a prefix ‘From: ‘ to product prices, but only for certain products.  Woocommerce Adding Prefix Product Prices.

As with most companies, any kind of ecommerce or woocommerce in catalogue mode, the products can have lots of different variables and different ways to display certain products.  At Fertile Frog we use Woocommerce as our primary platform for ecom, product and services, because it is a clean CMS for our users to maintain and because is has  a strong track record of developers and updates.  We however have to adapt the platform to perform differently depending on what usability and functionality our clients want.

Adding variations to the display of products can be a complicated task, when it only effects certain products and depending on where you want the variations to display.

First attempt to solve the addition of Woocommerce Price Prefixs

Firstly we used a PHP snippet from the following article that added prefix and suffix to the product prices:

PHP Snippet 3 - Woocommerce Adding Prefix Product Prices

WooCommerce: add prefix or suffix to product prices

 

Even-though this was an excellent snippet, it only displayed the prefix on the product pages.  I was concerned that the usability was a little disjointed.  The user would not see the ‘From ‘ prefix when browsing products on the category pages or any of the highlighted product sliders.  For some clients, the display of the prefix only on the product pages could be perfect, especially if it used for the suffix to display something like ‘ plus VAT’ but we needed the prefix on all the pages that certain products was displayed on.

Creating our own snippet to add a prefix to only certain products

Start by making sure you have created a functions.php file in the child theme.  Then create a function with a switch / case to run though each of the products and identify if the product ID.  This will then return the prefix before the price if the ID matches the case number.

add_filter( ‘woocommerce_get_price_html’, ‘custom_price_message’, 10, 2 );
function custom_price_message( $price, $product ) {
$product_id = $product->get_id();
     switch ($product_id) {
          case 119257:
          case 120298:
          case 119261:
          case 120300:
          case 120301:
          case 120300:
          case 119258:
         return ‘From: ‘ . $price ;
         break;
        default:
        return $price ;

}

}

Woocommerce prefix product price - Woocommerce Adding Prefix Product Prices

 

Site referenced: rejuvamed.co.uk

Company: fertilefrog.com

Author: fertilefrog.com/staff/kt-allen/

 

The post Woocommerce Adding a Prefix to Product Prices appeared first on Fertile Frog.



source http://www.fertilefrog.com/woocommerce-adding-prefix-product-prices/