• I am modifying my product.php page to display variations in a radio button format, and to show add-ons as checkbox selectors. I am using a child page. So far things are fine. However, I cannot figure out how to show a Variable Label over each set of variables (such as Battery Size for choosing a variable battery size), or how to show a label above the Add-Ons (such as “Additional Features” for my price-added options.

    Here’s the code I have for these two items:

    <table style="width:90%; border:0px; padding:5px;"><tbody><tr><td>
    <?php if ( shopp('product','has-variants') ): ?>
        <ul class="variants">
        <?php while ( shopp('product', 'variants') ): ?>
        <li><label><?php shopp('product','addon','input=radio'); ?>&mdash;&nbsp;<?php shopp('product','addon','label=on'); ?></label></li>
        <?php endwhile; ?>
        </ul>
    <?php endif; ?>
    </td><td>
    <?php if ( shopp('product','has-addons') ): ?>
        <ul class="addons">
        <?php while ( shopp('product', 'addons') ): ?>
        <li><label><?php shopp('product','addon','input=checkbox'); ?>&mdash;&nbsp;<?php shopp('product','addon','label=on'); ?></label></li>
        <?php endwhile; ?>
        </ul>
    </td></tr></tbody></table>

    I just want to add the corresponding title to each loop of variables or add-ons. Any help is welcome. Thanks in advance!

    https://wordpress.org/plugins/shopp/

  • The topic ‘Shopp Display Variations Title and Add-ons Title Above each Selector’ is closed to new replies.