Tuesday, 10 June 2014

Woocommerce: Add an ‘add to cart’ button to related products and product listing Woocommerce


  • http://docs.woothemes.com/document/hooks/
I use the Mystile WooCommerce theme, where the "add to cart" buttons is removed by this code:
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
That is placed in this file wp-content/themes/mystile/includes/theme-woocommerce.php
I know I can just remove the piece of code, but is there a option, so the buttons still will appear, after the theme-woocommerce.php file is changed after next update?
I already tried to add this code to the my functions.php in my child theme.
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
Add an ‘add to cart’ button to related products and product listing Woocommerce

I took the mystile WooCommerce theme plus WooCommerce itself for a test drive recently. It is clean and neatly laid out and importantly it is responsive. It allows customers to have the convenience of shopping on their mobile devices without fuss.
I wanted to have the add to cart to show on my featured products page and also on my shop page (where all products are listed). Note that these hooks are already in their respective files.
I got the answer from a contributor on Stackoverflow by the name of Azmi Kamis.
The mystile theme by default does the following:
By default WooCommerce hooks it to woocommerce_after_shop_loop_item in
wp-content\plugins\woocommerce\woocommerce-hooks.php
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
My installed theme, Mystile, removed this hook in wp-content\themes\mystile\includes\theme-woocommerce.php
// Remove add to cart button on archives
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
Once I commented it out, the “Add to cart” button appeared.
He commented out by simply doing this:
// Remove add to cart button on archives
//remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);

Friday, 30 May 2014

WordPress Business Themes in 2014 – 60 of the Best, All Free

WordPress Business Themes in 2014 – 60 of the Best, All Free

SHARING IS CARING
WordPress now powers almost 20% of the web. And though it’s hard to say exactly how much of that is attributed to exactly what types of users, there’s no question that businesses have been turning to WordPress at a greater and greater rate.
As you might expect, that increased demand has led theme developers to increase choices. And these 60 free responsive business themes below attest to that.
featured

Exactly What is a “Business Theme”?

A WordPress business theme is a theme that generally doesn’t put a blog front and center.
It might certainly have a blog element to it, but you won’t see the “latest posts” taking up much (if any) of the screen space on the front page of a business theme — at least not above the fold (i.e. the top part of the site you can see without scrolling down).
Instead, a business theme typically has a large area at the top that can act as a billboard of sorts.
Many of these themes also use a slider in that top area. This bold space at the top lets a business get their main message across in a way that’s hard to miss.
The goal is to let the visitor know right away what the business is about.
And so without further ado, here are the 60 free themes – and as mentioned, all responsive.

1. Ward

ward3

2. Tonic

tonic

3. Figero

figero

4. Typal

typal

5. One Page

one-page

6. ButterBelly

butterbelly

7. Alexandria

alexandria

8. BizFlare

bizflare

9. BizSphere

bizsphere

10. Invert Lite

invert

11. Biznez Lite

biznez

12. BizStudio Lite

bizstudio

13. Advantage

advantage

14. thememagic

thememagic

15. Ice Fresh

ice-fresh

16. Osiris

osiris

17. Vantage

vantage

18. Corpo

corpo

19. Discover

discover

20. Klasik

klasik

21. Celestial Lite

celestial

22. Virtue

virtue

23. Asteria Lite

asteria

24. WP Barrister

wp-barrister

25. Unite

unite

26. Isis

isis

27. Simplicity Lite

simplicity

28. Simpleo

simpleo

29. Adamos

adam

30. MultiPurpose

multipurpose

31. Fine

fine

32. Intuition

intuition

33. zeeNoble

zeenoble

34. zeeFocus

zeefocus

35. zeeMinty

zeeminty

36. zeeTasty

zeetasty

37. Heavenly

heavenly

38. Tuned

tuned

39. Road Fighter

road-fighter

40. Parabola

parabola

41. Mantra

mantra

42. Responsive

responsive

43. Murmur

murmur

44. Gavern

gavern

45. Attitude

attitude

46. Bota

bota

47. Restauranteur

restauranteur

48. Themia Lite

themia

49. ToomMorel

toommorel

50. Gommero

gommero

51. BizWay

bizway

52. Business Lite

business-lite

53. Local Business

local-business

54. Andrina

andrina

55. Golden Eagle Lite

golden-eagle

56. Blackbird

blackbird

57. Colorway

colorway

58. Gridiculous

gridiculous

59. Response

response

60. iFeature

ifeature