Miva Merchant 4 Module FAQs » Phone Order Manager (BROK_PHONEORDERS)


{docurl}

Is there a token similar to %basketprice_nochange% for the tax and shipping prices. Looking to have the boxes not be editable unless under a specific login.

There isn't. However, you can accmplish the same thing by adding a conditional to the POM template to display the editable field only if a certain login is used, otherwise, just display the amount. The editable box is displayed with the token:

%shippingbox%

and the shipping amount by itself with:

%shippingamount% (or %shippingamountF% formatted)

The user name (i.e. the user login) can be displayed with

%username%

So, you could make the display of the shipping amount conditional on a particular admin, say "bob" with:

%begin_if|'%username%' EQ 'Bob'|%
%shippingbox%
%else%
%shipppingamountF%

%end_if%

The hidden field is necessary to carry the shipping amount forward with the form.

you could do this same thing for several different users by adding to the conditional:

%begin_if|('%username%' EQ 'Bob') OR ('%username%' EQ 'Bill')|%
%shippingbox%
%else%
%shipppingamountF%

%end_if%



Last update: 2007-11-20 14:37
Author: Thor
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category