Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1248832
    compania123
    Participant

    Hi there I want to ask you where to change a text which appears after deleting all the items from the cart or when it is empty. Here is the link. http://palimeovocie.sk/kosik/

    Thank you.
    Michael

    #1248851
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! You can locate it under (“x/woocommerce/cart/cart-empty.php”).

    Hope that helps.

    #1249089
    compania123
    Participant

    Really sorry but I ‘ cant find it. I was looking in editor under appearence and also editor under plugin menu. Can you be more specific?

    Thanks.

    Michael

    #1249522
    Friech
    Moderator

    Hi There,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

    Then on your child theme navigate to this directory:
    \wp-content\themes\x-child\woocommerce\cart\

    The woocommerce and cart folder doesn’t exist so you need to create them.

    Then on the cart folder create a file named cart-empty.php and paste the code below on it.

    <?php
    
    // =============================================================================
    // WOOCOMMERCE/CART/CART-EMPTY.PHP
    // -----------------------------------------------------------------------------
    // @version 2.0.0
    // =============================================================================
    
    if ( ! defined( 'ABSPATH' ) ) {
      exit; // Exit if accessed directly
    }
    
    wc_print_notices();
    
    ?>
    
    <div class="x-cart-empty">
    
      <p class="cart-empty">
        <?php _e( 'Lorem ipsum dolor.', '__x__' ) ?>
      </p>
    
      <?php do_action( 'woocommerce_cart_is_empty' ); ?>
    
      <p class="return-to-shop">
        <a class="button wc-backward" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
          <?php _e( 'Return To Shop', '__x__' ) ?>
        </a>
      </p>
    
    </div>

    See the Lorem ipsum dolor. string, replace that with your own dialog.

    You need to do this via FTP, not on the admin dashboard.

    Hope it helps, Cheers!

    #1250062
    compania123
    Participant

    Hi there,
    thank you very much for your help. It works perfectly but there is an issue with letters like š, á, ť etc. What can we do?

    Thanks
    Michael

    #1250148
    Christian
    Moderator

    Can you give more details about that issue? Also give screenshots.

    Thanks.

    #1250504
    compania123
    Participant

    Sorry for that. As you can see http://palimeovocie.sk/kosik/ special signs (á, š, ť) are replaced by ? so that’s the problem.

    Thank you.

    Michael

    #1251032
    Rue Nel
    Moderator

    Hello There,

    What should be the translated texts for the Empty Cart and Return to Shop text? Could you please post in your next reply the translation?

    Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1251379
    compania123
    Participant
    This reply has been marked as private.
    #1251631
    Rad
    Moderator

    Hi there,

    Is it the admin login credentials or FTP credentials? It’s not working with FTP. Please provide the correct FTP login credentials.

    Thanks!

    #1253384
    compania123
    Participant
    This reply has been marked as private.
    #1253845
    Rad
    Moderator

    Hi there,

    Looks like we’re blocked from accessing your FTP. Would you mind removing the restriction while we’re testing?

    Response: 426 ERR: You can not connect from this IP

    We’re from different countries, whitelisting dynamic IP will just make it work for one person for one session.

    Thanks!

    #1254285
    compania123
    Participant

    Of course yes, do whatever you need.

    Thanks
    Michael

    #1254289
    Christopher
    Moderator

    Hi there,

    Still get the same error.

    Please add following code under Customize -> Custom -> Global JavaScript :

    jQuery(".cart-empty").html(" Váš košík je prázdny.");

    Hope it helps.

    #1254370
    compania123
    Participant

    Great thanks a lot. It helped but there’s still text in the button which should be Návrat do obchodu. Now it says N?avrat do obchodu.

    Thank you for help.

    Michael

  • <script> jQuery(function($){ $("#no-reply-1248832 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>