How can I change Bookthatapp's time and date language on a cart page?

How can I change Bookthatapp's time and date language on a cart page?

mari123
Tourist
15 0 1

Hi, 

Does anyone know how to change Bookthatapp's time, date and return texts into a different language on the Shopify's cart page? Translation is not working and I didn't manage to change the cart.liquid code by myself. Please see the screenshot below:

Näyttökuva 2021-3-18 kello 14.02.29.png

BTA:s support is not helpful at all – would highly appreciate help here, thanks!

Replies 2 (2)

Gavinator
Shopify Partner
1318 15 124

Hi Mari,

Sorry you haven't found our support helpful. As we mentioned in the support ticket, to change the texts in the cart you can use the liquid replace function. These changes are made in your theme's cart template.

Here is a step by step guide:

1. Open the themes section in Shopify Admin by choosing Themes menu item:

 Gavinator_0-1616109333055.png

 

 

2. Choose Edit code in the Actions drop down menu for your live theme:

Gavinator_1-1616109407771.png

3. Click on cart.liquid in the Templates folder:

Gavinator_2-1616109587550.png

 

4. On line 72 you will find a line of code that reads {{ p.first }}:

Gavinator_3-1616109656683.png

5. Replace that line with {{ p.first | replace: 'Date', 'Päivämäärä' | replace: 'Return', 'Palata' | replace: 'Time', 'Aika' }}:

Gavinator_4-1616110144608.png

6. Save the template.

You will now see the translations in the cart page.

Gavinator_0-1616110560483.png

 

Thanks, Gavin.

 

 

www.bookthatapp.com
mari123
Tourist
15 0 1

Thank you so much Gavin! Worked like a charm!!! Thank you again and have a great day!