Originally posted by Matt Zimmermann
View Post
Announcement
Collapse
No announcement yet.
Attribute Pricing Not Working?
Collapse
X
-
Originally posted by afiumano View PostBruce, do you happen to have an example of a site that does it that way? The client likes to have the radio as Yes No to require a response because they have had issues in the past with customers saying they had wanted the gift message, etc.
https://www.redrivercatalog.com/red-...rtificate.htmlBruce 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
-
I have managed to 'style' a checkbox to look like the radio button selectors so they can still check "yes" or "no". But the value of the checkbox isn't passing through. I tried this on my test store as well, and it doesn't pass the value to the basket: https://dts2290.mivamerchantdev.com/...-memorial-tree. Is there a way to have the basket display "Yes" or "No" for the value of the checkbox like it does for the radio buttons?
Comment
-
The value passed for a checkbox is the prompt you enter in the admin.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
Comment
-
To the best of my knowledge, if the attribute is checked, it will pass to the options loop so there should be no reason to have "Yes" appended to it as having it there confirms what option you selected. If you want "Yes" to be part of that, you could put a conditional in the loop to check for that option and append "Yes" to it.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
Comment
-
Originally posted by afiumano View PostBut ideally the 'value' of the checkbox comes through to be consistent with the other attributes. Is this possible?
See image.
<mvt:if expr="l.settings:this:attribute:option:code"> Yes <mvt:else> No </mvt:if>
(note, not actual option variable. depends where you are using it.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
-
I am not quite sure what this conditional is checking? I am using tokenlist but no value is displayed for the opt_code so I am sorta lost.
<mvt:if expr="l.settings:option:opt_code EQ 'Yes'">Yes<mvt:elseif expr="l.settings:option:opt_code EQ 'No'">No</mvt:if>
This only works on radio buttons.
Comment
-
try
Code:<mvt:if expr="l.settings:option:opt_code">Yes<mvt:else>No</mvt:if>
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