Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Attribute layout

    All my products have the same attributes.

    Given this I think I should be able to play about with the layout by pulling each individual one and displaying it where I want on the page but I don't speak the language.

    I am guessing that this bit in tpl_modules_attributes pulls the product's attribute list and displays it
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    Is this correct?

    So if I have a option name 'size' for example how to I retrieve it?

    I optimistically tried this by adding it beneath to see if I got an extra attribute but it doesn't work
    <h4 class="optionName back"><?php echo $options_name[$size]; ?></h4>
    <div class="back"><?php echo "\n" . $options_menu[$size]; ?></div>
    Thanks for any tips.
    Last edited by Justrimless; 27 Sep 2008 at 02:40 PM.

  2. #2
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Attribute layout

    Actually as I think about it, it is a little more complicated, some products share the same option_name but have different option_values ie colour.

    However the parts I am concerned with the layout of do share the same option_names *and* option_values so maybe there is another way of going about this.

    Basically I want to tidy up the prescription entry boxes here http://justrimless.co.uk/index.php?m...roducts_id=109 so they are not simply stacked on top of each other.


    TIA.
    Last edited by Justrimless; 27 Sep 2008 at 02:55 PM.

 

 

Similar Threads

  1. Attribute layout
    By Xanfar in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 24 Oct 2011, 11:06 PM
  2. attribute layout
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 May 2010, 10:48 AM
  3. Attribute Layout
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Oct 2009, 11:14 PM
  4. Attribute Layout
    By dropbop in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Apr 2009, 08:57 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