• Resolved akseven



    I want to do some customization of the woocommerce view order template in wc-view-order.php file.

    As shown in this picture https://imgur.com/a/C1Ipr4U
    I want to add an extra column (Shop) between product and product quantity in order to display the vendor name of the product. But in this template, the vendor name of the product is actually meta data, and will be displayed with “Shop: vendor name”. How can I just only display the vendor name from the order? Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @akseven ,

    I understand the request.

    To add a new column on the details of the ordered items you have to edit the file from \woocommerce\templates\order\order-details-item.php

    Now, the exact information/code to show the vendor name needs to be acquired from the plugin developers who developed your multivendor plugin. If you are comfortable understanding the dumped information from the order then you can use the var_dump($order) on the template to see all information under the order and use the required code to get the vendor information.

    It will be best to get in touch with the multi-vendor plugin developer to get exact information.

    Thank you 🙂

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customizing woocommerce view order template’ is closed to new replies.