Why does my cart page not maintain language settings?

Why does my cart page not maintain language settings?

runtimeninja
Visitor
1 0 1

website is english default. When I am in Arabic mode and I am directly clicking cart button and click on go to cart its not redirecting me to Arabic page. Its redirect me to Engliah page. But it should redirect me into Arabic. Can I have a solution for this? 

I am using Electro Theme Version 11

Reply 1 (1)

MooseDesk
Shopify Partner
491 67 150

Hi @runtimeninja ,

 

Thanks for reaching out to the community with your question. This is MooseDesk - An ideal Live Chat and Helpdesk Solution that aligns perfectly with your business.

 

Regarding to the issue you're experiencing with the cart page not redirecting to the Arabic version of your website can typically be resolved by ensuring that your theme and translations are properly configured to handle multiple languages. Since you are using the Electro Theme Version 11, here are a few steps you can take to address this issue:

 

  1. Check Language Settings:

    • Ensure that your Shopify store's language settings are properly configured. Go to Settings > Languages and verify that Arabic is added as a language option.
  2. Theme Customization:

    • Navigate to Online Store > Themes > Customize and check if there are any settings specific to language redirects within your theme. Some themes provide built-in options to handle language-specific redirects.
  3. Custom Code Adjustments:

    • If you are comfortable with coding, you can add custom JavaScript to handle the redirection. Here's a basic example of a custom JavaScript snippet that can be added to your theme

document.querySelector('.cart-button').addEventListener('click', function() {
if (window.location.href.includes('/ar')) {
window.location.href = '/cart?lang=ar';
} else {
window.location.href = '/cart';
}
});

 

Moreover, if you are looking for FREE Helpdesk App to streamline your customer support, I recommend trying MooseDesk. It is an all-in-one customer support solution: Live Chat, Ticket Helpdesk, WhatsApp button, FAQ page, FAQ widget, Order tracking widget to help you  deliver rapid resolutions across multiple channels. Additionally, you can create FAQ pages with appealing templates and customize a self-service widget to quickly resolve common customer issues.

 

MooseDesk_0-1721133746872.png

 

So this is my answer to your question. If this is helpful for you, please let me know by giving MooseDesk a 'LIKE'. If your question is answered please mark this as 'SOLUTION’.

 

 Once again, keep up the fantastic work, and I wish you the best of luck in the future! 

Was your question answered? Giving MooseDesk's reply a Like or marking it as an Accepted Solution!


MooseDesk - #All-in-one Customer Support and Helpdesk Solution for Shopify Merchants

Install now. Be our early bird and get all features free forever.