Forums / Setting Up Categories, Products, Attributes / Requiring some text (attribute) when placing order...

Requiring some text (attribute) when placing order...

Views: 4,670

Results 1 to 16 of 16
12 Dec 2008, 9:47 PM
#1
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Requiring some text (attribute) when placing order...

I'm hoping someone can help me figure out why you can add an item to the cart without first typing some required text. I thought I set up the attributes correctly but it's not working.

Here's link to the product on our site I'm referring to...

http://www.thewindcutter.com/shop/index.php?main_page=product_info&products_id=464

The "Camcorder Brand & Model Number" and the "Measurement of camcorder's mic area (width x height)" are the two I'm trying to require but I can add the product to the cart without filling these fields in first.

Anyone have any idea what the problem is?

Thanks!
Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

12 Dec 2008, 11:47 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

When you add the text attribute to a product, I think the last ATTRIBUTE FLAGS box on the right (the bright red one) selects "required" status for text. Make sure you select YES radio button in that red box before you click insert button.

20 years a Zencart User

12 Dec 2008, 11:59 PM
#3
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

Thanks for the reply. That's already enabled. :(

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

13 Dec 2008, 4:33 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Requiring some text (attribute) when placing order...

There is a bug caused by an add-on that is related to the TEXT attribute that I cannot recall off the top of my head that would break the require on this ...

Think ... think ... think ... where are all our smart helpers ... :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Dec 2008, 8:13 PM
#5
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

Are you maybe referring to this?

http://www.zen-cart.com/forum/showpost.php?p=408898&postcount=10

I don't have Google Site Map add-on, though. Should I still run this SQL Patch that you posted there?

Thanks for your help.

Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

14 Dec 2008, 5:06 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Requiring some text (attribute) when placing order...

That's the one and there is something about Image Handler in there as well ...

I do not use either, but they appear to cause a problem in how they construct things ...

Be sure to make proper backups before making changes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Dec 2008, 7:04 PM
#7
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

Thanks, Linda. This seems to have fixed it. I tested it and had to go back and fill in the required text, yea!

In case anyone else needs this...

  1. Go to Tools | Database Backup MYSQL and backup your database. Database Backup MYSQL is an add-on for backing up your database. If you don't have it, get it here:

Backup MYSQL Plugin

(Of course, if you know how, you can also use phpMyAdmin to do your backup.)

  1. After you backup, go to Tools | Install SQL Patches

  2. Paste in the following code (make sure you have no extra spaces at the end)...

INSERT INTO `configuration` VALUES ('', 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, '2007-03-19 17:57:39', '2007-03-19 17:57:39', NULL, NULL);
INSERT INTO `configuration` VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');
  1. Click "Send" and hope nothing goes wrong!

  2. After I clicked "Send" I was presented with a plain white page with the following text and thought for sure I just wrecked everything!

1062 Duplicate entry 'IH_VERSION' for key 2
in:
[INSERT INTO configuration VALUES ('', 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, '2007-06-06 16:47:03', NULL, 'zen_cfg_textarea_small(');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

  1. Instead of going back with the BACK button, I went to the Admin home page (I had to log-in again).

  2. I went to my test product, tried to add it to the cart and Voila! "Sorry, you need to fill something in first!"

Hope this helps if anyone has this same problem.

Thanks again, Linda!

Very sincerely,
Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

11 Jan 2009, 4:04 PM
#8
pixeldiva avatar

pixeldiva

New Zenner

Join Date:
Feb 2008
Posts:
7
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

Rebekah you're a life saver :-) I had exactly the same problem, luckily I found your post at the first try which saved me countless hours of trying to figure this out. Thank you for sharing!
Pixel Diva

8 Jun 2010, 8:02 PM
#9
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

This fixed my issue with the "Required" option not working. Well done!

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

30 Mar 2011, 12:49 AM
#10
pizza392 avatar

pizza392

New Zenner

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

Re: Requiring some text (attribute) when placing order...

the text attribute doesn't work correctly on 1.39h
this bug has been found from 1.38, i wonder why it still be the problem on 1.39h?

16 Aug 2011, 1:42 AM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Requiring some text (attribute) when placing order...

It's not a bug in Zen Cart. It's a bug in certain contribs that update the database incorrectly. Follow the instructions in this thread to fix it:

http://www.zen-cart.com/forum/showthread.php?p=1056323#post1056323

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2011, 5:26 PM
#12
michaelchu avatar

michaelchu

Zen Follower

Join Date:
Nov 2011
Posts:
121
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

swguy:

It's not a bug in Zen Cart. It's a bug in certain contribs that update the database incorrectly. Follow the instructions in this thread to fix it:

http://www.zen-cart.com/forum/showthread.php?p=1056323#post1056323

It appears that this fix worked for IH2 but not for for IH3 as I have, still looking for a solution to this problem for ZC 1.3.9 and IH3. Any help would be appreciated.

15 Nov 2011, 5:39 PM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Requiring some text (attribute) when placing order...

I suspect you have another problem - the use of IH3 vs IH2 shouldn't have anything to do with this.
Check these three files vs. a fresh 1.3.9h download:

includes/classes/shopping_cart.php
includes/modules/attributes.php
includes/modules/pages/shopping_cart/header_php.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Nov 2011, 1:24 AM
#14
michaelchu avatar

michaelchu

Zen Follower

Join Date:
Nov 2011
Posts:
121
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

swguy:

I suspect you have another problem - the use of IH3 vs IH2 shouldn't have anything to do with this.
Check these three files vs. a fresh 1.3.9h download:

includes/classes/shopping_cart.php
includes/modules/attributes.php
includes/modules/pages/shopping_cart/header_php.php

Thanks for the suggestion, I did a file comparison and they are identical, but for safe measures I uploaded the 3 suggested files from the original ZC install files. Still does not work, customer can bypass the "Required" attribute and check out. Everything else is working beautifully, this is very frustrating.

12 Dec 2011, 7:53 AM
#15
webstar59 avatar

webstar59

New Zenner

Join Date:
Jun 2011
Location:
California
Posts:
63
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

Thanks this fixed the requiered text field Problem

THANKS AGAIN Ajeh and rebekah :wink:

12 Dec 2011, 8:11 AM
#16
webstar59 avatar

webstar59

New Zenner

Join Date:
Jun 2011
Location:
California
Posts:
63
Plugin Contributions:
0

Re: Requiring some text (attribute) when placing order...

I had installed a mod on my site for a test and removed it.

This mod was (Fast and Easy Checkout)