From: Laury GvR Date: Tue, 1 Nov 2016 17:43:08 +0000 (-0400) Subject: Fixing the woocommerce shop links to not use IDs X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1d785ec5f80d4be5ac43ee1efb73eea9912aca9b;p=WP-Themes%2Fcapstone.git Fixing the woocommerce shop links to not use IDs The links in the shop header were using IDs instead of the Woocommerce functions to get the urls for such pages as the cart, checkout, logout, etc. --- diff --git a/woocommerce.php b/woocommerce.php index 1c727dc..bf6ab41 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -29,10 +29,10 @@
@@ -45,14 +45,15 @@
log out'; + $myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' ); + if (is_user_logged_in()) { + echo ''; } elseif (!is_user_logged_in()) { - echo ''; + echo ''; } ?> - checkout + checkout