Results 1 to 4 of 4

Hybrid View

  1. #1
    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>

  2. #2
    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