Zen Cart Logo
Forums / General Questions / How to create an attributes box?

How to create an attributes box?

Views: 657

Results 1 to 9 of 9
22 Jul 2011, 9:10 PM
#2
janemeechan avatar

janemeechan

New Zenner

Join Date:
Jul 2011
Posts:
8
Plugin Contributions:
0

Re: How to create an attributes box?

Obviously this forum isnt as good as its claiming to be! Dont matter i will find out from elsewhere!

22 Jul 2011, 11:07 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to create an attributes box?

Sometimes, if you do not get an answer ... it helps if you add on to your original thread and it will help people to see that you question has been overlooked or missed ... it also raises the question to the top so that if it did get missed, the volunteers on our Free Forum will see it and be able to help you ... :cool:

You would go to the Option Names Manager and make Option Names ...

Name
Type: TEXT
Sort Order: 10

Date of Birth: (day)
Type: Dropdown
Sort Order: 20

Date of Birth: (month)
Type: Dropdown
Sort Order: 30

Date of Birth: (year)
Type: TEXT
Sort Order: 40

Database
Type: Dropdown
Sort Order: 50

Format(s)
Type: Checkbox
Sort Order: 60

Then go to the Option Values Manager ...

Option Name: Date of Birth: (day)
Option Value: Select Day
Sort Order: 0

Option Name: Date of Birth: (day)
Option Value: 1
Sort Order: 1

Option Name: Date of Birth: (day)
Option Value: 2
Sort Order: 2

Option Name: Date of Birth: (day)
Option Value: 3
Sort Order: 3

Repeat to 31

Option Name: Date of Birth: (month)
Option Value: Select Month
Sort Order: 0

Option Name: Date of Birth: (month)
Option Value: January
Sort Order: 1

Option Name: Date of Birth: (month)
Option Value: February
Sort Order: 2

Repeat to December

Option Name: Database
Option Value: Select Country
Sort Order: 0

Option Name: Database
Option Value: England
Sort Order: 1

Repeat for all countries

Option Name: Format(s):
Option Value: Email
Sort Order: 10

Option Name: Format(s):
Option Value: CD
Sort Order: 20

Option Name: Format(s):
Option Value: Printed
Sort Order: 20

Go to the Attributes Controller ...

Find your Category ...

Find Your Product ...

Now build the Attributes from the Option Names and Option Values ...

Add their prices (if any) ...

On the Option Values for:
Select something

Set as:
Default YES
Display Only YES

You can find more information on Attributes, Option Names and Option Values in the Tutorials ...

23 Jul 2011, 7:44 PM
#4
janemeechan avatar

janemeechan

New Zenner

Join Date:
Jul 2011
Posts:
8
Plugin Contributions:
0

Re: How to create an attributes box?

Hi Linda Sorry its the box which the attributes are inside im trying to work out how to create. I dont know how to create it or get the product attributes inside the box the way it is in that site.

Thanks

jane

23 Jul 2011, 9:12 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to create an attributes box?

I am not sure what you mean by "the box which the attributes are inside" ...

Do you mean the TEXT box such as for the Name?

If you go to your Catalog ... Option Name Manager ... what do you see in the dropdown where it reads:
en: Order: (dropdown here) INSERT BUTTON

23 Jul 2011, 9:27 PM
#6
janemeechan avatar

janemeechan

New Zenner

Join Date:
Jul 2011
Posts:
8
Plugin Contributions:
0

Re: How to create an attributes box?

No on that website all the personalisation options are all neatly surrounded by a square box. Im trying to work out how to create that box so that i can place all my options inside it.

janet

23 Jul 2011, 9:45 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: How to create an attributes box?

That is an extremely simple CSS issue. The site you refer to uses this rule in its stylesheet.css:```
#productAttributes {
border: 1px solid #BFBFBF;
float: left;
margin: 5px 0 0 10px;
padding-left: 5px;
width: 100%;
}

Your attributes already have a "container" named #productAttributes; you just need to tell it how to be styled.
23 Jul 2011, 9:57 PM
#8
janemeechan avatar

janemeechan

New Zenner

Join Date:
Jul 2011
Posts:
8
Plugin Contributions:
0

Re: How to create an attributes box?

gjh42:

That is an extremely simple CSS issue. The site you refer to uses this rule in its stylesheet.css:```
#productAttributes {
border: 1px solid #BFBFBF;
float: left;
margin: 5px 0 0 10px;
padding-left: 5px;
width: 100%;
}

> Your attributes already have a "container" named #productAttributes; you just need to tell it how to be styled.

Ok you have lost me lol. If i already have it how do i activate it if thats the right word.

jane
23 Jul 2011, 10:34 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: How to create an attributes box?

If you are going to customize a website, you need to know something about CSS (https://www.w3schools.com is a good resource). Also look at the tutorials for template customizing advice.
You "activate" the box by adding a rule in /includes/templates/your_template/css/stylesheet.css. Search for #productAttributes. If it is not there, just add a new rule like the one I posted, probably at the bottom of the file to keep things organized. If it is there, add a border declaration like the one in red above.