Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Display salestax in cart



******    message to minivend-users from Chris Rapier <rapier@psc.edu>     ******



adfranse wrote:
> 
> ******    message to minivend-users from adfranse <info@afa.nl>     ******
> 
> Hello,
> 
> Is it possible to display the amount of salestax in the cart.

Yes. The question is how are you going to know what is the correct sales
tax to add? Your domain indicates you're in Holland whose sales tax
scheme I know nothing about. If you are assured that all of your
customers will be dealing with the same amount of sales tax (eg VAT) you
should just be able to use the [salestax] tag. 

However, you'll need to somehow force the program to add salestax to all
orders. One way of doing this would be to set the value of 'state' to
something like EU or NL and have EU/NL set appropriately in the
catalog.cfg.
eg: <INPUT TYPE=HIDDEN NAME=state VALUE="EU">

For example, from the basic/basket.html page
We have this displaying the contents of the cart and the subtotal.

[if items]
[then]
[item-list]
<TR>
        <TD VALIGN=TOP align=center> [item-code] </TD>
        <TH WIDTH="2">&nbsp;</TH>
        <TD VALIGN=TOP MARGINWIDTH=12 MARGINHEIGHT=12>
        [item-description]<BR>
        [if-item-data products size][item-accessories
size][/if-item-data]
        [if-item-data products color][item-accessories
color][/if-item-data]
        </TD>
        <TD VALIGN=TOP ALIGN=CENTER>
        <INPUT TYPE=text NAME="[quantity-name]" VALUE="[item-quantity]"
SIZE=3>
        </TD>
        <TD VALIGN=TOP ALIGN=RIGHT> [item-price] </TD>
        <TD WIDTH="2">&nbsp;</TD>
        <TD VALIGN=TOP ALIGN=RIGHT> [item-subtotal] </TD>
</TR>
[/item-list]
[/then]
[else]
        <TR><TD ALIGN=CENTER COLSPAN=7 __TABLEFG__>
                <H3>No items at the moment.</H3>
        </TD></TR>
[/else]
[/if]
<TR>
        <TD COLSPAN=5 ALIGN=RIGHT VALIGN=TOP>
        <INPUT TYPE=submit onClick="this.form.action='[process]'"
value="Recalculate">&nbsp;&nbsp;&nbsp;<B>Subtotal</B> <BR>
        <SMALL>(Set item quantity to zero to remove.)</SMALL></TD>
        <TD>&nbsp;</TD>
        <TD ALIGN=RIGHT VALIGN=CENTER>[subtotal]</TD>
</TR>

My suggestion would be to add the line:
<TR><TD></TD><TD>&nbsp;</TD><TD ALIGN=RIGHT
VALIGN=CENTER>[salestax]</TD></TR>


Hopefully this will work (or is at leats on track conceptually) I don't
have time to test it out myself.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: