Overriding checkout labels & translations

If you want to override any of the words you see in the checkout, you can do so using our Checkout JavaScript API.


How to override languages

Once you've installed your general installation code (available here: https://giftup.app/installation), you just add an extra line of code to override translations. You'll need to specify which language, and then an object representing the key and value you would like to change. I suggest contacting us for help with using this feature.

giftup("language", "en", {
   "buy": "Select",
   "label": {
      "total": "Total amount"
   }
});

Please contact us to discuss all of the keys that are available to use.


Full example

Here's a full example of how to change some phrases in the checkout.

<script type="text/javascript"> 
(function(g, i, f, t, u, p, s) {
    g[u] = g[u] || function() {
        (g[u].q = g[u].q || []).push(arguments)
    };
    p = i.createElement(f);
    p.async = 1;
    p.src = t;
    s = i.getElementsByTagName(f)[0];
    s.parentNode.insertBefore(p, s);
})(window, document, 'script', 'https://cdn.giftup.app/dist/gift-up.js', 'giftup');

// Overwrite some translations: 
giftup("language", "en", {
   "buy": "Select",
   "label": {
      "total": "Total amount"
   }
});
</script>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us