| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
add market price to order_data.tpl | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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.
__________________
Thanks - CobaltCat I would love to change the world, but they won't give me the source code. |
|||||||||
#2
|
|||||||||
|
|||||||||
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:
I don't know if this will work or not, but it is someplace to start.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: add market price to order_data.tpl
JWait -
Thanks for the info. I added Code:
to the html/order_data.tpl, so it looks like Code:
but it doesn't show anything on an invoice. I did clear the templates cache on the server. Any ideas?
__________________
Thanks - CobaltCat I would love to change the world, but they won't give me the source code. |
|||||||||
#4
|
|||||||||
|
|||||||||
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?
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: add market price to order_data.tpl
I think I did. I tried:
Code:
But nothing changed. Am I not grabbing enough of the code?
__________________
Thanks - CobaltCat I would love to change the world, but they won't give me the source code. |
|||||||||
#6
|
|||||||||
|
|||||||||
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.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#7
|
|||||||
|
|||||||
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 ?
__________________
Version 4.1.2 |
|||||||
#8
|
|||||||
|
|||||||
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.
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
|
|||
X-Cart forums © 2001-2020
|