Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


{docurl}

I have a checkbox attribute that I want to default as checked. I normally would use a VMod, but can't with Cat page templates. Do you have any ideas how I could do this with your module?

(2003/08/17)I updated the module so that that you can use the %var|expressioin|% and %begin_if|expression|% tokens in the attribute areas. To accomplish what you're after upgrade to the latest version, then, in the "Checkbox attr. template" replace:

%fields%

with

%begin_if|Attributes.d.code EQ 'yourcode'|%

<input type="checkbox" name="AttributeValue[%var|g.Total_Attributes|%]" value="Yes" checked />
%end_if%
%begin_notif|Attributes.d.code EQ 'yourcode'|%
%fields%
%end_notif%

where "yourcode" is the attribute code of the attribute you want to set to "checked" by default.



Last update: 2004-12-08 13:59
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