[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Need help: Adjusting checkout.html
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>****** message to minivend-users from Dan Busarow <dan@dpcsys.com>
>******
>
>On Thu, 4 Mar 1999, Oliver Schade wrote:
>> a) I need all prices including VAT (which is simple, I stored them in
>> prices.asc) and need on the checkout.html-page a line with VAT, e.g.:
>>
>> Sum: DM X XXX,XX
>> (VAT of this: DM XXX,XX) <--- which is [subtotal]/1.16
>> P&P: DM XX,XX (16% VAT in Germany)
>> Total: DM X XXX,XX
>
>I'm guessing that what you really want for VAT is subtotal - (subtotal//1.16)
>Try this
>
>UserTag vat HasEndTag
>UserTag vat Interpolate
>UserTag vat Routine sub { ($a) = @_; return $a-$a/1.16; }
>
>with
> [vat][subtotal][/vat]
For this to work correctly in the German locale you wll need
[vat][subtotal noformat=1][/vat]
and to format this for proper price display it will be
[currency][vat][subtotal noformat=1][/vat][/currency]
>
>in the page. Requires [new] syntax, err, the new parser :)
>
>> b) I tried to localize the SUBMIT-Button, which is marked with 'Place
>>Order!'
>> and '(Update without placing)' using the locale.asc-mechanism. But this
>> does not work, minivend did not recognized the translated string and
>> reported a ugly error-page...
>>
>> Again, which source-file do I have to patch?
This is in checkout.html, and a version which works with localization is in
the 3.12 beta simple demo.
basically you need to make sure the mv_click matches the scratch variable
on the page, so the relevant part is:
[set [L]Place Order![/L]]
mv_todo=submit
[if config CyberCash]mv_cyber_mode=__CYBER_MODE__
[/if]
[/set]
and in the form:
<INPUT TYPE=submit NAME=mv_click VALUE="[L]Place Order![/L]">
>> c) How do I disable UPS-shipping and configure minivend to a 'Germany'-
>> default-value?
>
>See pages/hintfile.html and make <OPTION SELECTED> Germany your first
>choice in the country SELECT. That assumes you are using [help country]
>like the sample catalog does.
>
>Dan
The default shipmode is defined in the catalog.cfg (DefaultShipping). If
you use the simple demo from 3.12beta the shipmodes are defined in
country.asc. In the previous version the shipmodes were defined in
catalog.cfg if I remember correctly.
Cheers, Frank
--
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
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