Home Forums WoodMart support forum Right filter to change the “You may also like…” Heading in Product page

Right filter to change the “You may also like…” Heading in Product page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #639805

    chefnelone
    Participant

    Hi there,

    I need to change the “You may also like…” Heading in Product page: https://www.pakot.com/en/product/hippie-rainbow-gift-wrapping-paper-roll/
    I found this code but not working. Can you tell me the filter name you used in your Theme?
    Regards,
    Walter

    add_filter( 'woocommerce_product_upsells_products_heading', 'bbloomer_translate_may_also_like' );
      
    function bbloomer_translate_may_also_like() {
       return 'Customers also purchased...';
    }
    #640072

    Hung Pham
    Keymaster

    Hi chefnelone,

    Thanks for reaching to us and appreciate your patience.

    + In order to change / translate words. Please make sure you synced the strings first before changing / translating WooCommerce, WoodMart Core plugins and WoodMart theme. You can refer to article

    https://xtemos.com/docs-topic/theme-translation/
    https://xtemos.com/docs-topic/how-to-make-woodmart-multilingual-with-wpml/

    + You are also need to select the language for the backend and theme settings for admin from the admin user profile, please edit the user’s profile and then select the language for that user it will show the same on the backend.

    + Some strings related to Wishlist / Compare / Login & Register page, you can change in Theme Settings > Shop or Theme Settings > My account https://prnt.sc/W8Tt95stG3YC

    Regards,

    #640133

    chefnelone
    Participant

    Hi there,

    I follow all the tips of your answer. But still not working. From my point of view this is not related to “translations” (I use wpml). Problem is the name of the filter ‘woocommerce_product_upsells_products_heading’. It seems to me that your theme uses other name for this filter.
    Can you please try this code in your end and let me know if it works for you?
    Keep in mind that this code changes the ‘upsells’ products (not the ‘related’ products).

    add_filter( 'woocommerce_product_upsells_products_heading', 'bbloomer_translate_may_also_like' );
      
    function bbloomer_translate_may_also_like() {
       return 'Customers also purchased...';
    }

    Regards,
    Walter.

    • This reply was modified 8 hours, 2 minutes ago by chefnelone.
    • This reply was modified 8 hours, 1 minute ago by chefnelone.
Viewing 3 posts - 1 through 3 (of 3 total)