Jump to content

I want to add wholesale_price(Product Cost) to Order Details in Backoffice?


Adnan Nahri

Recommended Posts

Dear Prestashop people, 

We are running multiple stores for a couple of years now, and I have always been wishing if I could just see how much each order costs us, 

So basically I went ahead and changed the codes a little in the way I saw ideal, but I ended up with a total showing only how much the last product in an order costs, instead of showing the actual cost of the entire order.

image.png.7fe77fb493cede80ac3e0feeb453778d.png

As you can see in the screenshot above, I was able to add the cost of each product in a new column on the order details page, However, it still only show what that product costs not how much the quantity bought costs (Client bought 2pcs for 15.8EUR while I only see that It costs me 5.89EURO -it should be multiplied by two-).

 

And in the total area as I said it only shows the cost of the last product in the order, which is the one that costs 5.98 EUR, instead it should be the total of prodcut.wholesale_price x product.quantity which will be around 150EUR and certainly not 5.89 EUR.

the store is running on PS 1.7.4.2

Any help is highly needed & appreciated. 

Link to comment
Share on other sites

  • razaro changed the title to I want to add wholesale_price(Product Cost) to Order Details in Backoffice?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...