• I was wondering if anyone in the community had any advice.

    We have a site that has multiple woocommerce product categories and it is possible to have products reside is multiple product categories. NavXT appears to randomly pick the breadcrumb trail to use for the product page.

    For example:
    domain.com/shop/product-category-aaa/product-111
    domain.com/shop/product-category-bbb/product-111
    product-111 will show breadcrumb trail: Shop > AAA > 111

    However, a different product will show this:
    domain.com/shop/product-category-aaa/product-222
    domain.com/shop/product-category-bbb/product-222
    product-222 will show breadcrumb trail: Shop > BBB > 222

    It appears to be random which breadcrumb trail is actually generated. It does not make a difference in the order things are defined and the plugins settings seem to have no affect.

    Ideally, we would like to control if “AAA” or “BBB” is shown, so all product pages show AAA in the above example.

    Any thoughts or ideas would be greatly appreciated.

    Thanks!
    Don

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    When a post (of any post type) is a member of multiple terms/term hierarchies within the same hierarchical taxonomy, Breadcrumb NavXT will use the first term with a parent, or the last term returned by get_the_terms(). There are ways of setting a preferred term by writing a hook into the bcn_pick_post_term filter. If you do not want to write code, there are add-on plugins that provide an interface for you to set a preferred term within a taxonomy (Breadcrumb NavXT Paths and Order Bender).

    Thread Starter freedomnet

    (@freedomnet)

    John,

    Thank you very much for your time to respond and for the direction. I will look into writing a filter hook for bcn_pick_post_term. I really appreciate your guidance.

    Regards,
    Don

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Setting/controlling WooCommerce product page breadcrumb trail’ is closed to new replies.