Hello Juanola,
The customization for your cart actually needs to happen in the View Cart button, not in your Add to Cart buttons. Fortunately that also means you only need to add all that custom code to each page once since you don't need to use the View Cart button more than once.
When you go through the help page for cart customization there are a few required lines which you will pretty much always have to use:
http://www.e-junkie.com/ej/help.custom-cart.htm
The top section of code mostly covers cosmetic settings like the size of or color of the cart, so you can ignore that. You will need to use the very first line given there, though:
function EJEJC_config() {
Then you will need to also use the very last lines given in that section, which specifically enable the text customization to follow, those are:
EJEJC_POSTCALL=true;
}
And then anything covered in the lower section will need to open up with
function EJEJC_shown() {
With those lines out of the way you can begin adding specific lines of text to customize. For example, the line "jQuery("#country1").attr("innerHTML", "Ship to Country");" controls what text is entered for the "Ship to Country" section of the cart.
Putting all that together to change "Ship to Country" to "Nave a Otro" (apologies if that's not the proper translation, I'm relying on Google) would look like this:
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#country1").attr("innerHTML", "Nave a Otro");
From here, you'll add in further lines to translate various bits of text in the cart. Every line you can change is covered on the help page, if it isn't there it cannot be changed.
Once you've added everything you wish to translate you close everything out with a final }
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#country1").attr("innerHTML", "Nave a Otro");
}
You can copy the above example into your View Cart button code directly before the line which reads //--> to get started, just add in further lines for custom text before that last } and they will also be included in how your cart appears.