![]() |
add market price to order_data.tpl
My client is using 4.1.6 and wants to have both the price AND the list price display on the printable invoice, unless the list price is set to 0. He gives discounts on full price items, but not sales items and wants to have a record of which items were sales items. I hope I'm explaining this clearly.
|
Re: add market price to order_data.tpl
You could try including the routine from products.tpl that determines whether to show the "market price" or not...
Code:
{if $products[product].taxed_price ne 0 or ($products[product].variantid && $products[product].variants_has_price)} I don't know if this will work or not, but it is someplace to start. |
Re: add market price to order_data.tpl
JWait -
Thanks for the info. I added Code:
{if $discount gt 0} to the html/order_data.tpl, so it looks like Code:
<td align="right">{include file="currency.tpl" value=$product.display_price} <br /> but it doesn't show anything on an invoice. I did clear the templates cache on the server. Any ideas? |
Re: add market price to order_data.tpl
Its possible that $products[product].list_price isn't a stored variable. Did you try inserting the entire routine to include the math?
|
Re: add market price to order_data.tpl
I think I did. I tried:
Code:
<td align="right">{include file="currency.tpl" value=$product.display_price} <br /> But nothing changed. Am I not grabbing enough of the code? |
Re: add market price to order_data.tpl
It may not be grabbing some of the variables, meaning it isn't going to work without a lot of modification.
|
Re: add market price to order_data.tpl
Hi,
I would like to add market price and % save on the order_data.tpl too. Like you I can't make it to display the result. I did on other tpl with quiet the same code but on the order_data.tpl it is a big issue. I think it comes from not grabbing some var as JWAIT said it. Did you figured it out ? Can someone help us on this point ? |
Re: add market price to order_data.tpl
Hello,
I want to display Market price and Discounted price and also Discount avail not in % in the invoice.How to achieve that? Thanks. |
All times are GMT -8. The time now is 04:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.