• Resolved zamanhasanov

    (@zamanhasanov)


    Hello. Standart Woocommerce plugin showing product variants in front of product title in the cart and checkout page. Example: Tshirt – Red, XL. I want showing product variants bottom product title. Example:
    TShirt
    Color: Red, Size: XL

    Is this possible? I want search in google and try a few code function.php but this code not working for me. I use flatsome thema. Any one have solution for this problem?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @zamanhasanov,

    Thanks for reaching out to us!

    On https://stackoverflow.com/a/44859111, I found that following code snippet which I tested successfully when using the WooCommerce plugin and the Storefront theme:

    /* Remove product attributes from product title. */
    add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_false' );

    You can add this code snippet to your site using the Code Snippets plugin.

    I hope this helps. If it does not help, I suggest switching the theme temporarily to see if the code snippet is not working due to the theme. If that’s the case, you’d have to contact the theme developer.

    Thread Starter zamanhasanov

    (@zamanhasanov)

    This working perfect. Thank you very much

    Plugin Contributor Niels Lange

    (@nielslange)

    Hello @zamanhasanov,

    I’m glad to hear that!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Product Variants from Product Title’ is closed to new replies.