Skip to content
WJunction - Webmaster Forum

Using WooCommerce Hook?

Status
Not open for further replies.

Connor

Established Member
136
2011
63
I'm making a thematic child theme and need to grab the url for the woocomerce cart. So I looked through their codex and found:
Code:
woocommerce_get_cart_url
However when I tried using this function in my theme's functions.php like so:
Code:
<a href="<?php echo woocommerce_get_cart_url(); ?>"><div></div></a>
I get that it is an undefined function. So how do I use this correctly to make it work?
 
Status
Not open for further replies.

About the author

C
Established Member · Joined
136
Messages
63
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom