Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    15
    Plugin Contributions
    0

    help question Attributes dropdown position

    Hi! I have spent a long time trying to find an answer how to change the appearance of the attributes dropdown list. I want the option name and dropdown to appear NEXT to 'Please choose', as it looks really ugly now, please see pic below. Is there any way to get this all on one line?



    Thank you!
    Johanna

  2. #2
    Join Date
    Apr 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Attributes dropdown position

    Is there no one who can help me? I would really appreciate any pointers as to how to solve this problem.

    Many thanks!
    Johanna

  3. #3
    Join Date
    Apr 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Attributes dropdown position

    I had the same problem and this is what I did.

    I opened the file called 'tpl_product_info_display.php' which is located in 'includes > templates > [YOUR_TEMPLATE] > templates'. This file displays the information about your product (and it's commented very well, might I add). Inside the file you'll see the code for your "Attributes Module" (<!-- bof Attributes Module --> ... <!-- eof Attributes Module -->) and the code for your Shopping Cart box (<!--bof Add to Cart Box --> ... <!--eof Add to Cart Box -->).

    Near the end of the code for the Shopping Cart Box you'll see:

    <?php if ($display_qty != '' or $display_button != '') { ?>
    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?>
    </div>

    Insert the "Attribute Module" code after, <div id="cartAdd"> and your problem is solved.

    The final code should look like this:

    <?php if ($display_qty != '' or $display_button != '') { ?>
    <div id="cartAdd">
    <!--bof Attributes Module -->
    <?php
    if ($pr_attr->fields['total'] > 0) {
    ?>
    <?php
    /**
    * display the product atributes
    */
    require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
    <?php
    }
    ?>
    <!--eof Attributes Module -->
    <?php
    echo $display_qty;
    echo $display_button;
    ?>
    </div>

  4. #4
    Join Date
    Apr 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Attributes dropdown position

    Hi romontj,

    Thank you for your reply, I appreciate it. I have now got the attributes inside the add to cart box, which is great! However, I still have the problem that there is a line break between the 'please choose' line and the next line that has the word 'colour' and the dropdown in it. Do you happen to know how I can make all of this go on one line? Here's a pic of how it looks now:


 

 

Similar Threads

  1. v151 Position of Attributes on product description page
    By raunharman in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Jan 2014, 05:10 PM
  2. How to change Position of Dropdown Options?
    By rugersmum in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Apr 2011, 05:35 PM
  3. Attributes drop down position
    By rxalex in forum General Questions
    Replies: 1
    Last Post: 10 Jul 2010, 10:46 PM
  4. Position of Attributes Controller on Product Page
    By xman888 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Oct 2009, 04:20 AM
  5. Position of attributes
    By libuskaaa in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Mar 2009, 12:09 PM

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