Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #662731

    Hello everyone!

    I put in a sidebar with the woocommerce product-category-widget. But when klicking on the categories, there is an error that no products were found.

    I found out, that the products get displayed by adding: “?post_type=product” at the end of the URL.

    For example:
    works: http://www.xyz/shop/category/product/?post_type=product
    does not work: http://www.xyz/shop/category/product/

    Do you know any solution for that problem?
    In permalinks there is no way to add “/?post_type=product” AT THE END of the URL?!

    Thank you!

    #663248

    Does nobody knows a solution?

    Just to add “?post_type=product” at the end of each category-url?

    Thank you

    #663786

    Hello,

    Have you tried disabling all third-party plugins (except WC) to see if it gets fixed? also can you please check if the issue persists with the default WordPress theme activated?

    Regards,
    Josue

    #664155

    I tried to disabling other plugins, but nothing happened and I dont can change the theme, because the whole homepage has been designed to enfold theme.

    But it must be possible just to add ““?post_type=product”” at these permalinks?!

    Best regards
    Marvin

    #664245

    Hi,

    Does it get fixed if you change the Permalinks settings? (try setting it to default).

    Best regards,
    Josue

    #664536

    No, it doesnt get fixed by setting them to default. Is there maybe a .php-file in which I can add “?post_type=product” to the URL?

    #664773

    Hi,

    You could write a .htaccess rule to add that in each URL but i don’t think that’s a good solution to be honest:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]{3,4}
    RewriteCond %{REQUEST_URI} !/$
    RewriteRule ^(.*)$ $1?post_type=product
    

    Best regards,
    Josue

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.