[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Tax&Shipping!!!
Hi Mike,
First of all thanks for your help! You gave me the clue i needed!
Your solution doesn't work...in fact yes, but not completly!
you wrote:
Try:
f [calc] @@TOTAL@@ + [handling mode=gst noformat=1] * .08 [/calc]
instead of "x .08" in your cost field.
---------------------------------------------------------------------------
the @@total@@ + [handling] * .08 is not a good method. It seem's to be
logical..and it is...but when i try
(exemple) @@TOTAL@@(10.50$) + [handling(0.50)] * 1
it worked well, i've got-- 10.50 + 0.50 x1 = 11.00
when i try the same line with a *2 then, i've got
10.50 + 0.50 x 2 = 20.43$
The problem is that it need to be calculated this way to work:
10.50 +0.50 = 11.00 x 2 = 22.00
I wrote this solution and give it here for futur reference[people needing it):
In shipping.asc:
Replace
gst GST [subtotal noformat=1] 0 99999999 x .07 {}
pst PST [subtotal noformat=1] [value state] 0 0 0 {}
pst PST for Quebec QC 0 99999999 x .075
pst PST for Ontario On 0 99999999 x .08
pst No PST 0 99999999 0 {}
------------------------------------------------------------------------------
with
------------------------------------------------------------------------------
gst GST [subtotal noformat=1] 0 99999999 x .07 {}
pst PST [subtotal noformat=1] [value state] 0 0 0 {}
pst PST for tx QC 0 99999999 f [calc][handling mode=gst
noformat=1]@@TOTAL@@[/calc]
{}
pst No PST 0 99999999 0 {}
psts PST [subtotal noformat=1] [value state] 0 0 0 {}
psts PST for tx QC 0 99999999 f [calc] [handling mode=pst
noformat=1]*0.075[/calc]
------------------------------------------------------------------------------
It's simple: the psts command take the total of the pst and multiplie with
0.075.
----------------------------------------------------
In checkout.html:
replace:
[value name=mv_handling set="gst pst" hide=1]
-----------------------------------------------------
with
-----------------------------------------------------
[value name=mv_handling set="gst psts" hide=1]
and
[shipping pst] with [shipping psts]
---------------------------------------------------
That's all!
I hope that anybody with the same problem gets a rapid answer with this
solution!
Thanks for everything
Philippe Roche
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users