Re: Flexible Attributes support
Add to your stylesheet_flexible_attributes.css
Code:
#productAttributes {position: relative;}
#wAttrib-4 {position: relative; border: 1px solid #000000; padding: 0.8em; margin-top: 1em;}
#wAttrib-4>h3 {position: absolute; top: -1.8em; background: #ffffee; padding: 0 0.5em;}
#wAttrib-5 {position: absolute; left: 25em; top: 8.8em}
Adjust to taste.
This positions the "last name" relative to the whole attributes container, so if the first name box changes position, they will no longer line up, and you will have to change the last name position to match.
The other sets of attributes can be handled the same way, adjusting dimensions as required.
Re: Flexible Attributes support
Ooh yeah that looks just like it!
If I start adding in different attributes with different sort orders will I need to have a different stylesheet for each product?
Re: Flexible Attributes support
You might. If you run into issues with different products, then it will be time to deal with it. No biggie, you would just need to make a p_###.css stylesheet for each applicable product (### = the product id) with the relevant unique rules.
This stylesheet will only be loaded for the specific product, so you won't have a mess of different files clogging your browser.
Re: Flexible Attributes support
ok. Thank you good sir, you are a scholar and a gentleman.
Re: Flexible Attributes support
Hi. Me again.
I'm trying to get lengthier attribute comments but I keep getting cut off at around 64 characters and I can't seem to find an option to increase that. I notice that the NY Faerie Festival example has some pretty lengthy comments with multiple paragraphs and I'm wondering how I too can achieve that?
Re: Flexible Attributes support
I had to alter a field in the database, don't remember exactly which one right now. I think I mentioned it in the readme...
Yep:
If you want to increase the length of Option Name comments allowed from the standard 64 characters, you will need to modify a database setting.
In your admin > Tools > Install SQL Patches, you may copy and paste this code and send (only do this if you need to):
For up to 255 characters:
Code:
ALTER TABLE products_options MODIFY products_options_comment VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;
or for longer comments:
Code:
ALTER TABLE products_options MODIFY products_options_comment TEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;
You might want to check if the "latin1_swedish_ci" is still correct for recent Zen Cart versions/installations. I would examine your existing version of the field in the db and coordinate with that.
Re: Flexible Attributes support
Thanks so much for your help and your contribution. Did I mention you're a scholar and a gentleman?
Quote:
Originally Posted by
gjh42
I think I mentioned it in the readme...
I was searching the forums for the answer and (what an oversight!) never even thought to look at the readme. Thanks again.
Re: Flexible Attributes support
Hi,
I am having problem with this plugin on Zen Cart version 1.5 for some reason what ever attribute is required will not be required anymore can anyone give me a quick fix or hack via jquery or anything.
http://royalsat.com/index.php?main_p...products_id=92
Now the last attribute is required first i thought it was because of my jquery code but it turns out its from the pluggin.
Re: Flexible Attributes support
What makes you think that this mod is what is causing your "attribute required" issue? Its code doesn't touch required status.
Re: Flexible Attributes support
Quote:
Originally Posted by
gjh42
What makes you think that this mod is what is causing your "attribute required" issue? Its code doesn't touch required status.
Maybe I only noticed after i downloaded and installed the plugin.
I only have 2 plugins one is flex atrribute and the other is CKEditor.
Either way can someone help me figure this out.
Thank you.