Results 1 to 10 of 25

Hybrid View

  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!

 

 

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