Loading...

Change language variables on the checkout page for your BigCommerce template

Daniel C. Published on 26 September, 2011

Most of the labels in the BigCommerce templates are controlled by language variables. It is known that BC does not grant access to the PHP code so, in order to change some words you have to replace the variable itself. This is not recommended therefore the best solution is to use some JavaScript in order to change the labels. Here are some examples of changing the text on the Checkout page.

Changing the "How Would You Like to Pay?" text:

<script type="text/javascript">
$(document).ready(function() {

$('#payment_options h3').html("Your text here");
});
</script>



Changing the "Order Instructions/Comments (Optional)" text:

<script type="text/javascript">
$(document).ready(function() {

$('.CheckoutOrderComments h3').html("Your text here"); }); </script>



Changing the "Terms And Conditions" text:

<script type="text/javascript">
$(document).ready(function() {

$('.CheckoutHideOrderTermsAndConditions h3').html("Your text here"); }); </script>



Those can be inserted in the ExpressCheckoutConfirmation.html template file at the end of the file.

Daniel C. Published on 26 September, 2011