• Resolved W?odz Mur

    (@iwpresss)


    Hello,
    Why can’t I use the word shop (Settings/Permalinks/Optional) as Product category base?

    How else can you create a URL structure like this:
    /shop/
    /shop/category_name/
    /shop/category_name/subcategory_name/
    /shop/category_name/subcategory_name/product_name/
    or like this:
    /
    /category_name/
    /category_name/subcategory_name/
    /category_name/subcategory_name/product_name/
    Product category base cannot be = “”.

    Product category base default = “product_category”
    product_category can be replaced by any word other than shop.
    When using Product category base = “shop” all URLs = …/shop/category_name/ or …/shop/category_name/subcategory_name/subcategory_name/ result in a 404 error.

    P.S.
    Settings/Permalinks/Product permalinks
    Custom base = /shop/%product_cat%/

    Best Regards, Wlodz Mur
    [email protected]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello!

    I understand you would like to know why you can not use shop as a category base?

    For us to get a better idea about your site’s setup, please provide a copy of your System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?

    In order to add categories and subcategories to your site, you can follow these steps below:

    Take a look at your shop page settings, make sure they are configured correctly.
    Go to Appearance > Customize > WooCommerce > Product Catalog
    – Shop page display = Show categories
    – Category display = Show subcategories

    To create a parent category:
    Dashboard > Products > Categories > Add new category
    – Name: Add your name
    – Slug: Add the slug’s name
    – Parent Category: none

    To create a sub category:
    – Name: MySubCategory
    – Slug: MySubCategorySlug
    – Parent Category: YourParentCategory

    This will help to create a category structure. Please note that categories will need to have products already added and linked to them, that way WooCommerce will display those categories.

    You can learn more about it in our documentation below:
    https://woocommerce.com/document/managing-product-taxonomies/

    I hope this points you in the right direction.

    Thread Starter W?odz Mur

    (@iwpresss)

    Hello @ihereira,
    Thank you very much for your help. It is very important for me!

    1) You got it right. I have a problem with exactly this:
    I understand you would like to know why you can not use shop as a category base?
    Product category base = ’shop’
    The question is only in the URL’s.
    I already have:
    /shop/
    /shop/category_name/product_name/
    /shop/category_name/subcategory_name/product_name/

    I need:
    /shop/category_name/
    /shop/category_name/subcategory_name/

    2) System Status I placed at the end of the post
    3) Creating categories and subcategories is fine, thanks for your clarification.

    Best Regards, Wlodz Mur

    ————– My System Status ———————

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://iwpress.co.ua
    Site address (URL): https://iwpress.co.ua
    WC Version: 6.8.2
    REST API Version: ? 6.8.2
    WC Blocks Version: ? 8.0.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.30
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 100000
    cURL Version: 7.85.0
    OpenSSL/1.1.1q
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.36-MariaDB-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.8.2
    WC Database Prefix: iwc_
    Total Database Size: 30.14MB
    Database Data Size: 28.80MB
    Database Index Size: 1.34MB
    iwc_woocommerce_sessions: Data: 1.35MB + Index: 0.07MB + Engine MyISAM
    iwc_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_actionscheduler_actions: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    iwc_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_actionscheduler_logs: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    iwc_aiowps_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_aiowps_failed_logins: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_aiowps_global_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_aiowps_login_activity: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_aiowps_login_lockdown: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_aiowps_permanent_block: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_commentmeta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    iwc_comments: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    iwc_e_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_dynamic_segment_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_feature_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_mapping_to_external_entities: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletter_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletter_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletter_option_fields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_mailpoet_newsletter_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletter_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_newsletter_templates: Data: 1.04MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_scheduled_tasks: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_mailpoet_scheduled_task_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_segments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_mailpoet_sending_queues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_bounces: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_opens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_unsubscribes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_statistics_woocommerce_purchases: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_stats_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_subscribers: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_mailpoet_subscriber_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_subscriber_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_user_agents: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_mailpoet_user_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_options: Data: 2.87MB + Index: 0.24MB + Engine MyISAM
    iwc_pmxe_exports: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    iwc_pmxe_google_cats: Data: 0.26MB + Index: 0.05MB + Engine MyISAM
    iwc_pmxe_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_pmxe_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_postmeta: Data: 13.33MB + Index: 0.48MB + Engine MyISAM
    iwc_posts: Data: 9.67MB + Index: 0.16MB + Engine MyISAM
    iwc_termmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    iwc_terms: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    iwc_term_relationships: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
    iwc_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    iwc_tinvwl_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_tinvwl_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_tinvwl_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_usermeta: Data: 0.04MB + Index: 0.01MB + Engine MyISAM
    iwc_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    iwc_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    iwc_wt_iew_action_history: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    iwc_wt_iew_mapping_template: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 246
    builderius_branch: 2
    builderius_sett_set: 2
    custom_css: 1
    customize_changeset: 220
    elementor_library: 9
    mailpoet_page: 1
    mc4wp-form: 1
    nav_menu_item: 113
    page: 20
    polylang_mo: 2
    post: 10
    product: 66
    product_variation: 14
    revision: 907
    shop_order: 27
    wp_global_styles: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (20) ###
    
    FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.20.0
    Bacola Core: by KlbTheme – 1.2.1
    Contact Form 7: by Takayuki Miyoshi – 5.6.3
    Duplicate Page: by mndpsingh287 – 4.4.9
    Elementor: by Elementor.com – 3.7.4
    Envato Market: by Envato – 2.0.7
    Jetpack: by Automattic – 11.3.1
    Kirki Customizer Framework: by David Vongries – 4.0.24
    Loco Translate: by Tim Whitlock – 2.6.2
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.8
    Meta Box: by MetaBox.io – 5.6.6
    TI WooCommerce Wishlist: by TemplateInvaders – 2.0.1
    Unyson: by ThemeFuse – 2.7.27
    WPC Smart Compare for WooCommerce: by WPClever – 5.1.5
    Variation Swatches for WooCommerce: by Emran Ahmed – 2.0.9
    WooCommerce Payments: by Automattic – 4.7.0
    WooCommerce Shipping & Tax: by WooCommerce – 1.26.3
    WooCommerce: by Automattic – 6.8.2
    WordPress Importer: by wordpressdotorg – 0.7
    WP Rollback: by Impress.org – 1.7.1
    
    ### Inactive Plugins (4) ###
    
    KeepinCRM functions: by KeepinCRM – 0.0.5
    TaxoPress: by TaxoPress – 3.6.4
    Variation Swatches for WooCommerce - Pro: by Emran Ahmed – 2.0.6
    WooCommerce Keycrm.app: by KeyCRM.app – 1.0.9
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: UAH (?)
    Currency Position: right_space
    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: ?
    Enforce Approved Product Download Directories: ?
    
    ### WC Pages ###
    
    Shop base: #1964 - /shop/
    Cart: #14 - /cart/
    Checkout: #15 - /checkout/
    My account: #16 - /my-account/
    Terms and conditions: ? Page ID is set
    but the page does not exist
    
    ### Theme ###
    
    Name: Bacola Child
    Version: 1.1.5
    Author URL: https://themeforest.net/user/KlbTheme
    Child Theme: ?
    Parent Theme Name: Bacola
    Parent Theme Version: 1.1.9
    Parent Theme Author URL: https://themeforest.net/user/KlbTheme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: bacola/woocommerce/archive-product.php
    bacola/woocommerce/cart/cart-empty.php
    bacola/woocommerce/cart/cart.php
    bacola/woocommerce/cart/cross-sells.php
    bacola/woocommerce/cart/mini-cart.php
    bacola/woocommerce/checkout/form-checkout.php
    bacola/woocommerce/content-product.php
    bacola/woocommerce/content-single-product.php
    bacola-child/woocommerce/emails/admin-new-order.php
    bacola/woocommerce/global/breadcrumb.php
    bacola/woocommerce/global/quantity-input.php
    bacola/woocommerce/global/wrapper-end.php
    bacola/woocommerce/global/wrapper-start.php
    bacola/woocommerce/loop/add-to-cart.php
    bacola/woocommerce/loop/loop-end.php
    bacola/woocommerce/loop/loop-start.php
    bacola/woocommerce/loop/orderby.php
    bacola/woocommerce/myaccount/form-login.php
    bacola/woocommerce/myaccount/my-account.php
    bacola/woocommerce/myaccount/navigation.php
    bacola/woocommerce/myaccount/orders.php
    bacola/woocommerce/single-product/meta.php
    bacola/woocommerce/single-product/price.php
    bacola/woocommerce/single-product/product-image.php
    bacola/woocommerce/single-product/rating.php
    bacola/woocommerce/single-product/related.php
    bacola/woocommerce/single-product/short-description.php
    bacola/woocommerce/single-product/stock.php
    bacola/woocommerce/single-product/up-sells.php
    bacola/woocommerce/single-product.php
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ? Next scheduled: 2022-07-14 08:34:31 +03:00
    Options: ?
    Notes: 32
    Onboarding: completed
    
    ### WooCommerce Payments ###
    
    Version: 4.7.0
    Connected to WPCOM: Yes
    Blog ID: 184960078
    Account ID: -
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 40
    Oldest: 2022-08-15 05:30:01 +0000
    Newest: 2022-09-13 14:36:00 +0000
    
    Pending: 1
    Oldest: 2022-09-13 18:07:12 +0000
    Newest: 2022-09-13 18:07:12 +0000
    
    ### Status report information ###
    
    Generated at: 2022-09-13 17:55:28 +03:00
    

    ————– End System Stat ———————

    Mirko P.

    (@rainfallnixfig)

    Hi @iwpresss,

    Thanks for the system status.

    Why can’t I use the word shop (Settings/Permalinks/Optional) as Product category base?

    What I see is that you’re using /shop/%product_cat%/ as a custom base for product permalinks and if you add shop to the product category base that generates a conflict.

    I’d suggest keeping shop for the product category base and changing the product permalinks custom base to the default product.

    Alternatively, you could use a plugin like Custom Permalinks for WooCommerce to change permalinks structure in a way that works for you.

    Best regards.

    Thread Starter W?odz Mur

    (@iwpresss)

    Hi @rainfallnixfig,

    Thanks for your reply.
    It is very unfortunate that such a combination of parameters leads to a conflict. I’ll try to use your advice regarding the Custom Permalinks for WooCommerce plugin. Thanks again!

    Best regards.

    Hi there @iwpresss ??

    I’ll try to use your advice regarding the Custom Permalinks for WooCommerce plugin. Thanks again!

    You are welcome. I’ll go ahead with closing this thread now; feel free to open a new one, if needed.

    Thread Starter W?odz Mur

    (@iwpresss)

    Hi there @anastas10s,

    OK thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Product category base’ is closed to new replies.