• -> If you want to do reorder then it will create issue to solve that issue
    you have to change setting to “Fields Cloning” to “Yes”

    -> But when you change this setting to yes then image you have uploaded is not
    display on cart it will display path instead of image.

    function cs_add_order_again_to_my_orders_actions( $actions, $order ) {
    	if ( $order->has_status( 'completed' ) ) {
    		$actions['order-again'] = array(
    			'url'  => wp_nonce_url( add_query_arg( 'order_again', $order->id ) , 'woocommerce-order_again' ),
    			'name' => __( 'Order Again', 'woocommerce' )
    		);
    	}
    	return $actions;
    }
    add_filter( 'woocommerce_my_account_my_orders_actions', 'cs_add_order_again_to_my_orders_actions', 50, 2 );
    

    Above code is used for the re order.

    Issue is that if i change setting “Fields Cloning” to yes it will work like charm, but the custom image attach with path is not working at that time custom image is added by
    “wc field factory” in product section

    • This topic was modified 6 years, 3 months ago by ketczpatel.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ketczpatel

    (@ketczpatel)

    function cs_add_order_again_to_my_orders_actions( $actions, $order ) {
    	if ( $order->has_status( 'completed' ) ) {
    		$actions['order-again'] = array(
    			'url'  => wp_nonce_url( add_query_arg( 'order_again', $order->id ) , 'woocommerce-order_again' ),
    			'name' => __( 'Order Again', 'woocommerce' )
    		);
    	}
    	return $actions;
    }
    add_filter( 'woocommerce_my_account_my_orders_actions', 'cs_add_order_again_to_my_orders_actions', 50, 2 );
    

    Above code is used for the re order

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello,

    Thank you for your valuable suggestion.

    We will surely look forward for it.

    Thanks & Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File image not working while reorder’ is closed to new replies.