View Single Post
  #22  
Old 04-07-2016, 12:37 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: X-Cart 4.7.5 released: Amazon Feeds, Gross Profit, Convenient search tools

Quote:
Originally Posted by aim
Could you check again ?

1)add cost price for a product
2)buy the product
3)place the order
4)process the order
5)check the gross profit field on the search order page.

The condition is simple. The module is active and the $gross_costs_total is not empty.

Code:
{if $active_modules.Cost_Pricing and $gross_costs_total} {include file="modules/Cost_Pricing/admin_orders_list.tpl" gross_profit=$total-$gross_costs_total} {/if}

Thank you.
Ah alright then there is no need to check, if the condition only becomes active if the cost price has been added to items before they have been purchased as I've added all the cost prices after these orders.
__________________
X-Cart 4.7.12
Reply With Quote