Forums / Addon Templates / Flexible Attributes addon support

Flexible Attributes addon support

Views: 76,856

Results 261 to 274 of 274
23 Nov 2013, 6:43 PM
#261
gjh42 avatar

gjh42

Black Belt

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

Flexible Attributes addon 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:```
ALTER TABLE products_options MODIFY products_options_comment VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL;


or for longer comments:```
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.

23 Nov 2013, 7:37 PM
#262
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Re: Flexible Attributes addon support

Thanks so much for your help and your contribution. Did I mention you're a scholar and a gentleman?

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.

13 Mar 2014, 2:26 PM
#263
enc0de avatar

enc0de

New Zenner

Join Date:
Feb 2014
Posts:
4
Plugin Contributions:
0

Re: Flexible Attributes addon 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_page=product_info&cPath=15_5_20&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.

13 Mar 2014, 5:05 PM
#264
gjh42 avatar

gjh42

Black Belt

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

Re: Flexible Attributes addon support

What makes you think that this mod is what is causing your "attribute required" issue? Its code doesn't touch required status.

13 Mar 2014, 5:10 PM
#265
enc0de avatar

enc0de

New Zenner

Join Date:
Feb 2014
Posts:
4
Plugin Contributions:
0

Re: Flexible Attributes addon support

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.

13 Mar 2014, 5:19 PM
#266
gjh42 avatar

gjh42

Black Belt

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

Re: Flexible Attributes addon support

Als, which attribute(s) are you wanting to be "required", and how are you setting that requirement? Does it work if you switch to the Classic template? Did it work before you installed Flexible Attributes?

There is not a way in stock Zen Cart to force selection of one of a group of checkboxes, and I see that that product has mostly checkbox attributes except for the last one (radiobutton with one option preselected).

15 Mar 2014, 1:38 PM
#267
enc0de avatar

enc0de

New Zenner

Join Date:
Feb 2014
Posts:
4
Plugin Contributions:
0

Re: Flexible Attributes addon support

I figured it out here is the link for reference

http://royalsat.com/index.php?main_page=product_info&cPath=15_5&products_id=103

I wanted the attributes to change on selection of the drop down box ( 6 months, 12 months)

So i figured out a way with jquery to hide the 6 months attributes and show the the 12 month and the other way around.

Then i ran into a problem when someone chooses packages for 6 months then changes to 12 then all the packaged from 6 and 12 month will be added to the cart and that is a really big problem.

So i had to figure out a way to uncheck the checkboxes once they change the months package and i did but the check boxes where not getting unchecked when u see them but the values where unchecked. So after a bit of digging i also figured out i had to change the classes from checked to unchecked.

//Unchecks Checkbox values but not the visual effect so users will get confused

$(":checkbox").prop( "checked" , false );

// Changes the class to unchecked so users see its unchecked

 $('.icheckbox_minimal').removeClass('checked'); 

Now there was a another problem the radio buttons on the last grouped attributes are required. Now i have all the radio buttons for the 6 month and the 12 month in one group so if he has changed to 12 month and did not choose a radio then the package for the 6 month will be added witch is also a big problem so i had to figure out a hack for that as well.

So what i did was on value change of the 6 and 12 month it will unchecks all radios and change the class style to unchecked as well but now with this on. Customers are no longer required to choose one witch i thought was weird zen cart will not give any errors that one radio is required it will proceed normally.

//Unchecks all radios

 $(":radio").prop( "checked" , false ); 

//Changes the radio button class to unchecked

$('.iradio_minimal').removeClass('checked');

So the fix for the required radio problem was to manually have the code choose the the lowest priced attribute one drop down box value change.

when 6 months was chosen it will run these commands to insure the correct radio button was chosen

// Checks Defualt radio Box for 6 month package

  document.getElementById('attrib-4-16').checked = true; // Checks Default OSN box

// Changes checked radio button class to checked so user can see

  $('.iradio_minimal #attrib-4-16').parent().addClass("checked");

This was my solution I am sorry for my bad grammer but i am at work and i dont have much time before the boss comes back I wanted to share this with the community and if someone needs a custom job like this on their zencart let me know I wont charge much ;)

21 Mar 2014, 7:08 PM
#268
narata avatar

narata

New Zenner

Join Date:
Mar 2014
Location:
Florida
Posts:
6
Plugin Contributions:
0

Re: Flexible Attributes addon support

Does anyone know if Flexible attributes mod works with the attribute grid mod? I use the attribute grid mod to combine color and size options for my store.

The grid layout was working fine until I uploaded the Flexible Attribute mod. I would love to have both working so I can style my product listing as I want. Otherwise I have to make changes to all attributes which does not look as good.

Any help would be greatly appreciated.

14 Apr 2016, 11:40 PM
#270
dream9studios avatar

dream9studios

New Zenner

Join Date:
Sep 2012
Location:
Illinois
Posts:
24
Plugin Contributions:
0

Re: Flexible Attributes addon support

I've tried reading through this thread but I'm having quite a bit of trouble. I just started building this new shop last night and, yeah I need all the help I can get.

I have three attribute sets. Right now there are two on the top row and one in the bottom row. I'd like to make the bottom row attribute centered without messing up the text alignment. Here's a link to a sample product page.

I tried the following with no luck:

#rad-attrib-1 {clear: left; float: left;}
#rad-attrib-2 {float: left; clear:right;}
#rad-attrib-3 {clear: left; margin: 0 auto 0 auto}

I'd appreciate any and all help!

15 Apr 2016, 12:41 PM
#271
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Flexible Attributes addon support

Just a note that if your store is based on Zen Cart 1.5.5, there is built-in processing that assigns HTML id tags to the various attribute elements to allow for individual styling.

11 Mar 2018, 8:53 PM
#272
rjspomer avatar

rjspomer

Zen Follower

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

Re: Flexible Attributes addon support

Not sure what is happening I have tried changing the attribute to the ones displayed in the development tool box. The hide Please choose works. Can someone take a look at my dev site?

Thanks
http://www.tissue-box-covers.com/development/tissue-covers-rectangle-family-c-16_5/tissue-box-cover-american-walnut-burl-family-size-p-41.html

11 Mar 2018, 9:02 PM
#273
rjspomer avatar

rjspomer

Zen Follower

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

Re: Flexible Attributes addon support

I have used attrib-16-53 then wAttrib-16-53 and then wAttrib-53 and also attrib-53

First off I want to hide the Please select you cover height and Please select opening style

Then I would like the options to be side by side.

Also is there a way to replace the button with a highlighted box?

Thanks

This is version 15.5f

12 Mar 2018, 11:06 PM
#274
rjspomer avatar

rjspomer

Zen Follower

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

Re: Flexible Attributes addon support

Ok I have been able to hide the radio button on two attribute but not the corresponding label.

#attribImg-16-53{ display:none; }

the element looks like this labelattribsRadioButton fourA

I have not tried styling yet just stumped on trying the hide the " please select*******" label text.

Thanks