I'd like (need) to have multiple product flags. Has anyone attempted this using the product custom fields? It's currently a dropdown, can I change it to multi-text? Is it going to need a loop to determine if there is more than one?
Announcement
Collapse
No announcement yet.
Multiple Product Flags
Collapse
X
-
Multiple Product Flags
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Tags: None
-
Hi Leslie,
That is something you will have to custom code for. Out of the box, neither DiVino nor Levels will display multiple flags.Matt Zimmermann
Miva Web Developer
Alchemy Web Development
https://www.alchemywebdev.com
Site Development - Maintenance - Consultation
Miva Certified Developer
Miva Professional Developer
https://www.dev4web.net | Twitter
-
You'd also need to add CSS to add an offset so the flags don't overlap. (I assume that most are positioned to a specific location within the container div via 'absolute' positioning.)Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
-
Originally posted by Bruce - PhosphorMedia View PostYou'd also need to add CSS to add an offset so the flags don't overlap. (I assume that most are positioned to a specific location within the container div via 'absolute' positioning.)Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Only if the flags are of a fixed sized, otherwise you'd need to make a javascript/jQuery routine to query the actual size of the flag to use as the offset :). the custom field thing would be relatively easy (though off the top of my head, not sure how miva returns a multiple-selection dropdown or checkbox field. You might find it easier to create your own 'flag' fields then just poll each one, and for each found, create and offset.
pseudo code
get Flag1
IF Flag1
expr Flag1
assign Offset1 as <style>.nextFlag { top: 20px }</style>
getFlag2
IF Flag2 AND Offset1
expr Offset1
ELSEIF Flag2
expr Flag2
END
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
Comment