Announcement

Collapse
No announcement yet.

Subscription markup issue?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Subscription markup issue?

    We have the following stock code in the Attribute Template for subscriptions:

    Code:
    <mvt:if expr="l.settings:subscription:term_count">
        <mvt:if expr="NOT l.settings:subscription:mandatory">
            <input type="radio" name="otps[]" id="l-otp" class="hide-subs" value="1" checked="checked" />
            <input type="radio" name="otps[]" id="l-subscribe" class="hide-subs" value="1" />
            <label for="l-otp" class="purchase-form_otps-otp uppercase align-center">One Time Purchase</label>
            <label for="l-subscribe" class="purchase-form_otps-s uppercase align-center">Subscribe</label>
            <div class="form-row" id="js-subscription">
        <mvt:else>
            <div class="form-row">
                <label for="l-Product_Subscription_Term_ID" title="&mvte:attribute:prompt;" class="medium">Subscribe</label>
        </mvt:if>
            <select name="Product_Subscription_Term_ID" id="l-Product_Subscription_Term_ID" class="input-medium">
                <mvt:if expr="NOT l.settings:subscription:mandatory">
                    <option value="0">Select Subscription</option>
                </mvt:if>
    
                <mvt:foreach iterator="term" array="subscription:terms">
                    <option value="&mvte:term:id;">&mvte:term:descrip;</option>
                </mvt:foreach>
            </select>
        </div>
    </mvt:if>
    Which produces this confusing display:

    badsubscription.png

    Is there Second radio button supposed to go with the Subscribe and Drop Down?
    Attached Files
    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

    #2

    according to "ID's" and "label for's" it should be like that, I believe:


    Code:
    <... radio ... id="l-otp" ... />
    <label for="l-otp" ...>One Time Purchase</label>
    <... radio ... id="l-subscribe" ... />
    <label for="l-subscribe" ...>Subscribe</label>
    and dropdown is always visible

    Comment

    Working...
    X