Support » Plugin: WooCommerce » Product permalinks

  • Resolved jorenwouters

    (@jorenwouters)


    Today I noticed something strange.

    When I changed the custom base of my product permalinks to “/%product_cat%/product/”, it also changed the permalinks of my product categories.

    Before this change, my product category URL was /product-category/category-name/, but now it is only /category-name/.

    The weird thing is that I changed the permalink of my product, which should not affect the URL of my product category.

    Does anyone know how this problem can be solved?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Howdy!

    I just tested this on my site using WordPress version 5.2.1 and WooCommerce version 3.6.4, and didn’t have a problem. Are you using those version as well?

    Here are my test Permalink settings:

    https://cld.wthms.co/6ZiATW

    Would you mind sharing a screenshot of your settings? Do you have any caching plugins enabled, or any server-side caching setup?

    Yes, I am having those versions.

    The problems is this: If i change my permalinks settings to this (https://d.pr/free/i/iQDiiz), then two things happen:
    – My product categories are going from /product-category/category-name/ to /category-name/
    – All my pages get a 404 error.

    You can view the website above.

    Plugin Support Jesse Pearson

    (@jessepearson)

    Automattic Happiness Engineer

    @jorenwouters I viewed your site and this is what I am seeing:

    Category: https://wijnexpress.nl/dev2/rode-wijn/
    Product: https://wijnexpress.nl/dev2/rode-wijn/alvis-drift-signature-shiraz/

    This doesn’t seem correct according to your settings, so I applied your settings (https://d.pr/free/i/iQDiiz) to my store, and this is what I am seeing… Product on top, category on the bottom:


    Link to image: https://cld.wthms.co/YS8FCY

    As far as I can tell, things are working correctly for myself with WooCommerce 3.6.5. It may be possible that another plugin you have installed has overridden the permalink structure. Are you able to include your System Status Report here, or would you rather try the troubleshooting steps outlined at this link?
    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Hello,

    I want my product categories going from /product-category/category-name/ to /category-name/, but the problem is that then all pages go to a 404 error (and I do not want that).

    My system report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://wijnexpress.nl/dev2
    Site address (URL): https://wijnexpress.nl/dev2
    WC Version: 3.6.4
    Log Directory Writable: ✔
    WP Version: 5.2.2
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: nl_NL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2
    PHP Version: 7.3.7
    PHP Post Max Size: 2 GB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.62.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 10.2.25-MariaDB-cll-lve
    Max Upload Size: 2 GB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.6.4
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Totale databasegrootte: 26.05MB
    Database datagrootte: 21.49MB
    Database index grootte: 4.56MB
    wp_woocommerce_sessions: Data: 0.85MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_order_items: Data: 0.06MB + Index: 0.04MB
    wp_woocommerce_order_itemmeta: Data: 0.44MB + Index: 0.31MB
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    wp_cm_idin_transactions: Data: 0.02MB + Index: 0.00MB
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB
    wp_comments: Data: 0.30MB + Index: 0.17MB
    wp_ct_ugdpr_consent_log: Data: 1.52MB + Index: 0.00MB
    wp_failed_jobs: Data: 0.02MB + Index: 0.00MB
    wp_followup_coupons: Data: 0.02MB + Index: 0.03MB
    wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB
    wp_followup_customer_carts: Data: 0.02MB + Index: 0.03MB
    wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB
    wp_followup_customer_orders: Data: 0.02MB + Index: 0.02MB
    wp_followup_email_coupons: Data: 0.02MB + Index: 0.02MB
    wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB
    wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB
    wp_followup_email_order_coupons: Data: 0.02MB + Index: 0.02MB
    wp_followup_followup_history: Data: 0.02MB + Index: 0.05MB
    wp_followup_order_categories: Data: 0.02MB + Index: 0.03MB
    wp_followup_order_items: Data: 0.02MB + Index: 0.05MB
    wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB
    wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB
    wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB
    wp_imagify_files: Data: 0.02MB + Index: 0.08MB
    wp_imagify_folders: Data: 0.02MB + Index: 0.03MB
    wp_links: Data: 0.00MB + Index: 0.00MB
    wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB
    wp_mollie_pending_payment: Data: 0.00MB + Index: 0.00MB
    wp_options: Data: 2.21MB + Index: 0.09MB
    wp_postmeta: Data: 10.49MB + Index: 1.74MB
    wp_posts: Data: 1.37MB + Index: 0.16MB
    wp_queue: Data: 0.02MB + Index: 0.00MB
    wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB
    wp_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB
    wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB
    wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB
    wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB
    wp_rank_math_sc_analytics: Data: 0.02MB + Index: 0.02MB
    wp_redirection_404: Data: 1.15MB + Index: 0.29MB
    wp_redirection_groups: Data: 0.00MB + Index: 0.00MB
    wp_redirection_items: Data: 0.00MB + Index: 0.02MB
    wp_redirection_logs: Data: 0.03MB + Index: 0.02MB
    wp_revslider_css: Data: 0.10MB + Index: 0.00MB
    wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB
    wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB
    wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB
    wp_revslider_slides: Data: 0.03MB + Index: 0.00MB
    wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB
    wp_snp_stats: Data: 0.00MB + Index: 0.00MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.05MB
    wp_term_relationships: Data: 0.07MB + Index: 0.14MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.04MB
    wp_usermeta: Data: 0.35MB + Index: 0.26MB
    wp_users: Data: 0.02MB + Index: 0.02MB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.00MB
    wp_yoast_seo_links: Data: 0.08MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    amn_mi-lite: 3
    attachment: 292
    ct_ugdpr_service: 2
    elementor_library: 1
    extra_product_tab: 1
    follow_up_email: 1
    jetpack_migration: 2
    nav_menu_item: 32
    page: 43
    post: 3
    product: 150
    revision: 316
    scheduled-action: 53
    shop_coupon: 6
    shop_order: 358
    shop_order_refund: 11
    wc_afrsm: 14
    woocarouselpro: 1
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (34) ###
    
    WooCommerce (nl): door Pronamic – 1.1.7 – Niet getest met de actieve versie van WooCommerce
    Contact Form 7 MailChimp Extension: door Renzo Johnson – 0.4.51
    Contact Form 7: door Takayuki Miyoshi – 5.1.3
    Ultimate GDPR: door CreateIT – 1.6.3
    EAN for WooCom & Google Products: door Christiaan Kloes – 1.0.0 – Niet getest met de actieve versie van WooCommerce
    Elementor: door Elementor.com – 2.5.15
    Error Log Monitor: door Janis Elsts – 1.6.6
    Imagify: door WP Media – 1.9.2
    WPBakery Page Builder: door Michael M - WPBakery.com – 6.0.2
    Loco Translate: door Tim Whitlock – 2.2.2
    Mailchimp for WordPress: door ibericode – 4.5.2
    MailChimp for WordPress - Premium: door ibericode – 4.5.7
    Mollie Payments for WooCommerce: door Mollie – 5.1.8
    Ocean Extra: door OceanWP – 1.5.6
    Ocean Stick Anything: door OceanWP – 1.0.2
    Ocean Sticky Header: door OceanWP – 1.1.11
    Woocommerce Easy Checkout Fields Editor: door phppoet – 1.4.0 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Product Filter: door Mihajlovic Nenad – 6.6.5 – Niet getest met de actieve versie van WooCommerce
    Slider Revolution: door ThemePunch – 5.4.6
    Search Exclude: door Roman Pronskiy – 1.2.2
    Rank Math SEO: door Rank Math – 1.0.26
    TI WooCommerce Wishlist Plugin: door TemplateInvaders – 1.12.3
    Widget CSS Classes: door C.M. Kendrick – 1.5.3
    Woocommerce Calculate Shipping In Product Page: door enhancewc – 1.0.5 – Niet getest met de actieve versie van WooCommerce
    Advanced Flat Rate Shipping For WooCommerce: door Thedotstore – 3.1.7 – Niet getest met de actieve versie van WooCommerce
    Woocommerce Product Tab Pro: door Proword – 2.8 – Niet getest met de actieve versie van WooCommerce
    Woocommerce Add Countries: door Daniele De Santis – 1.1 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Admin: door WooCommerce – 0.12.0
    WooCommerce Bulk Discount: door Rene Puchinger – 2.4.5 – Niet getest met de actieve versie van WooCommerce
    WooCommerce PDF Invoice: door RightPress – 3.1.7 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Pretty Emails: door MB Création – 1.8.6 – Niet getest met de actieve versie van WooCommerce
    WooCommerce Google Product Feed: door Ademti Software Ltd. – 7.6.5 – Niet getest met de actieve versie van WooCommerce
    WooCommerce: door Automattic – 3.6.4 – 3.7.0 is beschikbaar
    Contact Form 7 Redirection: door Query Solutions – 1.3.1
    
    ### Inactive Plugins (10) ###
    
    CM iDIN for WooCommerce: door CM – 1.0.1 – Niet getest met de actieve versie van WooCommerce
    Easy HTTPS (SSL) Redirection: door Tips and Tricks HQ – 1.9
    Follow-Up Emails: door WooCommerce – 4.7.1 – Niet getest met de actieve versie van WooCommerce
    Google Analytics for WordPress by MonsterInsights: door MonsterInsights – 7.6.0
    Redirection: door John Godley – 4.2.3
    Screets Live Chat: door Screets Team – 2.2.8
    W3 Total Cache: door Frederick Townes – 0.9.7.4
    WooCommerce Google Analytics Integration: door WooCommerce – 1.4.9
    WooCommerce Product Carousel Slider Pro: door ADL Plugins – 3.0.2 – Niet getest met de actieve versie van WooCommerce
    Yoast SEO: door Team Yoast – 11.2.1 – Niet getest met de actieve versie van WooCommerce
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Winkelbasis: #5 - /winkel/
    Winkelmand: #6 - /winkelwagen/
    Afrekenen: #7 - /afrekenen/
    Mijn account: #8 - /mijn-account/
    Algemene voorwaarden: #128 - /algemene-voorwaarden/
    
    ### Theme ###
    
    Name: Wijn Express OceanWP
    Version: 1.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: OceanWP
    Parent Theme Version: 1.6.7 – 1.7.1 is beschikbaar
    Parent Theme Author URL: https://oceanwp.org/about-me/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: oceanwp/woocommerce/cart/mini-cart.php
    oceanwp/woocommerce/content-single-product.php
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/admin-cancelled-order.php versie 2.3.0 is verouderd. De hoofdversie is 3.6.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/admin-failed-order.php versie 2.5.0 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/admin-new-order.php versie 2.0.0 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-completed-order.php versie 1.6.4 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-invoice.php versie 2.2.0 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-new-account.php versie 1.6.4 is verouderd. De hoofdversie is 3.5.2
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-note.php versie 1.6.4 is verouderd. De hoofdversie is 3.6.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-on-hold-order.php versie - is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-processing-order.php versie 1.6.4 is verouderd. De hoofdversie is 3.5.4
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-refunded-order.php versie 2.4.0 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/customer-reset-password.php versie 2.0.0 is verouderd. De hoofdversie is 3.5.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/email-addresses.php versie 2.2.0 is verouderd. De hoofdversie is 3.5.4
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/email-customer-details.php
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/email-footer.php versie 2.0.0 is verouderd. De hoofdversie is 2.3.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails//emails/themes/email-header-centered.php versie 1.0 is verouderd. De hoofdversie is 2.4.0
    /home/u26628p20593/domains/wijnexpress.nl/public_html/dev2/wp-content/plugins/woocommerce-pretty-emails/emails/email-order-items.php versie 2.1.2 is verouderd. De hoofdversie is 3.5.0
    wijn-express-oceanwp/woocommerce/loop/add-to-cart.php
    oceanwp/woocommerce/loop/loop-start.php
    wijn-express-oceanwp/woocommerce/loop/price.php
    wijn-express-oceanwp/woocommerce/loop/sale-flash.php
    wijn-express-oceanwp/woocommerce/product-searchform.php versie 2.5.0 is verouderd. De hoofdversie is 3.3.0
    wijn-express-oceanwp/woocommerce/single-product/price.php
    wijn-express-oceanwp/woocommerce/single-product/sale-flash.php
    wijn-express-oceanwp/woocommerce/single-product/short-description.php
    wijn-express-oceanwp/woocommerce/single-product/title.php
    
    Outdated Templates: ❌
    					
    					
    						Leer hoe te updaten
    
    ### WooCommerce Google Product Feed fields ###
    
    Availability: Defaults to "in stock".
    Brand: Pre-populates from product_title taxonomy.
    Product Type: 
    Google Product Category: Defaults to "499676".
    Global Trade Item Number (GTIN): Pre-populates from sku taxonomy.
    Size system: Defaults to "EU".
    Identifier exists flag: 
    
    ### WooCommerce Google Product Feed options ###
    
    Include variations in feed: Enabled
    Send item_group_id: No
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 50
    Oldest: 2019-07-20 03:40:34 +0000
    Newest: 2019-08-19 11:33:39 +0000
    
    Pending: 3
    Oldest: 2019-08-19 12:33:39 +0000
    Newest: 2019-08-20 03:45:21 +0000
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.