New Landing How can we help? Atelier Hiding Add to Cart Button not working – Keeps Saying Adding

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #255028
    dej888
    Member
    Post count: 181

    When the button is clicked to add an the item, it keep says adding and does not change to added like it does if the item was added on the product page. This should work for the shop page as well.

    Can you kindly help fix this bug

    Thank you!

    #255072
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to check and resolve the issue.
    Thanks
    Mohammad

    #255074
    dej888
    Member
    Post count: 181

    Hi Mohammad!

    Can you please confirm security of provide you with my login credentials.

    Thank you for your understanding of privacy.

    🙂

    #255080
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    There is a options for private reply below reply box to make any reply private. We are premium theme company and hundreds of customers share the their login detail here.
    Thanks
    Mohammad

    #255645
    dej888
    Member
    Post count: 181

    Hi Mohammad!

    To add to my message, I am having with the ajax when I am adding an item to my cart.

    I added the following snippet from woothemes to change the text on the button from add to cart to just add.

    Now, when I added this, I lost the Ajax feature. Instead of the item just adding and staying at the product, it now loads to the top of the page..

    Can you please assist on this and get it back to the way it was prior – but still have the text changed!

    Thanks so much!

    add_filter( ‘add_to_cart_text’, ‘woo_custom_single_add_to_cart_text’ ); // < 2.1
    add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘woo_custom_single_add_to_cart_text’ ); // 2.1 +

    function woo_custom_single_add_to_cart_text() {

    return __( ‘ADD TO BAG’, ‘woocommerce’ );

    }

    add_filter( ‘add_to_cart_text’, ‘woo_custom_product_add_to_cart_text’ ); // < 2.1
    add_filter( ‘woocommerce_product_add_to_cart_text’, ‘woo_custom_product_add_to_cart_text’ ); // 2.1 +

    function woo_custom_product_add_to_cart_text() {

    return __( ‘+ ADD’, ‘woocommerce’ );

    }

    function move_add_to_cart(){
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 15 );
    }
    add_action( ‘wp’, ‘move_add_to_cart’ );

    #255704
    dej888
    Member
    Post count: 181
    This reply has been marked as private.
    #255765
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Add to cart' :
    			$translated_text = __( 'your cart text', $domain ); //just change it.
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #255808
    dej888
    Member
    Post count: 181
    This reply has been marked as private.
    #255811
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to add this code:-

    function sf_text_strings_new( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Add to cart' :
    			$translated_text = __( 'your cart text', $domain ); //just change it.
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings_new', 20, 3 );

    Thanks
    Mohammad

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register