Hello,
Please, I have seen that after adding a product to the cart there is a pop up (or notification panel) that tells that this item has been added to the cart and there are two buttons, “continue shopping” and “Checkout”.
Well I would like to change the text of the checkout button so it could be read “View cart content” instead.
I have tried to change the checkout text in Languages, but when changing this text it changes ALL the checkout texts in ALL Cs Cart, so this is not the way to do it.
So, Please, how could I change the Checkout text on the pop up or notification panel after adding to cart without changing and keeping all the other checkout texts ?
CHANGE THE TEXT TO A BUTTON IMAGE ?
I have seen in other threads that is possible to change or replace the text button for an image that contains the text you want and so you do not need to change the text inside Cs Cart. Is this the way to go and the best way to do it ?
Thanks very much for your help
Kindest regards
[quote name='SpaceRay' timestamp='1319791065' post='124759']
Hello,
Please, I have seen that after adding a product to the cart there is a pop up (or notification panel) that tells that this item has been added to the cart and there are two buttons, “continue shopping” and “Checkout”.
Well I would like to change the text of the checkout button so it could be read “View cart content” instead.
I have tried to change the checkout text in Languages, but when changing this text it changes ALL the checkout texts in ALL Cs Cart, so this is not the way to do it.
So, Please, how could I change the Checkout text on the pop up or notification panel after adding to cart without changing and keeping all the other checkout texts ?
CHANGE THE TEXT TO A BUTTON IMAGE ?
I have seen in other threads that is possible to change or replace the text button for an image that contains the text you want and so you do not need to change the text inside Cs Cart. Is this the way to go and the best way to do it ?
Thanks very much for your help
Kindest regards
[/quote]
The easiest way to do this is within the admin area. Go to Content/Languages then do a search for the word “checkout”. Scroll down until you see the word “checkout”. There you can change it to any words you want. Even add HTML to it to change the look if you like. The problem you face is that the button in the pop up window is the same as during checkout so you will complete what looks like a “loop” for customers. The button to checkout when viewing the cart will say the same thing so it will say “view cart” even to continue checkout. So some creative wording may be required for it to work in both places. Note, this can also be done in the admin using Design/Design Mode/Translation Mode. View storefront and it will allow you to change many things but you can visually see what you are about to change.
Create a new (unique) language variable like “view_cart_content” = “View cart content”.
Then go into the template buttons/checkout.tpl and change {$lang.checkout} to {$lang.view_cart_content}
The option to “redirect customer to cart content page” just doesn't work if you are logged in or have already started the checkout once. I therefore also wish to do the same as the original post - change the pop-up when adding to the cart to say “view cart” - but I also want this to always take you to the cart.
The same button used in both this ajax pop-up window and on the cart page, so changing the language in the button recommended by the last post also changes the language on the checkout page (so they are still the same text). I have therefore created a new button called view_cart.tpl and used the existing language $lang.view_cart. All I have to do now is change the pop-up to use this new button and take the user to checkout.cart instead of checkout.checkout. I cannot appear to find where the ajax window is defined to change the button and link. Any ideas where to find this?
[quote name='applied' timestamp='1321214010' post='125899']
The option to “redirect customer to cart content page” just doesn't work if you are logged in or have already started the checkout once. I therefore also wish to do the same as the original post - change the pop-up when adding to the cart to say “view cart” - but I also want this to always take you to the cart.
The same button used in both this ajax pop-up window and on the cart page, so changing the language in the button recommended by the last post also changes the language on the checkout page (so they are still the same text). I have therefore created a new button called view_cart.tpl and used the existing language $lang.view_cart. All I have to do now is change the pop-up to use this new button and take the user to checkout.cart instead of checkout.checkout. I cannot appear to find where the ajax window is defined to change the button and link. Any ideas where to find this?
[/quote]
If I understand correctly, you should be able to force customers to “view cart” in the Administration/Settings and check the box that says: “When the customer clicks on any Checkout button/link in the store, redirect to the Cart content page first”. I was under the impression that didn't work when logged in (the way you worded it) but it seems to work when I test it and it still takes me to the cart contents page. Or at least in 2.1.4 it does.
[quote name=‘IsItFast’ timestamp=‘1321241152’ post=‘125914’]
If I understand correctly, you should be able to force customers to “view cart” in the Administration/Settings and check the box that says: “When the customer clicks on any Checkout button/link in the store, redirect to the Cart content page first”. I was under the impression that didn’t work when logged in (the way you worded it) but it seems to work when I test it and it still takes me to the cart contents page. Or at least in 2.1.4 it does.
[/quote]
That is correct. I have the option to “view cart first” and on 2.2.2 it doesn’t work - if you are signed in or have already started the checkout process and gone back and added another product it takes you straight to the checkout stage you were at (and therefore you do not review the cart again). As you suggested it used to work, I have just upgraded a test site I have to 2.2.4 and it does appear to work on this site.
That therefore just leaves what the original poster wanted to do - have different button text for the pop-up when you add a product (so it is not the same text as the button on the cart which takes you to the checkout). I have still not found where the pop-up is defined.