• Resolved fantasyprints

    (@fantasyprints)


    hi There

    I once had this problem in past and am not sure how I cured it. At moment. On dropdowns it just shows Parent Name rather than variation description in this case on the link supplied

    1 x A5 350gsm Silk
    1 x A5 350gsm Silk
    1 x A5 350gsm Silk

    Should be something like

    1 x A5 350gsm Silk x 12
    1 x A5 350gsm Silk x 24
    1 x A5 350gsm Silk x 50

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support miemie

    (@miemie)

    Hi @fantasyprints,

    In some cases, WooCommerce doesn’t show the attributes in the product name https://www.screencast.com/t/iU3bq77n

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

    add_filter( ‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’, 99 );

    Regards,

    Egl

    (@egletiere)

    Hi!

    I had the same issue and the snippet fixed it. Thanks!

    Plugin Support miemie

    (@miemie)

    Dear @egletiere,

    We’re glad that our snippet can help you fix your issue

    Regards,

    Thread Starter fantasyprints

    (@fantasyprints)

    Hi There

    Found with XStore Theme the snippet fix didn’t work I asked the Theme builder and they came back with below wonder if any suggestions.

    We tried to find the solution that could allow us to add it from snippets but with no success.
    such actions like (‘wooco_before_components’, ‘wooco_before_wrap’) don’t work so it is better to ask plugin’s author why it is so.
    Not working example (but it should):

    add_action(‘wooco_before_wrap’, function() {
    add_filter(‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’);
    }, 999);`

    For now, we added a filter directly in the plugins/wpc-composite-products-premium/wpc-composite-products.php ( https://prnt.sc/CnkbFhDLIHzN ) but it will be lost once you update that plugin so keep that line for yourself
    add_filter(‘woocommerce_product_variation_title_include_attributes’, ‘__return_true’);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Description Missing for Variations’ is closed to new replies.