Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)
Most Recent FAQ Entries:
Top 10
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
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2521 views:
Adding Tokens to Evaluate Expressions - 2510 views:
Why won't you call me for technical support? I ... - 2489 views:
Is there a way to "Limit" the number of ... - 2402 views:
Are license keys valid for more than one store? ... - 2308 views:
I'm trying to enter a license key and get ... - 2270 views:
How do I install a module? - 2133 views:
How do I check for a module upgrade? - 2132 views:
How can display and change the parameters of an ... - 1960 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















