Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

10 PHP Snippets to Increase WooCommerce Sales

7,933 views

Published on

URL with snippets: https://businessbloomer.com/woocommerce-sales/

I spoke at WordCamp Prague 2019 about “10 PHP Snippets to Increase WooCommerce Sales” and managed to show some simple coding to increasing your WooCommerce sales.

At the URL previously mentioned you can find all the snippets I talked about - copy them, test them, use them and let me know if your WooCommerce revenue increased!

List of snippets I covered:

1) Pressure
2) Trust signals
3) Scarcity
4) Distraction-free checkout
5) “Try before you buy”
6) Thank you page upsell
7) Bulk discount
8) Product Add-ons
9) “Buy One Get One” (BOGO)
10) Free shipping threshold

URL with snippets: https://businessbloomer.com/woocommerce-sales/

Published in: Art & Photos
  • Be the first to comment

10 PHP Snippets to Increase WooCommerce Sales

  1. 1. 10 PHP Snippets to Increase WooCommerce Sales @RMELOGLI 1 BUSINESSBLOOMER.COM/ WOOCOMMERCE-SALES
  2. 2. “More Sales”? Let’s do some math :) 2 @RMELOGLI
  3. 3. REVENUE = n * AOV ↑ n = number of orders ↑ AOV = average order value 3 @RMELOGLI INCREASE WOOCOMMERCE SALES (1)
  4. 4. n = u * C.R. n = orders ↑ u = website unique users ↑ C.R. = conversion rate 4 @RMELOGLI INCREASE WOOCOMMERCE SALES (2)
  5. 5. AOV = ( $avg * qtyavg ) + a.o. avg = average ↑ $ = product price ↑ qty = product quantity ↑ a.o. = add-ons 5 @RMELOGLI INCREASE WOOCOMMERCE SALES (3)
  6. 6. REVENUE = u * C.R. * [ ( $avg * qtyavg ) + a.o. ] “Plain English”: grow revenue by increasing traffic, conversions, prices, quantity per order, add-ons 6 @RMELOGLI INCREASE WOOCOMMERCE SALES (4)
  7. 7. a) Increase your WooCommerce website’s “Conversion Rate” 7 @RMELOGLI
  8. 8. 1) Pressure 2) Trust signals 3) Scarcity 4) Distraction-free checkout 5) “Try before you buy” 8 @RMELOGLI INCREASE WOOCOMMERCE C.R.
  9. 9. b) Increase your WooCommerce website’s “Average Order Value” 9 @RMELOGLI
  10. 10. 6) Thank you page upsell 7) Bulk discount 8) Product Add-ons 9) “Buy One Get One” (BOGO) 10) Free shipping threshold 10 @RMELOGLI INCREASE WOOCOMMERCE AOV
  11. 11. Before we code... 11 @RMELOGLI
  12. 12. ● Test/Dev website ● WooCommerce-friendly theme ● Child theme (style.css, functions.php) ● WP Code Editor (Appearance > Editor) or, better, FTP access 12 @RMELOGLI BEFORE WE CODE...
  13. 13. Let’s code: “1. Pressure” 13 @RMELOGLI
  14. 14. 14 @RMELOGLI 1. PRESSURE: frontend
  15. 15. ● Task: “Order by 6pm and get it delivered tomorrow!” notice ● Pick a position / hook: google “WooCommerce Hooks Product” > Visual Guide ● Functions.php (child theme) 15 @RMELOGLI 1. PRESSURE: project specs
  16. 16. 16 @RMELOGLI 1. PRESSURE: visual hook guide
  17. 17. 17 @RMELOGLI 1. PRESSURE: functions.php ● “woocommerce_single_product_summary” ● priority = “6” ● echo some HTML
  18. 18. 18 @RMELOGLI 1. PRESSURE: frontend
  19. 19. Let’s code: “2. Trust Signals” 19 @RMELOGLI
  20. 20. 20 @RMELOGLI 2. TRUST: frontend
  21. 21. ● Task: “Secure payments” image ● Pick a position / hook: google “WooCommerce Hooks Checkout” > Visual Guide ● Functions.php (child theme) 21 @RMELOGLI 2. TRUST: project specs
  22. 22. 22 @RMELOGLI 2. TRUST: visual hook guide
  23. 23. 23 @RMELOGLI 2. TRUST: functions.php ● “woocommerce_review_order_after_submit” ● PayPal image URL ● echo some HTML, CSS
  24. 24. 24 @RMELOGLI 2. TRUST: frontend
  25. 25. Let’s code: “3. Scarcity” 25 @RMELOGLI
  26. 26. 26 @RMELOGLI 3. SCARCITY: frontend
  27. 27. ● Task: edit “Only 1 left in stock” ● Find relevant “filter” inside WooCommerce core functions ● Functions.php (child theme) 27 @RMELOGLI 3. SCARCITY: project specs
  28. 28. 28 @RMELOGLI 3. SCARCITY: WC core function
  29. 29. 29 @RMELOGLI 3. SCARCITY: functions.php ● “woocommerce_get_availability_text” ● return additional (.=) text
  30. 30. 30 @RMELOGLI 3. SCARCITY: frontend
  31. 31. Let’s code: “4. Distraction-free checkout” 31 @RMELOGLI
  32. 32. 32 @RMELOGLI 4. DISTR-FREE CHECKOUT: frontend
  33. 33. ● Task: hide header & footer ● Find relevant “add_action” inside theme files (Storefront visual hook guide) ● Functions.php (child theme) 33 @RMELOGLI 4. DISTR-FREE CHECKOUT: project specs
  34. 34. 34 @RMELOGLI 4. DISTR-FREE CHECKOUT: visual hook guide
  35. 35. 35 @RMELOGLI 4. DISTR-FREE CHECKOUT: coding
  36. 36. 36 @RMELOGLI 4. DISTR-FREE CHECKOUT: frontend
  37. 37. Let’s code: “5. Try before you buy” 37 @RMELOGLI
  38. 38. 38 @RMELOGLI 5. TRY BEFORE YOU BUY: frontend
  39. 39. ● Task: buy sample button ● Create $0.00 hidden product ● Google “WooCommerce Custom Add to Cart URLs” ● Functions.php (child theme) 39 @RMELOGLI 5. TRY BEFORE YOU BUY: project specs
  40. 40. 40 @RMELOGLI 5. TRY BEFORE YOU BUY: coding ● “woocommerce_single_product_summary” ● priority 35 (below add to cart) ● echo “/?add-to-cart=ID” ● a class = “button”
  41. 41. 41 @RMELOGLI 5. TRY BEFORE YOU BUY: frontend
  42. 42. Let’s code: “6. Thank you page upsell” 42 @RMELOGLI
  43. 43. 43 @RMELOGLI 6. TY PAGE UPSELL: frontend
  44. 44. ● Task: show products on sale @ thank you page ● PHP: echo “do_shortcode” with products on sale shortcode ● Functions.php (child theme) 44 @RMELOGLI 6. TY PAGE UPSELL: project specs
  45. 45. 45 @RMELOGLI 6. TY PAGE UPSELL: coding ● “woocommerce_thankyou” ● echo do_shortcode() ● [products on_sale=”true”]
  46. 46. 46 @RMELOGLI 6. TY PAGE UPSELL: frontend
  47. 47. Let’s code: “7. Bulk discount” 47 @RMELOGLI
  48. 48. 48 @RMELOGLI 7. BULK DISCOUNT: coding
  49. 49. Let’s code: “8. Product Add-ons” 49 @RMELOGLI
  50. 50. 50 @RMELOGLI 8. PRODUCT ADD-ONS: coding (1 of 3) ● “woocommerce_before_add_to_cart_quantity ” ● checkbox name = “gift-wrap”
  51. 51. 51 @RMELOGLI 8. PRODUCT ADD-ONS: coding (2 of 3) ● “woocommerce_add_cart_item_data” ● if checkbox checked and item added to cart store $_POST(‘gift-wrap’) as cart item data
  52. 52. 52 @RMELOGLI 8. PRODUCT ADD-ONS: coding (3 of 3) ● “woocommerce_cart_calculate_fees” ● add_fee()
  53. 53. Let’s code: “9. BOGO” 53 @RMELOGLI
  54. 54. 54 @RMELOGLI 9. BOGO: coding
  55. 55. Let’s code: “10. Free shipping threshold” 55 @RMELOGLI
  56. 56. 56 @RMELOGLI 10. FREE SHIPPING THRESHOLD: coding ● “woocommerce_before_cart” ● wc_print_notice()
  57. 57. ● Increase sales: ○ ↑ Conversion Rate ○ ↑ AOV ● Coding: ○ Keep it simple ○ Avoid plugins if possible ○ Copy them: businessbloomer.com/ woocommerce-sales 57 @RMELOGLI RECAP
  58. 58. THANK YOU! @RMELOGLI 58 BUSINESSBLOOMER.COM/ WOOCOMMERCE-SALES

×