How to change or translate the text in your Shopify product tables
The default language of our Barn2 Product Table Shopify app is English. This means that the wording on your product tables, such as "Add to cart" and "No products found.", appears in English unless you change it.
You can change this text and translate it into any language on the Text & Translations page.
Changing or translating the text
- If your store sells in more than one language, make sure you've added each language in your Shopify settings first:
- Go to Settings → Languages.
- Click 'Add language'.
- Add and publish as many languages as you need.
- Go to Barn2 Product Table → Text & Translations.
- Select a language from the Language dropdown. It lists the languages that are published on your store.
- The table lists all the text that the app displays on your product tables. Enter your own wording next to any of the original text. If you leave a field blank, then customers see the wording from your store's main language instead.
- Click 'Save'.
Customers see the text for the language they're browsing your store in. You can use the same page to change the English wording, for example to replace "Add to cart" with "Buy".
Text you can change
- Add to cart - There are two versions of this. The first is the button on each product row. The second is the button that adds all the selected products to the cart, when a table uses checkboxes.
- Add 1 item for {total} and Add {items} items for {total} - The wording on the multi add to cart button once the customer has ticked one or more products.
- Read details - The button in the Button column.
- Read more - The button that replaces the add to cart button for products with several variants, when you set the table's Variants option to 'Read More button linking to the product page'.
- Added to your cart., View cart and Couldn't add to your cart. Try again. - The messages that appear when a customer adds products to the cart.
- No products found. and No products match your search. - The messages that appear when a table is empty, or when a search or filter has no results.
- Show and per page - The words before and after the products per page dropdown, as in "Show 15 per page".
- Showing and of - The words in the product count, as in "Showing 1-15 of 40".
Using placeholders
Some of the text contains placeholders in curly brackets. The app replaces these with the real figures when it displays the text, so make sure you include them in your own wording:
- {items} - The number of products the customer has ticked.
- {total} - The total price of the ticked products.
- {total_rounded} - The same total, rounded to a whole number.
For example, you could change "Add {items} items for {total}" to "Buy {items} products ({total})".
Column names and filter labels
The Text & Translations page doesn't include the column names and filter labels. You can change these for each table when you edit the table, using the 'Column name' and 'Display name' fields.
Translating your product data
The product tables show your product names, descriptions, collections and other product data in the language that the customer is browsing your store in. To translate this information, use Shopify Translate & Adapt or another Shopify translation app, in the same way as you would for the rest of your store. You don't need to do anything in our app.