Tagged: x
-
AuthorPosts
-
November 8, 2016 at 10:04 am #1248832
compania123ParticipantHi 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.
MichaelNovember 8, 2016 at 10:12 am #1248851
DarshanaModeratorHi there,
Thanks for writing in! You can locate it under (“x/woocommerce/cart/cart-empty.php”).
Hope that helps.
November 8, 2016 at 1:09 pm #1249089
compania123ParticipantReally 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
November 8, 2016 at 8:31 pm #1249522
FriechModeratorHi 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!
November 9, 2016 at 8:17 am #1250062
compania123ParticipantHi 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
MichaelNovember 9, 2016 at 9:12 am #1250148
ChristianModeratorCan you give more details about that issue? Also give screenshots.
Thanks.
November 9, 2016 at 1:17 pm #1250504
compania123ParticipantSorry for that. As you can see http://palimeovocie.sk/kosik/ special signs (á, š, ť) are replaced by ? so that’s the problem.
Thank you.
Michael
November 9, 2016 at 8:41 pm #1251032
Rue NelModeratorHello 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 PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
November 10, 2016 at 3:02 am #1251379
compania123ParticipantThis reply has been marked as private.November 10, 2016 at 7:30 am #1251631
RadModeratorHi there,
Is it the admin login credentials or FTP credentials? It’s not working with FTP. Please provide the correct FTP login credentials.
Thanks!
November 11, 2016 at 9:06 am #1253384
compania123ParticipantThis reply has been marked as private.November 11, 2016 at 5:15 pm #1253845
RadModeratorHi 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!
November 12, 2016 at 4:21 am #1254285
compania123ParticipantOf course yes, do whatever you need.
Thanks
MichaelNovember 12, 2016 at 4:43 am #1254289
ChristopherModeratorHi 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.
November 12, 2016 at 7:33 am #1254370
compania123ParticipantGreat 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
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1248832 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
