Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    5
    Plugin Contributions
    0

    Default labelling required attributes

    I'm setting up my first zencart and I'm having problems with required textfields. They come out required in the sense that a message comes back when I put the item in the cart without filling in the field. The problem is not all the fields are labeled 'required' in the item description that is presented to the customers. The first two are but then I have some non-required fields before the next required field and that one, and others following, don't get the label.

    A second problem is that the label appears in a line above the required item. Is it possible to have the word required appear in the same line, directly after the text box?

    I've searched attribute labels and attribute format to no avail although I did find many thankful people who have been helped with other problems,

  2. #2
    Join Date
    Aug 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: labelling required attributes

    I solved the second problem. I copied includes/templates/template_default/templates/tpl_modules_attributes.php into includes/templates/mysite/templates to override and then edited mysite/templates/tpl_modules_attributes.php.

    I deleted

    <?php
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>
    <?php
    }
    ?>

    Still looking for a fix for the first one.

    and then inserted

    <?php
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <span class="attributesComments"><?php echo $options_comment[$i]; ?></span>
    <?php
    }
    ?>

    just below

    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>

  3. #3
    Join Date
    Aug 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: labelling required attributes

    The products_options_comment in the products_options table is blank for the missing labels. I can fill it in, by using pma, but this seems a less than ideal solution.

    Concerning the positioning of the label, I see in the template references to options_comment_position but I don't see anyplace to set them. Perhaps this was an earlier solution to this pr^H^H opportunity.

 

 

Similar Threads

  1. v150 Red asterisk on required attributes & issue with required attribute
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Feb 2013, 03:18 AM
  2. Problem with Required attributes after moving attributes to product listing page
    By bigmo337 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Jun 2010, 12:03 AM
  3. labelling site with ICRA system
    By butchx5 in forum General Questions
    Replies: 5
    Last Post: 27 Feb 2009, 06:20 PM
  4. 4 of 10 attributes required
    By LoeJ in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 13 Mar 2008, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg