Eutanasio Posted May 28, 2015 Share Posted May 28, 2015 Hi! In / admin / themes / default / template / controllers / orders / _product_line.tpl you can get the selling price like this: {assign var=product_price value=$product['unit_price_tax_incl']} But, how can I get the Wholesale Price? Thanks! Link to comment Share on other sites More sharing options...
abdullacm Posted May 29, 2015 Share Posted May 29, 2015 you can use $product['purchase_supplier_price'], this contains the wholesale price of the product. Link to comment Share on other sites More sharing options...
Eutanasio Posted May 29, 2015 Author Share Posted May 29, 2015 Thanks for the answer! But how can I create the variable and then insert it? for example, the variable for the Product Price with TAX it is generated like this: {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} {assign var=product_price value=($product['unit_price_tax_excl'] + $product['ecotax'])} {else} {assign var=product_price value=$product['unit_price_tax_incl']} {/if} Then it is called to appear in the table like this: <span class="product_price_show">{displayPrice price=$product_price currency=$currency->id}</span> How can I do the same with the purchase price? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now