Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2722392
Variable products used under the Composite Product?
Closed

Comments

  • Lee S Carter started the conversation

    I've selected four products to used under a Composite product.  However, each of these four products are Variable products themselves with each variation having a unique SKU.  Can I do this and will the SKUs show on the checkout page?  If so, how?

  •  767
    Janilyn replied

    Hi Lee,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  153
    Henry replied

    You can use this code for display sku variation:

    add_filter( 'wooco_product_name', 'wooco_variation_product_name', 99, 2 );
    function wooco_variation_product_name( $name, $product ) {
    if ( $product->is_type( 'variation' ) ) {
    return $name= $name.' - '.$product->get_sku();
    }
    return $name;
    }


    Best regards,
    Henry N.