Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #103584

    MatthieuH
    Participant

    Hi there,

    I’m currently trying to solve a url problem I found in woocommerce pages.
    Let me try to exemplify:

    Currently my base store page (I list categories there) is:
    http://my-site.com/produtos/loja/

    After clicking in one of the categories it then becomes:
    http://my-site.com/loja/category/

    And after choosing a product:
    http://my-site.com/produtos/loja/category/product/

    So the problem lies in the category page.
    Here is my permalink page:
    SS permalinks

    The answer seems easy, i would only need to add “produtos” in the base product category url. And indeed it works, I can enter
    the category page, but then I break the product page:
    http://my-site.com/produtos/loja/category/product/

    Why does it happen? The url in the product page stays the same, why wont it display?

    Thanks so much for the help.

    #103624

    Mrinal
    Member

    Hi Alex,

    You’ve created the main Shop page inside a parent page, so it’s getting it’s parent page url slug: http://my-site.com/produtos/loja/ (Second Level Page) in Main Shop Page or in single item http://my-site.com/produtos/loja/category/product/ as those page not generated by WooCommerce.

    The category page is auto generated by WooCommerce so they won’t remember the Parent page of Shop page: http://my-site.com/loja/category/ (It directly remembers the Shop page as first level page).

    #103730

    MatthieuH
    Participant

    Hey thanks for the answer.

    I removed the parent page, now it stands like this:
    http://my-site.com/produtos/
    http://my-site.com/produtos/category/
    http://my-site.com/produtos/category/product/

    And again, same problem… product page 404.

    SS permalinks 2

    I think i’ve come to a known problem… Anyone that tries do put the category in the url can’t open the page?
    Or I’m doing something wrong again?

    Thank you guys

    #103736

    Mrinal
    Member

    Hi Alex,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    BTW, You can post a public thread here in WooCommerce community to get catered answer: http://wordpress.org/support/plugin/woocommerce

    #103770

    MatthieuH
    Participant
    This reply has been marked as private.
    #103783

    Mrinal
    Member

    Hi Alex,

    Thanks for the login info.

    You’re using a cache plugin, whenever you make changes in Permalinks make sure you’re checking the changes in front end after clearing the caches.

    Also update all the outdated plugins & WordPress to latest version please.

    #103788

    MatthieuH
    Participant

    Sorry, as this site is about to get “online”, I will test the updates in another server before updating my main one.

    I disabled my total cache and still could not make it work…

    Do you guys know de answer? Something else seemed wrong?

    Thanks

    #103822

    Nabeel A
    Moderator

    Hey Alex,

    Instead of having products as a shop page, please use default WooCommerce “shop” page so the link should be http://my-site/shop/ You can change this from WooCommerce > Settings > Products after creating a shop page then use your default permalink settings without any modification.

    Let us know how this goes!

    #105065

    MatthieuH
    Participant

    Hello Support,

    I thank you for the effort, but this dos not resolve my issue.
    Still can’t make a shop architecture with a common url.
    I always end up with the category page being different than the other one.

    The case you suggested provided me this urls:
    /shop
    /product-category
    /shop/%product_cat%/%product_name%

    The problem lies on the product category page again It should be “/shop/%product_cat%/”.

    But I will see what can I do about it. If nothing can be done I will use it like this anyway.

    Thanks again

    #105070

    Zeshan
    Member

    Sure Alex! Let us know if we can help you with anything else! 🙂