Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Need help with tpl_modules_attributes.php

    Guys i need help to understand tpl_modules_attributes.php file.

    I am adding alot of readonly images as attributes to each product just as extra info.

    At the moment pictures i added are shown in vertical position, but i want then to be next to eachother. I know i have to delete <br class="clearBoth" /> somewhere at tpl_modules_attributes.php i do not know which one exacly.

    Also option name values are shown at myn product page at the moment i want to delete them.

    At the folowing link you can see how it looks right now:

    http://www.witgoedextra.nl/wxt/studi...1/ombra1ss-p-1

    at the pictures that is made in paint you can see how i want it to be :

    http://yfrog.com/5n82700735j

    I hope anyone can push me in the right direction

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need help with tpl_modules_attributes.php

    Did you try to edit the Option Name after you made it to change the way the images layout for that Option Name?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Need help with tpl_modules_attributes.php

    Hi Ajeh, tnx for reply. i am not sure if i did understand your question right.

    Did you try to edit the Option Name after you made it to change the way the images layout for that Option Name?

    I only have 2 option names. I do have alot of option values for each of those. Untill now i did not made any changes for image layout becouse i am a litle bit afraid for edit tpl_modules_attributes.php


    I think i have to delete one of the breaking lines in there but i dont know which one.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need help with tpl_modules_attributes.php

    Before you jump in trying to change the code ... try changing the setting on the Option Name itself by hitting edit and setting:
    Attribute Images per Row: 5 Attribute Style for Radio Buttons/Checkbox: 0


    Image Styles:
    0= Images Below Option Names
    1= Element, Image and Option Value
    2= Element, Image and Option Name Below
    3= Option Name Below Element and Image
    4= Element Below Image and Option Name
    5= Element Above Image and Option Name
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need help with tpl_modules_attributes.php

    Add to yolur stylesheet_flexible_attributes
    Code:
    #wAttrib-2 .attribsOptions {clear: both;}
    .attribImg {height: 88px;}
    .attribImg+br {display: none;}
    #productTellFriendLink {clear: both;}
    Some of these may not be necessary after making those settings. It looks like only four images will fit on a row, though.

  6. #6
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Need help with tpl_modules_attributes.php

    Thank you guys you helped me alot in good direction. I need 1 more think. How can i delete teks under those images and tekst on the right side of option name. Like in pic i uploaded.

    http://yfrog.com/ngrttrj

    I'd like to delete this tekst and place where it shoud be so not only hide it.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need help with tpl_modules_attributes.php

    Adjust your stylesheet_flexible_attributes.css like this:
    Code:
    #wAttrib-1, #wAttrib-2 {border: none;}
    #wAttrib-1 .attribsOptions, #wAttrib-2 .attribsOptions {clear: both; border: 1px solid #000000;}
    .attribImg {height: 88px;}
    .attribImg+br, #wAttrib-1 div.back, #wAttrib-2 div.back {display: none;}
    #productTellFriendLink {clear: both;}
    To remove the text under each image, change the setting Ajeh mentioned:
    Image Styles:
    0= Images Below Option Names

    If you have only the images, you can have more to a row, and you can make their height smaller in the stylesheet.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need help with tpl_modules_attributes.php

    If my way, the Zen Cart way, works when you change the template ... then I would think that your template is the issue and you will need to find where it is old or out of date with the Admin commands ...

    Glad to hear it does work with a good template ...

    Now you just have to figure out what is wrong with your template ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Nov 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Need help with tpl_modules_attributes.php

    Ajeh i think we missunderstood eachother. In classic template i still see the tekst under images, so problem still not solved. I tryed bouth templates with different settings in option name settings.(tryed all of them).

    I think i have to do it in source code. I upload pic where you can see which tekst/description i mean.

    Thanks for all coments so far.

    http://yfrog.com/n8tfttj

    rapro

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need help with tpl_modules_attributes.php

    And if you go to the Configuration ... Product Info ...
    Product Info - Show Option Values Name Below Attributes Image
    Product Info - Show the name of the Option Value beneath the Attribute Image?
    0= off 1= on
    and turn off the Option Value from showing under the Attribute Image?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v137 Need help with PHP 5.2 to 5.4
    By mtcyclist in forum General Questions
    Replies: 5
    Last Post: 11 Feb 2014, 08:22 PM
  2. How to change a tpl_modules_attributes.php?
    By Miri4413 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 May 2008, 08:57 PM
  3. Need help with index.php
    By wforeman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 May 2007, 02:31 AM
  4. Need help with PHP...Please...
    By zenrajan in forum General Questions
    Replies: 1
    Last Post: 11 Mar 2007, 03:43 AM
  5. Replies: 0
    Last Post: 9 Jan 2007, 04:38 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