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

Okay
  Public Ticket #2872468
Component Description
Closed

Comments

  • Ryan Cravey started the conversation

    Can I add the Short Description along with the Item Name to the component dropdown list?  Some of our item names don't give enough detail by themselves to give a valid selection to choose from.

  •  767
    Janilyn replied

    Hi Ryan,

    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

  •  1,226
    Dustin replied

    Hi Ryan,

    Please add the below custom code (How to add custom code?)

    add_filter( 'wooco_product_description', 'your_wooco_product_description', 99, 2 );
    function your_wooco_product_description( $desc, $product ) {
        if ( $product->is_type( 'variation' ) ) {
            return '<div class="wooco-variation-desc">' . $product->get_description() . '</div>' . $desc;
        } else {
            return '<div class="wooco-variation-desc">' . $product->get_short_description() . '</div>' . $desc;
        }
    }

    And the result https://www.screencast.com/t/E1P73zlvuK

    Best regards,
    Dustin