Forum Replies Created

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

    (@daniel22222)

    If no one here knows, where else should I ask?

    Thread Starter daniel22222

    (@daniel22222)

    That seems to work, thank you very much for responding !!!

    Thread Starter daniel22222

    (@daniel22222)

    Yes I never solved the problem. I ended up just requiring them to receive a temporary password and they change the password if they want.

    Thread Starter daniel22222

    (@daniel22222)

    If I turn off the custom password module, the password that is automatically created and sent to the user works. After that you have to change your password to something you can remember. What in that module is causing the issue?

    @websherpa
    What have you been using for login options since disabling TML?

    Thread Starter daniel22222

    (@daniel22222)

    After more testing if I turned off all other plugins registration went smoothly. I was able to narrow down the problem plugin to the woocommerce plugin. Now I just need to figure out why it is causing issues with registration.

    Thread Starter daniel22222

    (@daniel22222)

    I have done a little more testing and when a user goes through the registration process it creates a password string in the users table. Like I mentioned above I try to login and it does not work. I then use forgot password, which send me an email with link to reset password and I reset the password to the same exact password as the original and when I go back to php table the password is different.

    password in php table after registration:
    $P$BF/gIt6dFfBBuNx6rP41Qv3i71TUie1

    password in php table after change password to same password:
    $P$BxpByDbNU3vr3sytTOcbzttp1tOodH1

    Do Theme my login and either woocommerce or wordpress use different encryption methods?

    May have found an even more proper way to do it:

    function wpa_change_my_basket_text( $translated_text, $text, $domain ){
        if( $domain == 'woothemes' && $translated_text == 'My Basket:' )
            $translated_text = 'My Cart:';
    
        return $translated_text;
    }
    add_filter( 'gettext', 'wpa_change_my_basket_text', 10, 3 );

    Your a genius, I am still new to wordpress and woocommerce so I am learning the ridiculous amount of functions that lie within. I did not realize that _e ran the text through some sort of translation process. I took that function out and put in the straight text “My Cart” and it worked like a charm.

    I do all my editing of functions in a child theme, so I am ok with changing the functions, just gotta figure out how they work first haha. Here are the 2 functions so you dont have to download the theme:

    <?php
    // Handle cart in header fragment for ajax add to cart
    add_filter('add_to_cart_fragments', 'header_add_to_cart_fragment');
    function header_add_to_cart_fragment( $fragments ) {
    	global $woocommerce;
    	ob_start();
    	woocommerce_cart_link();
    	$fragments['a.cart-button'] = ob_get_clean();
    	return $fragments;
    }
    function woocommerce_cart_link() {
    	global $woocommerce;
    	?>
    	<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> <?php _e('in your shopping cart', 'woothemes'); ?>" class="cart-button ">
    	<span class="label"><?php _e('My Basket:', 'woothemes'); ?></span>
    	<?php echo $woocommerce->cart->get_cart_total();  ?>
    	<span class="items"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count); ?></span>
    	</a>
    	<?php
    }
    ?>

    I didnt see a way to create another rule within the localization pluggin. On the left side there are original statements from which to translate that I cant seem to change or add any new statements so there is no basket on the left side for me to give the translation of cart.

    In the woocommerce artificer theme the cart button at the top says My Basket and most other locations say Cart. How do I get the “My Basket” text to be My Cart? I tried the method of adding the en_GB file to wp_config/languages/woocommerce but that just changed all the places where cart was turn into basket. I then tried the codestyling plugin and deleted all the translations, but that didnt work. I also went into the actual function woocommerce_cart_link() under the artificer/includes/theme-woocommerce.php and changed the “My Basket” text to “My Cart”, but the text still showed up as “My Basket”. I then tried to test and the “My Basket” button came up even if I deleted everything in the function except

    a href=”” class=”cart-button ” /a

    and the “My Basket” button still came up. When I delete the text class=”cart-button ” then finally the button does not show up. This is very confusing, please point me in the right direction.

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