then connect the product with the serial using a custom field
Why not store serial itself in custom field, instead of connection information?
You don’t describe what serial number is in detail, but I think it’s likely merely a text string. Since it’s unique (as opposed to group-related) it sounds well suited to be just stored in custom field.
In my experience I had stored much more elaborate data in meta of WooCommerce orders (SVG customizations). I hit issues eventually with allowing multiple instances of same but differently customized product in same order, but I imagine with simpler use case the complexity would be accordingly lower.
Related Posts:
- Query for posts from any post type but only add instock products
- How to use custom post type APIs, but use a different db table
- Woocommerce query specific product from specific category
- wpdb custom post_type problem
- Woocommerce search pagination not working
- WP_Query orderby and tax_query
- Sort posts in loop by the WooCommerce Membership of the author
- Get all post from a post type
- How select query is generated in a Custom Post Type?
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Query all posts where a meta key does not exist
- Delete all posts of a custom post type—efficiently
- Single loop for wp_query and wp_user_query
- query multiple taxonomies
- Custom Post Type, WP_Query and ‘orderby’
- Syntax to get the Nth item in a list of custom post types?
- Grab 5 latest posts from custom post type ‘announcements’
- WP_Query to loop a Custom Field, Custom Post Types do not show
- Pagination Doesn’t Work
- Numeric pagination custom post type
- Using Query Posts With Multiple Post Types And A Taxonomy
- List with categories, subcategories and posts of custom posttype
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- Custom Taxonomy List links being re-written
- Can’t sort order of wp_query with 2 meta keys
- Want to filter only parent post in admin area
- Get count of custom post type created by current user
- Query Custom Post by Category
- Having trouble with custom date field for CPT query (WordPress)
- Quickest way to get last or oldest post date – WP Query
- Display posts if a custom field value is equal to another custom field value
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Custom post query by taxonomy
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- CPT posts listed by category with custom rewrite URL, please help!
- Use get_post_types to query only custom posts types
- Group custom posts by custom taxonomy names
- Adding custom tables to WordPress
- Using global $post; to get featured image for custom post via WP_Query
- Query custom post type by category slug
- Can’t query tag and post_type at the same time
- Get post from custom post type order by two taxonomies
- Wrong request query on cpt and tax
- Search / Filter posts on Title/Content OR Tags
- Converting the_content string to an array?
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Several post types on WP Query by tag and taxonomy
- Display Woocommerce Orders for specific author [closed]
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- How can I group posts by months and years?
- Displaying a div from an assigned meta_value when on a page
- Creating two loops based on different logic
- Getting a custom post’s custom field based on another custom post’s custom field select
- Custom post type loop with custom category filtering
- Show message when query has no posts
- How to show all taxonomies within custom post type loop
- WP_Query not resetting after wp_reset_postdata
- Custom post type to lead to single post type instead of shortcode modal
- Filter posts of custom post type by meta key in (List All Section)
- Query Posts, order by meta value
- Blank search results on custom search
- Foreach loop returning more than one item when querying taxonomy
- Say I have a tech blog, how best would I store technical specs for a phone, if i use custom post types
- how to compare different timestamps in wp-query for events custom post types?
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Sorting the Loop by Taxonomy Value
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Ordering by meta value not working
- Custom wp-query display post only today
- Create if else for post types in WP_Query ‘post__in’ values
- Custom post type query with taxonomy
- Display Custom Post Type Based on Taxonomy With WP_Query()
- custom post types, custom fields and normalization
- Change display of product price on product show page only
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- How to replicate data storage and querying using WordPress. Custom posts/fields or Custom db tables?
- Mix Facebook and Twitter feed into custom posts
- pre_get_posts gives 404 error on Custom Post
- Changing an item in drop down after 5 latest posts per taxonomy
- Query for a custom post taxonomy
- WordPress loop multiple orderby query with Types toolset
- Strange behavior on WP_query
- In WordPress do I create tables for my plugin or do I create custom post types for a Student and Classes Registration system?
- Query Pulling the same post twice
- Custom Post Type + Category archive
- Values inside a custom field to determine which category posts to display
- WP_Query get posts where post_name is empty
- How do I sort post listing by child post count?
- Pop up showing same content on all posts display.
- Custom post-type’s pagination not working in category.php
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Checking for published posts in a certain post type
- Count of posts with meta_key filled in?
- Are custom posts included when getting a categories’ posts?
- Query order by meta value force specific tag first
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- How can I show posts with the same tag?
- Load posts via AJAX without draft status
- WP Query – Can’t get posts with specific taxonomy