Jump to content

CMYKreative

New Members
  • Posts

    1
  • Joined

  • Last visited

CMYKreative's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm trying to hide some specific <tr> rows on the registration form in Virtuemart that are not needed, but there is no way to 'target' them as it uses the same piece of coding to create all the rows. What we have at the moment is: echo ' <table class="adminForm user-details">' . "\n"; $_table = true; } echo ' <tr>' . "\n"; echo ' <td class="key" title="'.$_field['description'].'" >' . "\n"; echo ' <label class="' . $_field['name'] . '" for="' . $_field['name'] . '_field">' . "\n"; echo ' ' . $_field['title'] . ($_field['required'] ? ' *' : '') . "\n"; Where the td class is simply called "key" and all td are then called the same. We are trying to add in some consecutive lettering functionality so that each row then gets labelled with a consecutive number. We've tried adding this into the top of the page: <?php // array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'); foreach (range('a', 'z') as $letter) ?> Which does generate consecutive letters, and then this change to the code: echo ' <td class="key td-id-'.$letter.'" title="'.$_field['description'].'" >' . "\n"; Any thoughts on how to get this to work? Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.