Woocommerce Filter Hook: the_title issues

This topic has 8 replies, 2 voices, and was last updated 10 hours, 47 minutes ago ago by Jack Richardson

  • Avatar: fnhc
    fnhc
    Participant
    July 2, 2024 at 19:21

    I reported an issue with a Products By Attributes & Variations for WooCommerce Plugin as the product is not showing the full title in the categories page.

    The plugin developer came back and stated the below. Can you please help?

    We debugged your reported issue and we found below mentioned filter hook is not triggered on your site.

    We are using woocommerce default hooks and filters. The mentioned filter hook is not triggered on your theme.

    Please contact your theme support team and ask which filter they are using in place of the mentioned filter hook.

    Filter hook: the_title

    Thank you

    Content is visible for topic creator and
    support staff only.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 3, 2024 at 07:50

    Dear @fnhc,

    We hope this message finds you well. We are reaching out to request additional details regarding the specific outcomes you are expecting. Could you kindly provide an example of the non-functioning element alongside what you require? This will help us understand your needs better and assist you more effectively.

    Furthermore, based on your initial inquiry, it appears you might be looking to incorporate product attributes into the product title. We suggest considering the solution we previously provided, which has been effective for similar queries from our customers. You can review the details at the following link: https://www.8theme.com/topic/i-mistakenly-closed-the-topic-i-still-have-some-concerns-related-to-my-last-topic/#post-359923.

    Should this solution not meet your requirements, please provide us with more detailed information. Additionally, for further technical assistance, kindly attach the correct WP admin and FTP access credentials in the private area provided.

    Thank you for your cooperation. We look forward to your prompt response.

    Best Regards,
    Jack Richardson
    8Theme’s Team

    Avatar: fnhc
    fnhc
    Participant
    July 3, 2024 at 09:51

    HI there,

    You’re misunderstanding – we are not only trying to add the attribute to the titles. The main issue here is that on the category page, for some reason some of the names don’t show the full title. Some show as “Adjustable Anti Pull Dog Harness” and others as “Adjustable Anti Pull Dog Harne” even though it’s the same product.

    I have attached admin and FTP access in private area.

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 3, 2024 at 14:59

    Dear @fnhc,

    I hope this message finds you well. We have observed that updates made to files on your server do not appear to reflect on the frontend. This suggests that there may be an active CDN cache causing this issue.

    To assist us in diagnosing and resolving the issue, could you please carry out the following steps:

    1. Test your products’ titles using the default Storefront theme. Since you are utilizing a separate plugin for handling variations in Variable products, it is possible that the issue may persist with default theme too.

    2. If the issue is not present when using the default theme but occurs with the XStore theme, we kindly ask you to either temporarily disable the CDN on your website or provide instructions on how to clear the CDN cache manually.

    Your cooperation is greatly appreciated, and we look forward to resolving this matter efficiently.

    Best regards,
    Jack Richardson
    8Theme’s Team

    Avatar: fnhc
    fnhc
    Participant
    July 3, 2024 at 16:13

    Hello

    CDN only applies for static files. I see the only modified file on the server is:

    ./wp-content/themes/xstore/woocommerce/content-product.php

    This would require opcache to be cleared which is done but the problem persists.

    I have provided instructions in the private content area on where to clear this yourself.

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 4, 2024 at 08:53

    Dear @fnhc,

    We have reviewed the display of product information using the default WooCommerce Storefront theme. You can view the current display at the following link: https://prnt.sc/ffdeabF42FwL.

    To enhance the presentation and address issues with product title characters, we have implemented a code snippet in your child-theme/functions.php. This adjustment ensures that product titles now include variation attributes and corrects any incorrect characters previously observed. Below is the code snippet we added:

    add_action( 'after_setup_theme', function() {
        add_filter( 'woocommerce_product_variation_title_include_attributes', '__return_true' );
    }, 999 );

    You can see the result of these changes here: https://prnt.sc/CZEPTcYDK_jh.

    Thank you for your attention to this matter. Should you have any further questions or require additional assistance, please do not hesitate to contact us.

    Best Regards,
    Jack Richardson
    The 8Theme Team

    Avatar: fnhc
    fnhc
    Participant
    July 4, 2024 at 11:56

    Hi there,

    Thank you this works, however it would be great to know why the name was showing incorrectly. I think that’s a bug that needs to be fixed rather than just patched?

    Thank you

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 4, 2024 at 12:45

    Dear @fnhc,

    We are pleased to inform you that we have devised a solution tailored to meet your requirements without causing any complications for either party. It appears that the issue may stem from the use of a third-party plugin on your end, which separates variable products by variations in the archives.

    Please be advised that we cannot guarantee full compatibility of our theme with all third-party plugins. In some instances, it may be necessary to customize the theme or plugin further to ensure they function seamlessly together. Regrettably, it is beyond the scope of our basic support to make the theme compatible with all existing plugins, and additional customization would be required.

    Thank you for your understanding.

    Best Regards,
    Jack Richardson
    8Theme’s Team

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.