MyAccount Page (When Logged Out) Foreign Language Issue on Toggler
-
Hello,
The My Account is having some issue displaying foreign language on the toggler (right side) portion of the page when it is logged out.
So if it is “I’m a new customer”, it will display this below it:
Praesent pellentesque sodales ante, et molestie nisi mattis non. Suspendisse ullamcorper aliquam pharetra. Maecenas interdum consequat feugiat. Aliquam erat volutpat.
If it is “I’m a returning customer”, it will display this below it:
Praesent pellentesque sodales ante, et molestie nisi mattis non. Suspendisse ullamcorper aliquam pharetra. Maecenas interdum consequat feugiat. Aliquam erat volutpat.
This is the only foreign language on this page or all other woocommerce pages.
The form-login.php shows this toggler is controlled by this code below. So the text is called by
echo ‘<p>’. options::get_value( ‘general’ , ‘new_customer’ ) .'</p>’;
or
echo ‘<p>’. options::get_value( ‘general’ , ‘returning_customer’ ) .'</p>’;—————————————————————–
partial code form-login.php<div class=”five columns woo-myaccount”>
<div class=”myaccount-separator”>
<div class=”login-line”></div>
<div class=”login-or”>OR</div>
</div>
<ul class=”account-toggler”>
<li class=”account-toggle-register”>
<div class=”account-toggler-wrapper”>
<h3><?php _e( “I’m a new customer”, ‘woocommerce’ ); ?></h3>
<?php if(strlen(options::get_value( ‘general’ , ‘new_customer’ ))) { echo ‘<p>’. options::get_value( ‘general’ , ‘new_customer’ ) .'</p>’; } ?>
Register me
</div><li class=”account-toggle-login”>
<div class=”account-toggler-wrapper”>
<h3><?php _e( “I’m a returning customer”, ‘woocommerce’ ); ?></h3>
<?php if(strlen(options::get_value( ‘general’ , ‘returning_customer’ ))) { echo ‘<p>’. options::get_value( ‘general’ , ‘returning_customer’ ) .'</p>’; } ?>
Sign me in
</div></div>
—————————————————————–
I noticed the my account page url also has a suffix to it, looks like something related to localization:
https://mysite.com/my-account/#sthash.4TyyMByt.dpbsCould anyone tell me why it is display foreign language for that part and how do I fix it? This is the only place of my site that is not showing correctly.
Thanks for your help!!
- The topic ‘MyAccount Page (When Logged Out) Foreign Language Issue on Toggler’ is closed to new replies.