WooCommerce - excelling eCommerce
My account not showing up on translated page (2 posts)

  1. vanBersie
    Posted 11 months ago #

    Hi there! Following problem:
    I'm using the flatsome theme in combination with wpml and woocommerce (multilingual). My site is bilingual, every string is translated and the menus are synchronized. On both my_account-pages I use following shortcode: [woocommerce_my_account]

    But only the english page displays the left column with the avatar and the menu and I don't know why. This is the code that doesn't run in the page_my_account.php when selected the other language:

    <?php if(is_user_logged_in()){?> 
    <div class="row collapse vertical-tabs">
    <div class="large-3 columns">
    	<?php if(is_user_logged_in()){?>
    		<div class="account-user hide-for-small">
    			 	$current_user = wp_get_current_user();
    			 	$user_id = $current_user->ID;
    				echo get_avatar( $user_id, 60 );
    	    <span class="user-name"><?php echo $current_user->display_name?> <em><?php echo '#'.$user_id;?></em></span>
    	   	<span class="logout-link"><a href="<?php echo wp_logout_url(); ?>"><?php _e('Logout','woocommerce'); ?></a></span>		 
    	<?php } ?>
    	<div class="account-nav">
    		 <?php if ( has_nav_menu( 'my_account' ) ) : ?>
    						'theme_location' => 'my_account',
    						'menu_class'      => 'tabs-nav',
    						'depth' => 0,
    		 <?php else: ?>
    	        Define your 'My Account' navigation <b>Apperance > Menus</b>
    	    <?php endif; ?>
    	</div><!-- .account-nav -->
    </div><!-- .large-3 -->

    But I don't see what is causing the error... Any ideas?


  2. vanBersie
    Posted 11 months ago #

    I made some progress: I had to choose another page template. Now the avatar is showing but the my account navigation is still missing...


You must log in to post.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic