From 1d785ec5f80d4be5ac43ee1efb73eea9912aca9b Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 1 Nov 2016 13:43:08 -0400 Subject: [PATCH] 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. --- woocommerce.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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
-- 2.17.1