Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Want to add product sku numer in vendor new order email

MultivendorX

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #196488
      nawrllystore
      Participant

      Hello i want to add sku number of product and also image to vendor new order email

      I am using email template plugin from theme villa

    • #196521

      Add the below code in the funtions.php file of your current active theme –

      
      function edit_order_item_name( $name , $item) {
          $product = new WC_Product($item->get_product_id());
          $name .='<br />';
          $name .= "SKU: ".$product->get_sku() .'<br />' ;
          $name .= "image: ".$product->get_image() . '<br />' ;
          return $name;
      }
      add_filter( 'woocommerce_order_item_name', 'edit_order_item_name', 10, 2 );
      
      Copy
    • #196807
      nawrllystore
      Participant

      Not working
      All i want is three option
      1- to send sub order email when order completed to my specific email like this code
      add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘quadlayers_add_email_recipient_to’, 9999, 3 );
      function quadlayers_add_email_recipient_to( $email_recipient, $email_object, $email ) {
      $email_recipient .= ‘, nofal@nawrly.com’;
      return $email_recipient;
      }

      2 – when order change to cancel also sub order change to cancel
      3- when send order to vendor i want to show sku number in the order

    • #196863

      @nawrllystore Our replies are inline with your queries –
      1- to send sub order email when order completed to my specific email like this code
      add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘quadlayers_add_email_recipient_to’, 9999, 3 );
      function quadlayers_add_email_recipient_to( $email_recipient, $email_object, $email ) {
      $email_recipient .= ‘, nofal@nawrly.com’;
      return $email_recipient;
      }
      >>Can you please let us know the flow you are looking for so that we can help you accordingly.
      2 – when order change to cancel also sub order change to cancel
      >>You can check the doc here to sync main order status with suborder status https://multivendorx.com/docs/code-snippet/parent-order-and-sub-order-status-sync/.
      3- when send order to vendor i want to show sku number in the order
      >>We have added the code on our end that we have shared with you earlier and it is working fine. The sku and product image got added in the vendor order email. Kindly check the video https://watch.screencastify.com/v/kz6aDal4Lqw3j4ZI2y9R.

    • #214752

      Its been long and we have not heard back from you. We presume query is resolved now. We are closing this thread. If you need help or face issue in future please open a new support topic.

Viewing 4 reply threads

The topic ‘Want to add product sku numer in vendor new order email’ is closed to new replies.