Product Page not Found
-
Hi, I am using woocommerce for first time and am having an issue with product page. Here is what I’ve done so far to setup woocommerce for my custom wp theme:
1) installed latest(2.0.5) WC plugin and activated
2) in my functions.php file, I’ve added following lines://Remove Breadcrumbs
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 20, 0);//Get Rid of Stupid Tabs
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10);
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20, 2);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_product_description_panel’, 20 );//Remove Product Reviews
remove_action( ‘woocommerce_product_tabs’, ‘woocommerce_product_reviews_tab’, 30 );
remove_action( ‘woocommerce_product_tab_panels’, ‘woocommerce_product_reviews_panel’, 30 );//Remove Sidebar from WooCommerce
remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);add_theme_support( ‘woocommerce’ );
3) created a copy of my page.php and renamed it as woocommerce.php
4) replaced my if (have_posts()) : etc loop with woocommerce_content();Now I have everything setup for woocommerce. I have now added a couple of products in 2 categories, which are showing on shop page:
First category’s product:
https://awesomescreenshot.com/0f915b83abSecond category’s product:
https://awesomescreenshot.com/02215b8b10I can add the products to cart and view cart page etc. Now when I click on any product, it should go to product detail page. But when I click on any product, it takes me to 404 page:
https://awesomescreenshot.com/03a15b8kc8
I have tried after removing all parmalink settings and restored them to default, but still no luck:
https://awesomescreenshot.com/09415b8p88I’m trying to fix this since 3 days now, but can’t find any solution. I have even tried to install WC v2.0.4 but still same issue.
Please help.. ??
- The topic ‘Product Page not Found’ is closed to new replies.