language_override

Description

A language override allows you to customize an individual string output by FoxyCart. You can view all the language strings via the language_string Property Helper and use the key values there for the code value of a language override.

Interact with this resource

To interact with this resource and see it in the context of the API, you can utilise Postman or your Terminal/Console to perform requests. If you have a Foxy store, you can also use the API browser in the admin to interact with resources connected to your store.

Actions

GET
View a language_override
PATCH
Update a language_override (send only the properties you want to modify)
PUT
Replace a language_override (send the entire representation)
DELETE
Delete a language_override
HEAD
Get just the header response
OPTIONS
Get a response explaining which HTTP methods are supported

Properties

Property Description Type Constraints
code The code for this language string. This is the same code you will see in the FC.json.config.lang array. String Required. language_strings
gateway For the language strings specific to a payment gateway, enter the gateway key here. String Required if referencing the gateways array in language_strings
custom_value Your custom string for this language code. String Required. 800 characters or less.
date_created The date this resource was created. Date Read only
date_modified The date this resource was last modified. Date Read only

Example Representation

{
    "_links": {
        "curies": [
            {
                "name": "fx",
                "href": "https://api.foxycart.com/rels/{rel}",
                "templated": true
            }
        ],
        "self": {
            "href": "https://api-sandbox.foxycart.com/language_overrides/2602",
            "title": "This Language Override"
        },
        "fx:language_overrides": {
            "href": "https://api-sandbox.foxycart.com/template_sets/6/language_overrides",
            "title": "Language Overrides for this template set"
        },
        "fx:store": {
            "href": "https://api-sandbox.foxycart.com/stores/8",
            "title": "This Store"
        },
        "fx:template_set": {
            "href": "https://api-sandbox.foxycart.com/template_sets/6",
            "title": "This Template Set"
        }
    },
    "code": "cart_caption",
    "gateway": "",
    "custom_value": "The Cart of Wonder",
    "date_created": "2015-05-21T14:46:15-0700",
    "date_modified": "2015-05-21T14:46:15-0700"
}
<?xml version="1.0" encoding="UTF-8"?>
<resource href="https://api-sandbox.foxycart.com/language_overrides/2602" rel="https://api.foxycart.com/rels/language_override">
  <link rel="self" href="https://api-sandbox.foxycart.com/language_overrides/2602" title="This Language Override"/>
  <link rel="https://api.foxycart.com/rels/language_overrides" href="https://api-sandbox.foxycart.com/template_sets/6/language_overrides" title="Language Overrides for this template set"/>
  <link rel="https://api.foxycart.com/rels/store" href="https://api-sandbox.foxycart.com/stores/8" title="This Store"/>
  <link rel="https://api.foxycart.com/rels/template_set" href="https://api-sandbox.foxycart.com/template_sets/6" title="This Template Set"/>
  <code>cart_caption</code>
  <gateway></gateway>
  <custom_value>The Cart of Wonder</custom_value>
  <date_created>2015-05-21T14:46:15-0700</date_created>
  <date_modified>2015-05-21T14:46:15-0700</date_modified>
</resource>
{
    "class": [
        "language_override"
    ],
    "properties": {
        "code": "cart_caption",
        "gateway": "",
        "custom_value": "The Cart of Wonder",
        "date_created": "2015-05-21T14:46:15-0700",
        "date_modified": "2015-05-21T14:46:15-0700"
    },
    "links": [
        {
            "rel": [
                "self"
            ],
            "href": "https://api-sandbox.foxycart.com/language_overrides/2602"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/language_overrides"
            ],
            "href": "https://api-sandbox.foxycart.com/template_sets/6/language_overrides"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/store"
            ],
            "href": "https://api-sandbox.foxycart.com/stores/8"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/template_set"
            ],
            "href": "https://api-sandbox.foxycart.com/template_sets/6"
        }
    ]
}

Zoomable Resources

This resource has no linked resources which can be "zoomed" in on, filtered and embedded within this resource.