• Hello,

    Issue Summary:
    The WooCommerce shop page is empty when Products are marked translatable.

    Test Procedure:

    • Activate Sublanguage (v2.8), WooCommerce (v5.9.0), and Storefront theme (v3.9.1)
    • Activate translation for post type Product
    • Create and publish a language
    • Create and publish a product visible on shop page
    • Set the shop page to a static page /shop
    • Visit the Permalinks admin page
    • Visit https://domain.tld/shop

    Expected result:
    The shop page (https://domain.tld/shop) shows the list of products in all active languages whether translation for post type Product is active or not.

    Current result:
    The shop page (https://domain.tld/shop) is empty in all active languages when translation for post type Product is active.

    Investigating in the source Code of WooCommerce (class WC_Query on line 383), I noticed $q->is_post_type_archive( 'product' ) returns a falsey value on the shop page, whereas it should return a truthy value.

    Please advise.

Viewing 1 replies (of 1 total)
  • Thread Starter Alexandre Froger

    (@frogerme)

    This was my mistake not seeing the post type language options (/wp-admin/edit.php?post_type=product&page=product_language_option) ; marking as resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce: shop page empty’ is closed to new replies.