Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Auror

    (@auror)

    Wow, you were completely right. It worked. I deactivated all plugins, and it worked. I then re-activated three or four at a time to narrow down the culprit. It was a plugin called Show Hide Author. I’ll try and contact the author of that plugin. Many thanks!

    Thread Starter Auror

    (@auror)

    Hi again! It seems to me a bit weird that authors will show in the default language regardless of whether they have posts, but only show in other languages if they do. So I poked around and came up with the following edits to address this. It seems to be working fine, so I thought I’d share in case there are more people interested. Please do let me know if I got something wrong.

    in frontend/frontendlinks.php, look for:

    
    // Other archives
    			elseif ( is_archive() ) {
    

    replace with:

    
    // Author archive
    			elseif (is_author() ) {
    				$url = $this->get_archive_url( $language );
    			}
    
    			// Other archives
    			elseif ( is_archive() && ! is_author() ) {
    
    Thread Starter Auror

    (@auror)

    Thanks for your prompt answer. I see! Would you be so kind as to point me to which parts of the code I should edit to change this? Again, much appreciated.

    Auror

    (@auror)

    Did you include the language switcher in the menu for both languages? The switcher is a menu item.

    Thread Starter Auror

    (@auror)

    I just figured it out. After the first try with this plugin, I had updated my theme and the newer version had a shopping cart menu item embedded in the code. Really embarrassed for this. Sorry for the confusion, Jeremiah!

    Thread Starter Auror

    (@auror)

    No, really, Jeremiah, I can’t thank enough for developing this and caring so much about support.

    Oh, another update: I have two shopping cart menu items (not icons) again. The one in Portuguese I’m able to remove if I disable the plugin. The order one seems stubborn. (The address, again: https://www.ateliechrislima.com.br)

    Thread Starter Auror

    (@auror)

    Thanks a bunch, Ulrich! And thanks and sorry for troubling you, Jeremiah.

    I tried reinstalling the plugin – and this is incredibly weird –, but until five minutes ago the menu had two shopping car items, even though I only had one installed (obviously).

    So, I had a look at the code and it seemed to me it made some additions to the WooCommerce plugin backbone. I had a hunch somehow this wasn’t reverting itself even when I removed the Shopping Cart plugin.

    I then deactivated WooCommerce and again removed the Shopping Cart plugin. This did eliminate shopping car menu item and I was able to reinstalled it and only get one shopping car item on the menu. But – as if all of that wasn’t odd enough – two shopping car icons show up!

    I had a look at the code again and reinstalled a clean (ie not modified for translation purposes) copy of the plugin, to no luck. The only thing that served as a half solution was manually disabling the shopping car icon on admin panel. After that, it showed up as one item at last.

    Anyway, I’m just an adventurer here and I’m definitely not knowledgeable on WordPress, so I can’t offer any explanation, but I thought reporting what happened might help if this situation comes up again.

    Again, many thanks, Jeremiah!

    Thread Starter Auror

    (@auror)

    That’s it.

    Thread Starter Auror

    (@auror)

    If I may, this does not seem to be a problem in translation. I just deleted the plugin and created a new menu with a new name and different content, and the shopping cart menu item still shows up. It’s currently like that, if you wanna check.

    Thread Starter Auror

    (@auror)

    It did show up in English (“item”, “items”, “View your shopping cart”). I didn’t revert the language adjustments to the code, though. I don’t understand how it still shows up in English.

    Thread Starter Auror

    (@auror)

    No, thanks you Jeremiah for such a blazing fast answer.

    Now, this is embarrassing, I forgot the address! https://www.ateliechrislima.com.br

    So, after I posted this I installed another WooCommerce plugin (I had only WooCommerce and your plugin before; except, of course, for the “stock” plugins) and I noticed the shopping cart showed up on the menu.

    I was about to come back here and update the topic as resolved, but before that I tried to make a tiny adjustment to the plugin, changing the code in order to adapt it to Brazilian Portuguese. I made changes to lines 131 and 132, as pasted below. The shopping cart menu did not, however, update to my changes: it still shows “1 item”, “2 items” and “View your shopping cart”.

    So, I’m confused. Maybe I did do something wrong in the first place?

    $viewing_cart = __('Ver seu carrinho', 'woothemes');
    	$cart_url = $woocommerce->cart->get_cart_url();
    	$cart_contents = sprintf(_n('%d produto', '%d produtos', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);

    I’m briefly changing the website’s language to English so you can have a look if you want to.

    Oh, and I did try setting both menus, but at the time it had no effect.

    Thanks again!

Viewing 11 replies - 1 through 11 (of 11 total)