Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Reset attribute to "not required"

    Hi - I'm updating my site from 1.3.8a to 1.5.1. I have a lot of downloadable products. One of the attributes needs a text option available though it is not required. Somehow, I have ALL of them set for "Attribute Required for Text: Yes". In 1.3.8a this hasn't posed a problem. Not sure why.

    But in 1.5.1 it flags a notice in the shopping cart that text input is required. It is NEVER required, though sometimes a customer will want to add it. Is there a quick way to reset every product with attribute ID 878 to "Attribute Required for Text: No"?

    Thanks a million for your help!

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by Three Sisters View Post
    Hi - I'm updating my site from 1.3.8a to 1.5.1. I have a lot of downloadable products. One of the attributes needs a text option available though it is not required. Somehow, I have ALL of them set for "Attribute Required for Text: Yes". In 1.3.8a this hasn't posed a problem. Not sure why.

    But in 1.5.1 it flags a notice in the shopping cart that text input is required. It is NEVER required, though sometimes a customer will want to add it. Is there a quick way to reset every product with attribute ID 878 to "Attribute Required for Text: No"?

    Thanks a million for your help!
    Not sure if there is a built in ZC attribute adjustment, but one way would be through a SQL command to update all of the products that have that attribute identified. Not able to easily creat that command at the moment. Hopefully though someone can if I don't get back to it when I am able to look at the various tables and fields.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by mc12345678 View Post
    ...but one way would be through a SQL command to update all of the products that have that attribute identified. Not able to easily creat that command at the moment. Hopefully though someone can if I don't get back to it when I am able to look at the various tables and fields.
    I was expecting something like that. But I, who knows NOTHING about writing SQL commands, thought it might be a fairly simple thing. :)

    Thanks for the reply!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by Three Sisters View Post
    I was expecting something like that. But I, who knows NOTHING about writing SQL commands, thought it might be a fairly simple thing. :)

    Thanks for the reply!
    Was able to muddle through accessing a database to identify the following. Please backup your database (which is different than your files) before running this in your store's admin panel tools, install sql patches option.

    Code:
    Update products_attributes set attributes_required = '0' WHERE options_values_id = '878';
    Let me know of success/failure.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by mc12345678 View Post
    Was able to muddle through accessing a database to identify the following. Please backup your database (which is different than your files) before running this in your store's admin panel tools, install sql patches option.

    Code:
    Update products_attributes set attributes_required = '0' WHERE options_values_id = '878';
    Let me know of success/failure.
    Also, ofess thati forget whether the text attribute is under an option name or option value. The above SQL assumed it to be under option value. The command for updating the records based on option name is:

    Code:
    Update products_attributes set attributes_required = '0' WHERE options_id = '878';
    Please further identify which of these two was correct incase someone else has a similar problem and finds this thread.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by mc12345678 View Post
    Also, ofess thati forget whether the text attribute is under an option name or option value. The above SQL assumed it to be under option value. The command for updating the records based on option name is:

    Code:
    Update products_attributes set attributes_required = '0' WHERE options_id = '878';
    Please further identify which of these two was correct in case someone else has a similar problem and finds this thread.
    This was it... The text attribute is an option name rather than a value.

    I confess to having to change that id... Was totally looking at the wrong thing when I pulled that number out of the hat. Thankfully I have NOT dealt 878 option names!

    That made my day go sooo much better! Thanks a million!

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Reset attribute to "not required"

    Quote Originally Posted by Three Sisters View Post
    This was it... The text attribute is an option name rather than a value. I confess to having to change that id... Was totally looking at the wrong thing when I pulled that number out of the hat. Thankfully I have NOT dealt 878 option names!That made my day go sooo much better! Thanks a million!
    Glad that worked out. I also got to thinking about it and it didn't make sense for me to think a text attribute would be anything other than an option name. (Option values further provide information to be associated with the option name such as when wanting to display a list of items. There is no such "list" for a text field, therefore text fields "stop" at the option name entry.)Glad I posted both though, incase someone else comes along with the same type of issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. "Attribute Required for Text" - what would make it stop working?
    By aaelghat in forum Setting Up Categories, Products, Attributes
    Replies: 52
    Last Post: 1 Nov 2011, 04:33 AM
  2. Make an attribute "Required"
    By wulfgen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Oct 2009, 01:43 AM
  3. "New Products Added" Did Not Reset?
    By RocketFoot in forum General Questions
    Replies: 2
    Last Post: 1 May 2009, 01:30 PM
  4. Reset the "Also purchased" module in "product info"
    By Char3 in forum General Questions
    Replies: 6
    Last Post: 8 Jul 2007, 04:42 PM
  5. "Attribute Required for Text" not working...
    By aaelghat in forum General Questions
    Replies: 0
    Last Post: 21 Jun 2007, 09:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg