| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Additional Field in checkout.tpl | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Additional Field in checkout.tpl
I need to add a warning screen and calculation on the checkout.tpl template that tells the customer:
"Your order is below our $50 minimum requirement. You may still place your order, but are subject to a $6.00 small order fee." The customer is going to pay ALL shipping charges and the additional $6.00 small order fee. I need to have the checkout.tpl look something like this: Subtotal: $ 14.75 Discount: $ 0.00 Shipping: $ 5.25 Tax: $ 0.00 Small Order Fee: $6.00 Order total: $ 26.00 I'm having difficulting conveying this concept to people. I hope this clears things up. |
|||||||||
#3
|
|||||||||
|
|||||||||
Made some progress
Boomer,
I made SOME progress with the cart_totals.tpl template. I got it to look like I want it, visually. My problem is; I don't know how to perform the calculations. I have to figure out how to assign a value to {$lng.lbl_small_order}. At the moment I've used $cart.total_cost. Obviously this won't work. Can you tell me where and how I can assign a new value for the small_order file? Code:
I also have to compute a formula that says something like: Code:
Your help is very much appreciated. I am well on my way to getting this thing working like I want it and learning a ton of stuff that I'll be able to use to help others, perhaps enough to relieve your burden sometime. Thanks, Jeff |
|||||||||
#4
|
|||||||||
|
|||||||||
Take a look at include/func.php, in the function func_calculate(); You may need to do some adjustments on customer/cart.php as well to pass an value to the array you need to calculate on.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|