Zen Cart Logo
Forums / General Questions / Attributes required not working...

Attributes required not working...

Views: 2,137

Results 1 to 12 of 12
18 Mar 2011, 8:05 PM
#1
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Attributes required not working...

I am setting up Zen-Cart for the first time, and have pretty much everything configured and setup and working pretty well. I settled on Zen-Cart because of the functionality of the attributes section.

That being said, I'm having a few issues which are odd to say the least. If I used a Text field attribute, the required field function works fine and it requires the user to enter text. However, if you use the file upload attribute option, or the color radio button option, they required option is never enforced.

I did the search through the forum, and I found a few things from 2007 and 2010 that talked about this problem, the solutions didn't solve my issue.

I am using the latest version of Zen-Cart which is 1.3.9h. My store is located at http://www.weetchit.com/zcart

I'm hoping to make my store active in a few days. I'd really appreciate some help in getting this fixed. I'm just not sure where to look.

Thanks,
Wade

18 Mar 2011, 9:08 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attributes required not working...

I am using the latest version of Zen-Cart which is 1.3.9h.
I have not seen this with any install that I have enabled and there have been many

Did you add any 3rd party addons that affected any admin files?

18 Mar 2011, 10:19 PM
#3
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Re: Attributes required not working...

I have not installed ANY modules. All is stock install.

Wade

18 Mar 2011, 11:29 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attributes required not working...

I have not installed ANY modules. All is stock install.
Reload all your /admin files from a fresg expanded distribution of the same version you are using

19 Mar 2011, 4:00 AM
#5
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Re: Attributes required not working...

I did what you asked. The only thing I restored was the admin/includes/configure.php file so that all my settings worked the same.

I removed the attributes completely from the item, then reset the attributes, and got the same result.

Wade

19 Mar 2011, 12:30 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Attributes required not working...

The required option is for TEXT ...

For Radiobuttons and Dropdowns, you need to make an additional Option Value such as:
Pick a Color ...
Sort Order: 0
Display Only: Yes
Default: Yes

This forces a selection ...

For uploads, there is not a require option ... however, I believe someone might have made an add on for this but I have never used it ...

19 Mar 2011, 1:52 PM
#7
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Re: Attributes required not working...

That seems to have fixed the issue. I still need the ability to require a file upload. I may have to add that myself if there isn't already a mod for that.

Thanks for your help!

Wade

19 Mar 2011, 2:58 PM
#8
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Re: Attributes required not working...

I found the file upload mod and it worked. There was a small bug in the package that I had to fix, but it all seems to work now.

How do I get in touch with the author of a mod so that I can tell him about the minor bug that I fixed? Here is a link to the mod: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1685

There was nothing other than an author number?

Thanks for all your help!

Wade

22 Mar 2011, 11:56 AM
#10
thomkolton avatar

thomkolton

New Zenner

Join Date:
Mar 2011
Posts:
16
Plugin Contributions:
0

Re: Attributes required not working...

wwendorf:

I found the file upload mod and it worked. There was a small bug in the package that I had to fix, but it all seems to work now.

How do I get in touch with the author of a mod so that I can tell him about the minor bug that I fixed? Here is a link to the mod: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1685

There was nothing other than an author number?

Thanks for all your help!

Wade
Wade, I, too, need this mod. Can you document for me here what you changed? I'd really appreciate it.

BTW, did you notice that when you hit the "require" button on the attribute,m it turns red and not green?

22 Mar 2011, 12:29 PM
#11
wwendorf avatar

wwendorf

New Zenner

Join Date:
Mar 2011
Posts:
6
Plugin Contributions:
0

Re: Attributes required not working...

I didn't have the problem with the require button, but the problem I fixed was in \admin\includes\languages\english\attributes_controller.php

It was a simple fix, but I had to remove the letter f from in front of <?php on the very first line. It was crashing the program.

Wade

22 Mar 2011, 12:34 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attributes required not working...

I had to remove the letter f from in front of <?php on the very first line.
You might investigate why or what added it

It is not contained in a fresh distribution