WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Product category messed up (3 posts)

  1. gts85
    Member
    Posted 2 years ago #

    Hi I have a site installed with woocommerce 2.0.9. I use the default widget list categories to show the product category. Somehow the parent or current active category is not follow the specific product category.

    Example, I have Product A under category X and Y. But when I view the product A in single page, the active category in list category will highlighted category W??

    It seen like nothing related with the category W. As I checked the product of A and I can confirmed it is assigned to X and Y.

    And I tried with get_the_terms( $post->ID, 'product_cat' ) to echo the ID in the product detail page, everytime I refresh it will echo different ID. Not sure what wrong with it.

    Please help.

    http://wordpress.org/extend/plugins/woocommerce/

  2. gts85
    Member
    Posted 2 years ago #

    The live site is here.

    http://poney.com.my/product-category/kids/boys/

    When you navigate to Boys -> 2 Piece and click one of the product. Once you inside the single you will notice that the active menu in left sidebar is highlighted other not relavent category.

  3. gts85
    Member
    Posted 2 years ago #

    Hi The problem solved. I placed the recent view product in the single template that messed up. Now I reset_query and work fine now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic