Miva Merchant 4 Module FAQs » Product Page Templates (BROK_PRODTEMPLATES )


{docurl}

I would like to have my attributes display differently within a single product depending on the attribute. For example, I would like the first "select" type attribute to have a default of is simply:

%fields%

So you may be able to use a conditional to test on the Attribute code (assuming that the first select attribute has a consistent Attribute code):

%begin_if|Attributes.d.code EQ 'Foo'|%
%fields|<Select One>|%
%else%
%fields%
%end_if%

In addition to testing for the attribute code you might be able to test on the variable g.Total_Attributes. This keeps track of the total number of attributes displayed for the product (first attribute is 1, second attribute is 2, etc).

So if the select type attribute is always the very first attribute displayed you could use:

%begin_if|g.Total_Attributes|%
%fields|<Select One>|%
%else%
%fields%
%end_if%



Last update: 2004-12-07 12:51
Author: Support
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