• Resolved hommealone

    (@hommealone)


    I’ve inherited a website that uses WooCommerce. The products were assigned features (like Size, Shape, Color, etc), which are neither tags nor categories. Each feature has several terms (for example: Large, Medium, Small) I can’t figure out what those features are exactly, technically speaking (custom taxonomies?) or how they were created. I’d like to be able to create unique archive pages with unique URLs for each of those terms.

    Can anyone tell me what those features “are” and how they were created?

    Any suggestions for creating an archive page for each term?

    Here’s the status report. I know that WooCommerce plugin and the over-ride templates are out of date, but I want to get things set up the way I need before I update them.

    
    
    ### WordPress Environment ###
    
    WordPress address (URL): https://onthebrightside.com
    Site address (URL): https://onthebrightside.com
    WC Version: 3.8.1
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: 5.4.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.3.12
    PHP Post Max Size: 512 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.28-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: 3.8.1
    WC Database Prefix: (xxxx) (I removed this for security sake)
    MaxMind GeoIP Database: ?
    Total Database Size: 7.81MB
    Database Data Size: 5.65MB
    Database Index Size: 2.16MB
    wpbs_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wpbs_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpbs_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpbs_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpbs_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpbs_duplicator_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_newsletter: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_newsletter_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_newsletter_sent: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_newsletter_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_options: Data: 1.19MB + Index: 0.06MB + Engine InnoDB
    wpbs_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_pmxi_imports: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wpbs_pmxi_posts: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wpbs_pmxi_templates: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wpbs_postmeta: Data: 2.52MB + Index: 0.72MB + Engine InnoDB
    wpbs_posts: Data: 0.27MB + Index: 0.16MB + Engine InnoDB
    wpbs_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_term_relationships: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
    wpbs_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpbs_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpbs_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpbs_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpbs_yoast_indexable: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpbs_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpbs_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpbs_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpbs_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (23) ###
    
    Advanced Custom Fields: Gallery Field: by Elliot Condon – 2.1.0
    Advanced Custom Fields: Options Page: by Elliot Condon – 2.1.0
    Advanced Custom Fields: Repeater Field: by Elliot Condon – 2.1.0
    Advanced Custom Fields: by Elliot Condon – 5.8.12
    Autoptimize: by Frank Goossens (futtta) – 2.7.3
    Better Search Replace: by Delicious Brains – 1.3.3
    Classic Editor: by WordPress Contributors – 1.5
    Coming Soon Page, Under Construction & Maintenance Mode by SeedProd: by SeedProd – 5.1.0
    Contact Form 7: by Takayuki Miyoshi – 5.1.9
    Custom Post Type UI: by WebDevStudios – 1.7.4
    Duplicator: by Snap Creek – 1.3.34
    Easy WP SMTP: by wpecommerce
    alexanderfoxc – 1.3.9.3
    
    Newsletter: by Stefano Lissa & The Newsletter Team – 6.7.2
    Really Simple SSL: by Really Simple Plugins – 3.3.3
    Lazy Load - Optimize Images: by WP Rocket – 2.3.3
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.18 – 2.0.2 is available
    WooCommerce Stripe Gateway: by WooCommerce – 4.3.1
    WooCommerce USPS Shipping: by WooCommerce – 4.4.35 – 4.4.44 is available
    WooCommerce: by Automattic – 3.8.1 – 4.2.0 is available
    Yoast SEO: by Team Yoast – 14.3
    WP File Manager: by mndpsingh287 – 6.4
    Smush: by WPMU DEV – 3.6.3
    
    ### Inactive Plugins (6) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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 ###
    
    Shop base: #105 - /shop/
    Cart: #106 - /cart/
    Checkout: #107 - /checkout/
    My account: #108 - /my-account/
    Terms and conditions: #278 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: bright-side
    Version: 1.0.0
    Author URL: https://underscores.me/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: bright-side/woocommerce/archive-product.php
    bright-side/woocommerce/auth/footer.php
    bright-side/woocommerce/auth/form-grant-access.php
    bright-side/woocommerce/auth/form-login.php
    bright-side/woocommerce/auth/header.php
    bright-side/woocommerce/cart/cart-empty.php
    bright-side/woocommerce/cart/cart-item-data.php
    bright-side/woocommerce/cart/cart-shipping.php version 3.5.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/cart/cart-totals.php
    bright-side/woocommerce/cart/cart.php version 3.5.0 is out of date. The core version is 3.8.0
    bright-side/woocommerce/cart/cross-sells.php
    bright-side/woocommerce/cart/mini-cart.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/cart/proceed-to-checkout-button.php
    bright-side/woocommerce/cart/shipping-calculator.php
    bright-side/woocommerce/checkout/cart-errors.php
    bright-side/woocommerce/checkout/form-billing.php version 3.0.9 is out of date. The core version is 3.6.0
    bright-side/woocommerce/checkout/form-checkout.php
    bright-side/woocommerce/checkout/form-coupon.php
    bright-side/woocommerce/checkout/form-login.php version 3.4.0 is out of date. The core version is 3.8.0
    bright-side/woocommerce/checkout/form-pay.php
    bright-side/woocommerce/checkout/form-shipping.php version 3.0.9 is out of date. The core version is 3.6.0
    bright-side/woocommerce/checkout/order-receipt.php
    bright-side/woocommerce/checkout/payment-method.php
    bright-side/woocommerce/checkout/payment.php
    bright-side/woocommerce/checkout/review-order.php version 3.3.0 is out of date. The core version is 3.8.0
    bright-side/woocommerce/checkout/terms.php
    bright-side/woocommerce/checkout/thankyou.php version 3.2.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/content-product.php version 3.4.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/content-product_cat.php
    bright-side/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/content-widget-product.php
    bright-side/woocommerce/content-widget-reviews.php
    bright-side/woocommerce/emails/admin-cancelled-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/admin-failed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/admin-new-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-completed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-invoice.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-new-account.php version 3.5.2 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-note.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-on-hold-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-processing-order.php version 3.5.4 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-refunded-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/customer-reset-password.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/email-addresses.php
    bright-side/woocommerce/emails/email-customer-details.php
    bright-side/woocommerce/emails/email-downloads.php
    bright-side/woocommerce/emails/email-footer.php version 2.3.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/email-header.php
    bright-side/woocommerce/emails/email-order-details.php version 3.3.1 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/email-order-items.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/email-styles.php
    bright-side/woocommerce/emails/plain/admin-cancelled-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/admin-failed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/admin-new-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-completed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-invoice.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-new-account.php version 3.5.2 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-note.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-on-hold-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-processing-order.php version 3.5.4 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-refunded-order.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/customer-reset-password.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/email-addresses.php
    bright-side/woocommerce/emails/plain/email-customer-details.php
    bright-side/woocommerce/emails/plain/email-downloads.php
    bright-side/woocommerce/emails/plain/email-order-details.php version 3.5.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/emails/plain/email-order-items.php version 3.2.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/global/breadcrumb.php
    bright-side/woocommerce/global/form-login.php version 3.3.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/global/quantity-input.php version 3.4.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/global/sidebar.php
    bright-side/woocommerce/global/wrapper-end.php
    bright-side/woocommerce/global/wrapper-start.php
    bright-side/woocommerce/loop/add-to-cart.php
    bright-side/woocommerce/loop/loop-end.php
    bright-side/woocommerce/loop/loop-start.php
    bright-side/woocommerce/loop/no-products-found.php
    bright-side/woocommerce/loop/orderby.php version 3.3.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/loop/pagination.php
    bright-side/woocommerce/loop/price.php
    bright-side/woocommerce/loop/rating.php version 3.0.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/loop/result-count.php version 3.3.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/loop/sale-flash.php
    bright-side/woocommerce/myaccount/dashboard.php
    bright-side/woocommerce/myaccount/downloads.php
    bright-side/woocommerce/myaccount/form-add-payment-method.php
    bright-side/woocommerce/myaccount/form-edit-account.php
    bright-side/woocommerce/myaccount/form-edit-address.php version 3.4.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/myaccount/form-login.php version 3.5.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/myaccount/form-lost-password.php
    bright-side/woocommerce/myaccount/form-reset-password.php
    bright-side/woocommerce/myaccount/lost-password-confirmation.php
    bright-side/woocommerce/myaccount/my-account.php
    bright-side/woocommerce/myaccount/my-address.php
    bright-side/woocommerce/myaccount/my-downloads.php
    bright-side/woocommerce/myaccount/my-orders.php
    bright-side/woocommerce/myaccount/navigation.php
    bright-side/woocommerce/myaccount/orders.php version 3.2.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/myaccount/payment-methods.php
    bright-side/woocommerce/myaccount/view-order.php
    bright-side/woocommerce/notices/error.php
    bright-side/woocommerce/notices/notice.php
    bright-side/woocommerce/notices/success.php
    bright-side/woocommerce/order/form-tracking.php version 3.4.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/order/order-again.php
    bright-side/woocommerce/order/order-details-customer.php
    bright-side/woocommerce/order/order-details-item.php version 3.0.0 is out of date. The core version is 3.7.0
    bright-side/woocommerce/order/order-details.php version 3.5.2 is out of date. The core version is 3.7.0
    bright-side/woocommerce/order/order-downloads.php
    bright-side/woocommerce/order/tracking.php
    bright-side/woocommerce/product-searchform.php
    bright-side/woocommerce/single-product/add-to-cart/external.php
    bright-side/woocommerce/single-product/add-to-cart/grouped.php
    bright-side/woocommerce/single-product/add-to-cart/simple.php
    bright-side/woocommerce/single-product/add-to-cart/variable.php
    bright-side/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    bright-side/woocommerce/single-product/add-to-cart/variation.php
    bright-side/woocommerce/single-product/meta.php
    bright-side/woocommerce/single-product/photoswipe.php
    bright-side/woocommerce/single-product/price.php
    bright-side/woocommerce/single-product/product-attributes.php version 3.1.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/single-product/product-image.php
    bright-side/woocommerce/single-product/product-thumbnails.php
    bright-side/woocommerce/single-product/rating.php version 3.1.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/single-product/related.php
    bright-side/woocommerce/single-product/review-meta.php
    bright-side/woocommerce/single-product/review-rating.php version 3.1.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/single-product/review.php
    bright-side/woocommerce/single-product/sale-flash.php
    bright-side/woocommerce/single-product/share.php
    bright-side/woocommerce/single-product/short-description.php
    bright-side/woocommerce/single-product/stock.php
    bright-side/woocommerce/single-product/tabs/additional-information.php
    bright-side/woocommerce/single-product/tabs/description.php
    bright-side/woocommerce/single-product/tabs/tabs.php version 2.4.0 is out of date. The core version is 3.8.0
    bright-side/woocommerce/single-product/title.php
    bright-side/woocommerce/single-product/up-sells.php
    bright-side/woocommerce/single-product-reviews.php version 3.5.0 is out of date. The core version is 3.6.0
    bright-side/woocommerce/single-product.php
    bright-side/woocommerce/taxonomy-product_cat.php
    bright-side/woocommerce/taxonomy-product_tag.php
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Action Scheduler ###
    
    Complete: 1
    Oldest: 2020-06-12 06:09:54 -0400
    Newest: 2020-06-12 06:09:54 -0400
    
    Pending: 0
    Oldest: –
    Newest: –
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    • This topic was modified 4 years, 5 months ago by hommealone. Reason: wrong code formatting

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    If they are tags or categories they are indeed custom taxonomies. Archive pages already exist for them.

    This article explains how to add their link to the menu: https://quadmenu.com/add-woocommerce-product-and-categories-to-your-menu/

    Thread Starter hommealone

    (@hommealone)

    Thank you @nicolamustone, but they are not categories or tags. That’s the problem – I am trying to figure out what they actually are!

    They are also not attributes.

    What approach can I take to figure out what they are?

    Thread Starter hommealone

    (@hommealone)

    Solved it. I dug through the theme’s functions.php file and found that the features were indeed custom taxonomies, and where the taxonomies were registered. For example I found:

    
    //create a custom taxonomy Sizes
    	add_action( 'init', 'create_sizes_hierarchical_taxonomy', 0 );
    	function create_sizes_hierarchical_taxonomy() {
    		$labels = array(
    			'name' => _x( 'Sizes', 'taxonomy general name' ),
    			'singular_name' => _x( 'Size', 'taxonomy singular name' ),
    			'search_items' =>  __( 'Search Sizes' ),
    			'all_items' => __( 'All Sizes' ),
    			'parent_item' => __( 'Parent Size' ),
    			'parent_item_colon' => __( 'Parent Size:' ),
    			'edit_item' => __( 'Edit Size' ),
    			'update_item' => __( 'Update Size' ),
    			'add_new_item' => __( 'Add New Size' ),
    			'new_item_name' => __( 'New Size Name' ),
    			'menu_name' => __( 'Sizes' ),
    		);
    
    		register_taxonomy('sizes',array('product'), array(
    			'hierarchical' => true,
    			'labels' => $labels,
    			'show_ui' => true,
    			'query_var' => true,
    			'rewrite' => array( 'slug' => 'size' ),
    		));
    	}
    

    Standard WordPress hierarchies give pages showing taxonomy terms, for example:

    https://onthebrightside.com/size/large

    All good!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘features and archive pages for them’ is closed to new replies.