| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need Total Qty on Invoice page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I use x-cart for my t-shirt site but I don't use x-affiliate. I want to pay my affiliates $10 per shirt they sell for me. The affiliate software I use needs a total quantity on the invoice page to compute the commission. I need to multiply the TotalQty * 10 so that I can get a sum that I give my affiliates 100% of resulting in them getting $10 per item sold in the stats.
Does anyone know how to get a total qty on the invoice page (mail/html/order_data.tpl) ? I see {$product.amount} is displayed for each line to display the qty for each product ordered, but is there a way to total all the quantities together at the bottom along with the subtotal? Any help would be greatly appreciated! This is the desired effect I am trying to achieve. http://www.crazytees.com/zebra/qty.gif
__________________
Version 4.4.1 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Anyone? Bueller?
__________________
Version 4.4.1 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Please don't double post, I have removed your other post and moved this topic to the template editing forum. Thank you.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
![]() if you search func.php for the fumction that gets the total weight you can use similar code to work out the total items
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() Here is what I did to display both the total individual sku's ordered and the total quantity of items ordered:
1) Add the following 2 labels to your system language table xcart_language: Code:
2) Add the following items to the table xcart_config: Code:
These 2 options are added so you can control the display of the option we are adding below under a Custom option in the General settings option in the admin area. 3) Then change the following 3 files: Code:
In file skin1/main/order_info.tpl, change the following code, around line 19: Code:
to Code:
then change the following code, around line 102: from: Code:
to: Code:
then change the following code, around line 155: from: Code:
to: Code:
>>>>>>>>>>>>>>>>>>>>>>>> In file skin1/mail/order_data.tpl, change the following code, around line 2: from: Code:
to: Code:
then change the following code, around line 23: from: Code:
to: Code:
then change the following code, around line 39: from: Code:
to: Code:
>>>>>>>>>>>>>>>>>>>>>>>> In file skin1/mail/html/order_data.tpl, change the following code, around line 23: from: Code:
to: Code:
then change the following code, around line 55: from: Code:
to: Code:
then change the following code, around line 54: from: Code:
to: Code:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hope this helps.....
__________________
X-Cart Gold: v4.0.17 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Thank you VERY much! That worked perfect!
__________________
Version 4.4.1 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|