• Resolved bsteeletx

    (@bsteeletx)


    Whenever a customer purchases one of our downloadable items, after returning from paypal, they get the following error:

    [Item] has been removed from your cart because it can no longer be purchased. Please contact us for assistance.

    As you can imagine, this is rather disconcerting to our customers because they just finished purchasing the item. We limit our products to one purchase per customer because we offer infinite downloads and do not want them to accidentally purchase the item twice.

    Is this line from Disable Download…? I’ve tried browsing through the files, but cannot seem to locate it. Any help on how I could change this message to better inform our customers would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author pwallner

    (@pwallner)

    This is the message from woocommerce because it isn’t purchasable anymore…
    It is annoying..

    Quick help (in functions php):

    
    //[WooCommerce] Remove the "order again" button
    remove_action( 'woocommerce_order_details_after_order_table', 'woocommerce_order_again_button' );
    
    //woocommerce remove message (en&de): [Item] has been removed from your cart because it can no longer be purchased. Please contact us for assistance.
    
    function customize_wc_errors( $error ) {
        if ( strpos( $error, 'entfernt' ) !== false ) {
            return '';
        } elseif ( strpos( $error, 'removed' ) !== false ) {
    	return '';
        } else {
        	return $error; 
        }
    }
    add_filter( 'woocommerce_add_error', 'customize_wc_errors' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘After Purchase, get a WooCommerce Error’ is closed to new replies.