Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    Quote Originally Posted by Waij View Post
    I need this mod too. After installation on 1.3.9h nothing changes.
    I have two attributes colour and size. I want to hover over the colour images then get a large image. Did somebody get this to work or can help me with this?.
    It works on 1.3.9.h You have to install this mode and then create totaly new attribute. It doesn't work on previously created attributes. Or could someone fix this so it work on the attributes that are already uploaded?

  2. #12
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    I found out that this mod works only if you set Attribute Style for Radio Buttons/Checkbox to 0

    Here is how to make it work if you're using radio buttons with style 3:

    find line 237, it starts with case '3' (this means the rollover effect will work when using style 3)

    there you find:
    if ($products_options->fields['attributes_image'] != '') {
    $tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton three" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . $products_options_details_noname . '</label></div>' . "\n";
    } else {

    replace this . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) .

    with this . '<a class="attribRoll" href="" onclick="return false;">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '<i>' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '</i>' . '</a>' .

    In a similar way you can make it work with other styles.

  3. #13
    Join Date
    Mar 2011
    Posts
    364
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    Is there a working demo?

  4. #14
    Join Date
    Aug 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    Thanks, this works great now.

  5. #15
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,006
    Plugin Contributions
    6

    Default Re: Attribute Rollovers - By Nineve

    The same change works with radio buttons style 4 under "case 4" as well.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  6. #16

    Default Re: Attribute Rollovers - By Nineve

    line 237 of what file? Please provide the file name and file path so that the community may benefit from your fix.

    Quote Originally Posted by dee_d_lady View Post
    I found out that this mod works only if you set Attribute Style for Radio Buttons/Checkbox to 0

    Here is how to make it work if you're using radio buttons with style 3:

    find line 237, it starts with case '3' (this means the rollover effect will work when using style 3)

    there you find:
    if ($products_options->fields['attributes_image'] != '') {
    $tmp_attributes_image .= '<div class="attribImg">' . zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton three" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . $products_options_details_noname . '</label></div>' . "\n";
    } else {

    replace this . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) .

    with this . '<a class="attribRoll" href="" onclick="return false;">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '<i>' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '</i>' . '</a>' .

    In a similar way you can make it work with other styles.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  7. #17
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,006
    Plugin Contributions
    6

    Default Re: Attribute Rollovers - By Nineve

    there's only one file included with the mod. attributes.php which should be in your CUSTOM folder
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  8. #18
    Join Date
    Jun 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    I am very new at zencart and the questions might sound dumb; but where do I download your rollover mod????
    Thanks
    Mayte

  9. #19

    Default Re: Attribute Rollovers - By Nineve

    Quote Originally Posted by mayte View Post
    I am very new at zencart and the questions might sound dumb; but where do I download your rollover mod????
    Thanks
    Mayte
    Scroll to the top of this page. Look for "Free Software Addons". Click it to go to the downloads section.

    Search for this mod by name "Attribute Rollovers"

    Most likely a list of mods with either of those words in the description will come up. Scroll the list until you find this mod. Click it for more information and to access the download link.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  10. #20
    Join Date
    Jun 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Attribute Rollovers - By Nineve

    Thanks I find it!
    Mayte

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Thumbnail rollovers
    By drumminlogan in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Sep 2007, 05:58 PM
  2. Cat Rollovers
    By IntelCos in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Mar 2007, 12:06 AM
  3. Javascript rollovers?
    By dockery in forum Basic Configuration
    Replies: 4
    Last Post: 6 Aug 2006, 03:40 AM

Bookmarks

Posting Permissions

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