Forums / Setting Up Categories, Products, Attributes / download attribute - I want it set but not visible

download attribute - I want it set but not visible

Locked

Views: 1,685

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Mar 2009, 4:00 AM
#1
pglenn avatar

pglenn

New Zenner

Join Date:
Jan 2008
Posts:
42
Plugin Contributions:
0

download attribute - I want it set but not visible

ok so my site is about 95% done. yippee!!!

i will be adding several (actually MANY) products that are downloadable images. I have successfully created a couple products, and tested that I was able to pay for and then download one. However, I would like for the download attribute to be both pre-checked (which it is now) and to be invisible. in other words, I dont want the customer to even see the download checkbox/attribute, I just want it to be set "behind the scenes" and then have the download option avaulable after payment. how do I do that?

Patrick

26 Mar 2009, 4:12 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: download attribute - I want it set but not visible

A link to see your page?

You can set the attribute to
visibility: hidden;

so it will be fully present but invisible.
In case this is a problem with search engines, you could use

position: absolute;
left: -9999px;

to move the display off the screen.

26 Mar 2009, 3:54 PM
#3
pglenn avatar

pglenn

New Zenner

Join Date:
Jan 2008
Posts:
42
Plugin Contributions:
0

Re: download attribute - I want it set but not visible

gjh42:

A link to see your page?

You can set the attribute to
visibility: hidden;

so it will be fully present but invisible.
In case this is a problem with search engines, you could use

position: absolute;
left: -9999px;

to move the display off the screen.

where/how do I set the visibility of an attribute to hidden?

26 Mar 2009, 4:11 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: download attribute - I want it set but not visible

In your stylesheet. A more specific answer will depend on seeing what you have, so as not to break something else.

26 Mar 2009, 8:31 PM
#5
pglenn avatar

pglenn

New Zenner

Join Date:
Jan 2008
Posts:
42
Plugin Contributions:
0

Re: download attribute - I want it set but not visible

gjh42:

In your stylesheet. A more specific answer will depend on seeing what you have, so as not to break something else.

so unfortunately i cant define an individual attribute to be hidden? I have to make all attributes of one type, or all attributes period, to be hidden?

well I have class "wrapperAttribsOptions" which surrounds my download checkbox, but i cant make that hidden as it would also hide any future attribute that I want displayed. correct? then there is class "optionName back" which i guess i could make hidden but then any option would be hidden not just download options, again correct?

26 Mar 2009, 9:10 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: download attribute - I want it set but not visible

Those are considerations, yes. That is why I wanted to see your site live, to best address your particular situation.
Each option name will have its own id applied to some part of its input, and this may be useable to hide the one you want. If not, there should be a simple edit to the attributes code to put that id in a place where you can use it.