Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    13
    Plugin Contributions
    0

    Default [not a bug]1.5 Both TEXT_INVALID_SELECTION and TEXT_INVALID_USER_INPUT showing for fa

    1.5 clean install, Zenlight box, ckeditor and FedEx installed. Site under development http://undercart.bnjgraphics.com/

    Both TEXT_INVALID_SELECTION and TEXT_INVALID_USER_INPUT showing for failed input on a required attribute text field.

    It should be just the TEXT_INVALID_USER_INPUT showing for a failed input of a required attribute field

  2. #2
    Join Date
    Sep 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: [not a bug]1.5 Both TEXT_INVALID_SELECTION and TEXT_INVALID_USER_INPUT showing fo

    I worked out the following fix fro this:
    File name:
    /includes/classes/shopping_cart.php

    line 1688
    Replace the below:
    Code:
    if ($check == false) {
                $the_list .= TEXT_ERROR_OPTION_FOR . '<span class="alertBlack">' . zen_options_name($key) . '</span>' . TEXT_INVALID_SELECTION . '<span class="alertBlack">' . (zen_values_name($value) == 'TEXT' ? TEXT_INVALID_USER_INPUT : zen_values_name($value)) . '</span>' . '<br />';
              }
    With:

    Code:
    if ($check == false) {
    		if (zen_values_name($value) == 'TEXT') { 
    			$the_list .= TEXT_ERROR_OPTION_FOR . '<span class="alertBlack">' . zen_options_name($key) . '</span>' .  '<span class="alertBlack">' . (zen_values_name($value) == 'TEXT' ? TEXT_INVALID_USER_INPUT : zen_values_name($value)) . '</span>' . '<br />';
    			}
    			else {
                $the_list .= TEXT_ERROR_OPTION_FOR . '<span class="alertBlack">' . zen_options_name($key) . '</span>' . TEXT_INVALID_SELECTION . '<span class="alertBlack">' . (zen_values_name($value) == 'TEXT' ? TEXT_INVALID_USER_INPUT : zen_values_name($value)) . '</span>' . '<br />';
    			}
              }
    Works for me

 

 

Similar Threads

  1. Replies: 2
    Last Post: 1 Oct 2008, 08:11 PM
  2. Call for Price - is showing BOTH text and image on product page...
    By jpnm in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Apr 2008, 06:18 PM
  3. Call for price and price both showing on the page
    By Worgazza in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Aug 2007, 04:39 PM
  4. UNIQUE and INDEX keys should not both be set for column `configuration_key`
    By blind1 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 Jun 2007, 02:14 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR