• Resolved travelbaba

    (@travelbaba)


    I’ve found already similar question, but nobody didn’t really found a solution for it. I explain: Looks like woocommerce put variation names in title when are less than 3, if they are more it put it as list under the product title.

    See attachment.

    As you can see, it doesn’t really do the job.

    My need is to show ALWAYS variations name under the product ( in email, order, etc…)

    Basically with this format:

    product name…….. price

    ATTRIBUTE1: variation
    ATTRIBUTE2: Variation

    etc….

    even if it’s only one variation.

    Is it possible?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I can’t see an attachment, but I think you’re asking to remove attribute values from Product variation titles and to display them in separate rows.

    Step 1 – removing attribute values from Product variation titles:

    add_filter( 'woocommerce_product_variation_title_include_attributes', 'variation_title_exclude_attributes' );
    function variation_title_exclude_attributes( $boolean ) {
      return false;
    }

    Step 2 – Show variation attributes label and values in separate rows:

    add_filter( 'woocommerce_is_attribute_in_product_name', 'remove_attribute_in_product_name' );
    function remove_attribute_in_product_name( $boolean ) {
        return false;
    }

    The code goes in functions.php for your child theme.

    Some styling changes may be necessary.

    Sorry, not tested in your install.

    HI @travelbaba

    Thanks for reaching out!

    As mentioned by Lorro that there was no attachment in your message here.

    Can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?

    If you don’t already have a screenshot service installed, you can try https://snipboard.io or http://skitch.com/. You can share the direct link to the image as a response to this topic.

    Additionally, I’d like to understand your site properly, please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show all Variations as list in order under product title’ is closed to new replies.