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

Okay
  Public Ticket #3565140
Hide variation name, show product name
Open

Comments

  •  1
    Robin Pel started the conversation

    Hello, 

    Quick question: I'm using the WPC Variations Table plugin for WooCommerce. In the title of every variation in the table, I want to hide the variation name but show the product name. How can I do this?

    For example, see: https://prnt.sc/cxa3J-Pw29ou

    Hope to hear from you soon :)

    Greetings, Robin

  •  767
    Janilyn replied

    Hi Robin,

    Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.

    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 Robin,

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

    add_filter( 'wpcvt_variation_name', function ( $name, $variation, $main_product ) {
        return $main_product->get_name();
    }, 99, 3 );

    Best regards,
    Dustin

  •  1
    Robin Pel replied

    Yes, this works! 

    Thank you so much :D

  •  1,226
    Dustin replied

    You're welcome!smile.png

    If you are satisfied with our plugin and support, please reward it with a full five-star ★★★★★ rating.
    https://wordpress.org/support/plugin/wpc-variations-table/reviews/?filter=5
    Thank you in advance! ♥

    Best regards,
    Dustin