• Resolved mikepalmer

    (@mikepalmer)


    Hi,

    Is it possible to change all references to “Cart”, to read “Basket” instead? I have worked how to change the page title and menu item to “Cart” by using a different page for the cart, but I would be left with the text “You do not have anything in your cart yet!” and possibly other messages. How would I change that to “You do not have anything in your basket yet!”

    Thanks.

    All the best, Mike.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WP Sunshine

    (@wpsunshine)

    Try this article on how to customize text: https://www.sunshinephotocart.com/docs/customize-text-in-sunshine/

    Thread Starter mikepalmer

    (@mikepalmer)

    Hi @wpsunshine

    That certainly for the specific example that I mentioned in my post. However, there are other examples where it doesn’t work. If I add an item to the cart (basket) then I get the message: “Item added to cart! View cart or Return to Latest Images”.

    The second “cart” in the message is actually a link, so the replace text does not work.

    All the best, Mike.

    Thread Starter mikepalmer

    (@mikepalmer)

    Also, not sure why you have marked it as resolved?

    Plugin Author WP Sunshine

    (@wpsunshine)

    It is resolved because you can do everything you want from the provided article. You must include the full, original text string though which can be cumbersome I will admit, especially in the example you provided with the more complicated text.

    Using the Say What? plugin, I was able to do what you wanted:

    Admin: https://share.getcloudapp.com/jkuXxyDP
    Frontend: https://share.getcloudapp.com/jkuXxyYP

    The original string you want to start with is:

    Item added to cart! <a href="%s" target="_top" rel="noopener">View cart</a> or <a href="%s">Return to %s</a>

    Then copy this same string and replace cart with basket.

    • This reply was modified 2 years, 7 months ago by WP Sunshine. Reason: Formatting
    Thread Starter mikepalmer

    (@mikepalmer)

    Thank you.

    I am guessing that you knew the original string because you developed the code. I don’t think its feasible for me to search all the php files for everywhere cart appears.

    Plugin Author WP Sunshine

    (@wpsunshine)

    As I mentioned, that one in particular was more cumbersome to figure out. Let me know if there is anything else I can help with.

    Thread Starter mikepalmer

    (@mikepalmer)

    @wpsunshine thank you.

    I have worked out how to derive each string from the Chrome Inspect tool, with a bit of guesswork as to what the variables are. I have tested it successfully on a staging site.

    All the best, Mike.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Cart to Basket’ is closed to new replies.