Black Belt
- Join Date:
- Jul 2005
- Location:
- Upstate NY
- Posts:
- 21,874
- Plugin Contributions:
- 8
Post #181 by gjh42
In Attributes Controller, what do you have for each of the attributes in the orange box labeled Default Attribute to be Marked Selected:?
Black Belt
In Attributes Controller, what do you have for each of the attributes in the orange box labeled Default Attribute to be Marked Selected:?
New Zenner
Wow! Why did I do that????
Thank you!
Last question:
I need to create Category (tournament) reports listing both products for that specific category and all of their option choices, preferably in xls format.
I have proprietary tournament management software that will import xls or csv.
I did take the precaution to create unique product model numbers for each category (tournament).
I know how to get around in MS Access but not too confident writing queries in mySQL.
What is your recommendation?
TIA,
David
Black Belt
Find someone who is expert in MySQL to advise you on the selects you need;)
I know nothing about MS Access, but you could use SQL statements from Zen Cart files like /includes/modules/attributes.php to guide you on selecting information from the database. Look at your db in phpMyAdmin (from your hosting control panel) to see all of the fields in the attribute-related tables.
https://www.w3schools.com has good tutorials for SQL, and you can go to http://dev.mysql.com/ for specific syntax etc.
New Zenner
Thanks for the recommendation.
I don't mind learning the SQL necessary for task but I'd like to see a working example in ZC to get me started.
Thanks,
David
Black Belt
Check out the attributes.php file for a relevant example of this.
New Zenner
Digesting it now, Thanks.
Totally Zenned
I was trying to see if there was a mod that makes certain attributes dependent upon another, but from what I read and hear that is not available. So I was wondering if flexible attributes can help with this.
Here is what I am trying to do. My site sells picture frames. One option (attribute) is: Add Single Mat (yes or no). If they select yes they want mat, then I would like to display 2 other attributes which are Mat Color, Mat Width.
There is different pricing according on what they select. I am afraid with all three showing, confusion and mistakes could be made which means I could have to refund mistakes or ask for more money. Meaning, if someone selects no on the first option, I don't want the colors or width to show since they are dependent upon the first attribute. Plus there are many colors so hiding unless they select yes, would be beneficial to the site.
Please see it in action here: http://www.framesforlife.com/copy-examples-c-18/new-frame-example-1-p-21
Could I hide two attributes with flexible attributes according to whether or not they select yes on the first. Something like:
#wAttrib-10 {Don't know} /*If this is yes then 11 and 12 below show*/
#wAttrib-11 {Don't know}/*If attrib-10 is set to yes this displays. If not it hides*/
#wAttrib-12 {Don't Know}/*If attrib-10 is set to yes this displays. If not it hides*/
```Just wondering if something like this would work?
Building a better web, one site at a time: Dayton Web Design
Black Belt
Sorry, it takes javascript to make that kind of dependency, or custom PHP coding which would require a page refresh.
Totally Zenned
Thank you Black Belt. It was worth a try.
Building a better web, one site at a time: Dayton Web Design
New Zenner
I'm using Flex-Attributes on ZCv1.5.0
I have my attibute label on the left side of a text box, "Weight". I also want to add "lbs." to the right side of the box. Is this possible?
Would this be done in the CSS? How?
Same as above except I would like to add a comment below the text box.
TIA
New Zenner
Does this mod currently work with 1.5.0?
Oh, looks like it's working for someone at least. :)
Black Belt
Neither of the two modified files in the mod package has changed in v1.5.0, so there should be no reason for it not to work.
Black Belt
slingblade01 - You could probably add the "lbs." using the CSS :after pseudo-class, something like this:
#yourInputId:after {content: " lbs.";}
I would need to see your site to know the exact selector to use in your case.
New Zenner
I was having trouble with my radio button problems and found a good solution...
All in the flexible .css
.attribImg input[type="radio"]{
cursor: pointer;
width: 10px;
height: 10px;
position: relative;
top: 70px;
left: 30px;
}
.attribImg label {cursor: pointer;}
here's the example
http://www.bowtieit.pcriot.com/index.php?main_page=product_info&cPath=1_4&products_id=1
My question is, is there anyway to change the color or look of the radio button?
Black Belt
As far as I know, those are set by the browser and not changeable. I would be happy to be shown wrong:)
Totally Zenned
Can't color radio buttons.. But here's an article that provides links to articles which discuss CSS styling options/methods for form elements:
http://speckyboy.com/2009/07/02/20-resources-and-tutorials-for-creative-forms-using-css/
_stardust_:
I was having trouble with my radio button problems and found a good solution...
All in the flexible .css
.attribImg input[type="radio"]{
cursor: pointer;
width: 10px;
height: 10px;
position: relative;
top: 70px;
left: 30px;
}
.attribImg label {cursor: pointer;}
>
> <http://www.bowtieit.pcriot.com/index.php?main_page=product_info&cPath=1_4&products_id=1>
>
> My question is, is there anyway to change the color or look of the radio button?
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Black Belt
Thanks, Diva! I've seen info like this before, but this is a nice concentrated dose of it.
Totally Zenned
gjh42:
Thanks, Diva! I've seen info like this before, but this is a nice concentrated dose of it.
You're welcome..:smile: I gotta lot of similar aggregated resources like this I use for various things....
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
New Zenner
hi, is this mod working for 1.5 does anybody know?
Black Belt
The two stock files that Flexible Attributes modifies have not changed since I wrote the mod, so it should work fine as is.
Tell staff why this post should be reviewed.