• sammiefields2512gmailcom

    (@sammiefields2512gmailcom)


    Hi

    I’d like to change the “You may be interested in…” on the cart page when you add cross-sells on Woocommerce.

    I’ve tried changing the text in the cross-sells.php file in the woocommerce templates folder, but I end up getting problems on the cart page.

    Any ideas?
    Thanks,

    Sammie

Viewing 1 replies (of 1 total)
  • Thread Starter sammiefields2512gmailcom

    (@sammiefields2512gmailcom)

    Ah! OK I just worked it out if anyone is interested.

    – open up the cross-sells.php file in your site’s child theme woocommerce folder.
    – find: “<h2><?php _e( ‘You may be interested in…’, ‘woocommerce’ ) ?></h2>”
    – replace with “<h2>Your New Text Here</h2>”

    What I was doing wrong was this:

    – find “<h2><?php _e( ‘You may be interested in…’, ‘woocommerce’ ) ?></h2>”
    – replace with <h2><?php _e( ‘Your New Text Here;’, ‘woocommerce’ ) ?></h2>

    This method doesn’t work, and not being a coder, I don’t know what the significance of the “<?php _e() ?>” part is. Quick google search tells me it’s something to do with translations, which I don’t need.

Viewing 1 replies (of 1 total)
  • The topic ‘Change cart cross-sell text “you may be interested in…”’ is closed to new replies.