Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Hide attributes dropdown when using attribute images and Element Below Image and Opt

Hide attributes dropdown when using attribute images and Element Below Image and Opt

Views: 1,392

Results 1 to 9 of 9
13 Jun 2011, 1:35 PM
#1
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Hide attributes dropdown when using attribute images and Element Below Image and Opt

latest zen cart

http://www.jarbon.com/index.php?main_page=product_info&cPath=36_54&products_id=143

If you scroll down you can see the list of attributes and corresponding swatch image, with options to use checkbox to select atribute.

i have done this by adding a swatch image to each option and then configuring the attribute name, in this instance 'Knit By Numbers', with these settings**: **Element Below Image and Option Name (number 4)

this is all working fine, but i would like to be able to hide the drop down list which remains, but cannot see how to achieve this

is this possible?

13 Jun 2011, 1:43 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

Assuming you wanted the dropdown gone on every product info page, you could add something like this to your stylesheet:

#productAttributes .main {display:none;}

13 Jun 2011, 1:46 PM
#3
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

thanks steve

only want to hide drop down for this page

css would be a great solution, but can't see how to single this one particular drop down for this page

would be good if could add css to specific pages, e.g. have unique body id for each page

not sure if this is possible or if there is a contrib, haven't found one thus far

13 Jun 2011, 1:49 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

Try this to see if she works then test it out..

Locate this:

includes/templates/jarbon/css/stylesheet.cssFind this:
#productAttributes select {
border: 1px solid #CFCFCF;
padding: 7px;
}

  1. Add this:
  1. display: none;
13 Jun 2011, 1:52 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

mattys:

would be good if could add css to specific pages, e.g. have unique body id for each page

You can. There's a file in includes/templates/classic/css that explains the basics.

13 Jun 2011, 1:53 PM
#6
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

thanks haredo

unfortunately this WILL hide selects for all products, which, as stated above, i do not want to happen, only need for this page

13 Jun 2011, 2:00 PM
#7
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

steve

i have looked at this file, doesn't give too much away, in fact, nothing really!

it says what it can do, but doesn't explain how, i also looked for common folder in classic, but no common folder there, not on my installation anyway, and i wouldn't have deleted it...

to style individual pages would require some kind of style in the body tag, you could then apply page specific formatting

do you know of any other sources of info for this?

13 Jun 2011, 2:11 PM
#9
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Hide attributes dropdown when using attribute images and Element Below Image and Opt

bingo

thanks steve, that was a good nudge in right direction