Results 1 to 10 of 30

Threaded View

  1. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How To Reposition Attributes?

    OK. We do need to add a bit of php to strip some of the stuff out of the option name. I had forgotten that the variable $options_name actually includes some tags. And that is what is causing the double name etc.

    For instance ---- $options_name = <label>then the option name</label>

    Edit includes / templates / yourtemplate / templates / tpl_modules_attributes.php again!
    Replace:
    Code:
    <div class="wrapperAttribsOptions" id="attributeBox-<?php echo $options_name[$i] ?>">
    With
    Code:
    <?php $new2= strip_tags($options_name[$i]);?>
    <?php $new3=str_replace(' ', '', $new2);?>
    <?php $new4=strtolower($new3);?> 
    
    <div class="wrapperAttribsOptions" id="attributeBox-<?php echo $new4 ?>">
    That will strip out the tags, remove any spaces, and make lowercase.

    I'll attach the complete file too.

    Get that far and then we can start adjusting the layout with css.
    Attached Files Attached Files

 

 

Similar Threads

  1. Reposition Multiple Images
    By ricangem in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 21 Jul 2011, 02:05 PM
  2. How to reposition Size attribute?
    By Asdesign in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jun 2009, 04:05 AM
  3. How do I reposition the registration and login text on my homepage?
    By elainedutton in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Jun 2008, 10:37 PM
  4. how do i move/reposition the 'add to cart' button?
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2007, 08:02 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