Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Text Box Dissapears

    Just discovered something rather worrying with regard to all the text box attributes on my site which have "Attribute Required for Text"

    Basically when the product page is first opened the text box appears however if it is left blank and the item is added to the cart the order goes through without coming up with the standard alert.

    If there are two attributes on a page say a drop down which is required as well the error comes up for that however this also causes the test box to dissapear.

    Any ideas?

    Url: http://www.celtmyth.co.uk/pages-prod...lour-wrap.html

    Cheers
    Brinley

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text Box Dissapears

    There is a setting on the Attributes specifically for Text Attributes to make them required ...

    Attribute Required for Text:
    No Yes
    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!

  3. #3
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: Text Box Dissapears

    Hi Linda - thanks for responding

    I have the Attribute required for text set to yes - see screenshot



    Any advice would be appreciated

    Cheers
    Brinley

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text Box Dissapears

    We fondly call this feature a bug ...

    Edit the /includes/functions/functions_lookup.php and around line 419 change the code to read:
    PHP Code:
    // text required validation
        
    if (ereg('^txt_'$option)) {
    //      $check_attributes = $db->Execute("select attributes_display_only, attributes_required from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$product_id . "' and options_id='" . ereg_replace('txt_', '', (int)$option) . "' and options_values_id='0'");
          
    $check_attributes $db->Execute("select attributes_display_only, attributes_required from " TABLE_PRODUCTS_ATTRIBUTES " where products_id='" . (int)$product_id "' and options_id='" ereg_replace('txt_'''$option) . "' and options_values_id='0'");
    // text cannot be blank
          
    if ($check_attributes->fields['attributes_required'] == '1' and empty($value)) {
            
    $check_valid false;
          }
        } 
    See if that works for you ...
    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!

  5. #5
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: Text Box Dissapears

    Hi Linda

    Thanks for having a pop at a solution.

    I made the amendments you suggested but still no change unfortunately - the text fields still dissapear if alongside dropdowns and also the text fields dont cause an alert if left blank.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text Box Dissapears

    odd ... I have it working in my version that is about to be released ...

    I will have to see if there is more changes that might effect this ...

    Meanwhile ... switch to Classic ... does it work then?
    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!

  7. #7
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: Text Box Dissapears

    I'm still on version 1.2.6 on all my sites - I assume u are running the latest version.

    I am still building up the courage to upgrade all the sites - do you know if this is a bug in the latest version as well?

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text Box Dissapears

    Actually ... this bug is not really in my v1.3.0.2 ... I know I just fixed it for the next release but we are cleaning code for other things and could of caused it ourselves and it has now been caught for the next release ...

    I have not had time to reinstall v1.3.0.2 to see if there are or are not issues ...

    It may have been a bug in that oldm old v1.2.6 that you are using that was fixed in v1.2.7 ...

    I have had no complaints until now about it that I can recall ... but your report of an issue did help me to locate it in the upcoming release to get it fixed before it gets released ...

    You might consider trying a test install of v1.2.7 into a test database with the demo products and see if you can break it again ...

    If not, then upgrading to at least v1.2.7 might be an option while you are working on an upgrade to v1.3.0.2 ...
    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!

  9. #9
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: Text Box Dissapears

    I think what i will do is just disable all text required attribs in my existing carts - that way they are still usuable - and then upgrade them all to the latest version in the next couple of weeks.

    Once again thanks for the brill help - u truly are a blessing for sorting out problems and giving (good) advice

    Cheers
    Brinley

  10. #10
    Join Date
    Sep 2006
    Posts
    22
    Plugin Contributions
    0

    Default Re: Text Box Dissapears

    Im actually having this same problem (not sure about them disappearing but it will still let me check out with no text entered)

    Is there a solution for this yet? or is it on my end? Its a fresh copy of 1.3.5 so I wouldnt think it would be on my end.

    Thanks!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. EZ-Pages footer menu dissapears on language change
    By lexicdark in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Dec 2015, 05:50 PM
  2. Mainpage Dissapears when Product is added
    By sweetharvey in forum Installing on a Windows Server
    Replies: 1
    Last Post: 12 Jul 2009, 04:46 AM
  3. Replace text/html description text box with GUI editor
    By coolman in forum General Questions
    Replies: 3
    Last Post: 4 Dec 2008, 10:36 PM
  4. Current Currency rate dissapears!!!!! I am so frustrated
    By nerous in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 25 Nov 2007, 06:54 AM
  5. Attribute Text does not show text entry box, HELP!
    By dinki in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 8 Nov 2006, 01:14 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