| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
add market price to order_data.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||
|
|||||||
![]() 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
|
|||||||
|
|||||||
![]() 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
|