# How to override the order page template for buyers

**URL:** <https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776>\
**Category:** Marketplace\
**Tags:** marketplace\
**Created:** [February 17, 2024, 6:56pm UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776 "2024-02-17T18:56:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefourcraft](https://community.hivepress.io/user_avatar/community.hivepress.io/thefourcraft/32/8986_2.png) [@thefourcraft](https://community.hivepress.io/u/thefourcraft)\
**Post date:** [February 17, 2024, 6:56pm UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/1 "2024-02-17T18:56:25Z")

</div>

The Templates for the order & orders page are not working  
well, this is not entirely true because they do work, but only for vendors  
for regular accounts, the template does not change  
also, the orders page should change the orders page and not the vendor order received page  
right, not if I edit the orders page, it changes this page `account/vendor/orders/`  
but it needs to change this page `my-account/orders/`

The single order page needs to be updated both for the user and the vendor

## Steps to reproduce

#### Single Order Template

1. Create a template for order (a single order template)
2. Go to the single order page as a regular user `my-account/view-order/1234/.`
3. Go to the single order page as a vendor `account/vendor/orders/1073/.`

#### Orders Template

1. Create a template for orders
2. go to the orders page as a regular user `my-account/orders/`
3. go to the orders page as a vendor `account/vendor/orders/`

## Actual result

The pages are mixed up; only vendor pages get updated with the template changes, not the user pages.

## Expected result

The template needs to work both for the vendor and the user  
Also, the orders received profile section needs a different template #Feature Requests #marketplace

## Extra details

This looks like it’s related to WooCommers, the `my-account` part of the URL

---

<div class="post-metadata">

**Author:** ![tharlab](https://community.hivepress.io/user_avatar/community.hivepress.io/tharlab/32/7929_2.png) [@tharlab](https://community.hivepress.io/u/tharlab)\
**Post date:** [February 17, 2024, 11:12pm UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/2 "2024-02-17T23:12:53Z")

</div>

I think not bug, its handled by different plugin,  
orders by hivepress and placed order by woocommerce,  
it should work if you using woocommerce hook not hivepress

---

<div class="post-metadata">

**Author:** ![thefourcraft](https://community.hivepress.io/user_avatar/community.hivepress.io/thefourcraft/32/8986_2.png) [@thefourcraft](https://community.hivepress.io/u/thefourcraft)\
**Post date:** [February 18, 2024, 11:31am UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/3 "2024-02-18T11:31:14Z")

</div>

I need to customize the pages for WooCommerce?

---

<div class="post-metadata">

**Author:** ![laurence.hldr](https://community.hivepress.io/user_avatar/community.hivepress.io/laurence.hldr/32/8922_2.png) [@laurence.hldr](https://community.hivepress.io/u/laurence.hldr)\
**Post date:** [March 3, 2024, 6:36am UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/4 "2024-03-03T06:36:39Z")

</div>

Hi, I am also having this difficulty in understanding the requirement to amend the user order page and placed orders under, I guess, the WooCommerce Plugin as opposed to teh Hivepress Templates?

If someone is able to confirm that would be great thank you.

---

<div class="post-metadata">

**Author:** ![thefourcraft](https://community.hivepress.io/user_avatar/community.hivepress.io/thefourcraft/32/8986_2.png) [@thefourcraft](https://community.hivepress.io/u/thefourcraft)\
**Post date:** [March 3, 2024, 3:25pm UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/5 "2024-03-03T15:25:26Z")

</div>

> [@laurence.hldr](#):
>
> Hi, I am also having this difficulty in understanding the requirement to amend the user order page and placed orders under, I guess, the WooCommerce Plugin as opposed to teh Hivepress Templates?

Hi, you need to use code snippets to make your page customizable  
In order to do that, you need to know PHP  
Here are some resources that might help you:

> **[WooCommerce: How to Customize the My Account Page?](https://www.businessbloomer.com/woocommerce-how-to-customize-the-my-account-page/)**
>
> Customizing the WooCommerce “My Account” page is one of the most requested features by designers and developers. The “My Account” page of an ecommerce website is absolutely vital to the smooth running of its operations, should be well designed in...

> **[WooCommerce Visual Hook Guide: My Account Pages](https://www.businessbloomer.com/woocommerce-visual-hook-guide-account-pages/#)**
>
> Find WooCommerce Account Hooks (actions & filters) by seeing their actual locations. Quickly copy/paste add\_action & add\_filter for easy customization!

> **[How To Use Woocommerce Coupons In 23 Different Ways?](https://wpsimplehacks.com/how-to-use-woocommerce-coupons/)**
>
> In this post I’ll show you how to use Woocommerce coupons in 23 different ways. That means I’m going to use 23 different hacks to make it work like charm..

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [March 4, 2024, 11:42pm UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/7 "2024-03-04T23:42:44Z")

</div>

Yes, sorry for the confusion, HivePress basically adds multi-vendor features to WooCommerce so it adds vendor-specific order pages only. Buyer pages are already implemented by WooCommerce, as far as I know they have no Templates feature (at least for the block editor), but there are numerous resources and code snippets for customizing their order pages.

---

<div class="post-metadata">

**Author:** ![thefourcraft](https://community.hivepress.io/user_avatar/community.hivepress.io/thefourcraft/32/8986_2.png) [@thefourcraft](https://community.hivepress.io/u/thefourcraft)\
**Post date:** [March 5, 2024, 8:46am UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/8 "2024-03-05T08:46:41Z")

</div>

My main issue was that the HivePress multi-vendor features are at the bottom of the page so I used Javascript to update them

```js
jQuery(document).ready(function($){
    // Check if both elements exist
    if ($('.hp-order__actions--primary').length && $('.woocommerce-order-details').length) {
        // Move the .hp-order__actions--primary element before .woocommerce-order-details
        $('.hp-order__actions--primary').insertBefore('.woocommerce-order-details');
    }
});

```

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [March 6, 2024, 12:13am UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/10 "2024-03-06T00:13:52Z")

</div>

Thanks for sharing the solution!

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [April 5, 2024, 12:14am UTC](https://community.hivepress.io/t/how-to-override-the-order-page-template-for-buyers/9776/11 "2024-04-05T00:14:04Z")

</div>

Closed on April 5, 2024, 12:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
