• I have software Products and Variants stored in WooCommerce. I also have a Custom Post Type where I store serial numbers.

    One Product or Product Variant can have many serial numbers (and other fields like “available/sold”).

    My question: is there a easy or best-practice way to relate the serial numbers (CPT) to the WooCommerce product(s)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Pat,
    did you find your path through this?
    We have a similar problem.
    Maybe we could share the best solution, which indeed I don’t have yet.

    Thanks

    Thread Starter Pat Gilmour

    (@patgilmour)

    It depends on whether you are planning to have Store Managers associate the CPT with the WooCommerce Products or whether you are looking for something more automated.

    If it’s the former, you might be able to get away with Posts-2-posts or Advanced Custom Fields as ways of relating the Product to the CPT.

    If it is something more specifically like a list of serial numbers that will be automatically assigned at checkout then the best option is probably a custom table – a serial number doesn’t quite fit the Post-type content model for all that posts are very flexible.

    A good starting point is License Manager for WooCommerce on CodeCanyon. It’s not the world’s most polished plugin but it might work as a good starting point. The developer uses an external table to store the serials.

    There are also plugins just for creating serial numbers in WooCommerce. Some are really good, but they generate the serials so you can give them a pre-existing list of serials.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relate WooCommerce Products to another CPT’ is closed to new replies.