Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Strange behavior.. Disappearing attributes...

    Strange issue..

    Have a product setup with two attributes. One attribute is a dropdown field and the other is a text field. One option in the dropdown attribute is setup as a "read-only" option so that customers will not bypass selecting an option for this product..

    Here's the issue.. IF a customer fails to select an option from the dropdown attribute (by choosing the "read-only" option) and clicks the add to cart button, you get an error message (as expected), but then the text attribute disappears. And when I say it disappears it doesn't just disappear form the display, it disappears form the page markup as well. (if you do a view source you will NOT see the text field in the markup at all)

    What the heck is going on here???

    Here's the product where you can see the issue: http://www(dot)tablelegworld(dot)com...8-Table-Height
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Strange behavior.. Disappearing attributes...

    Looks like some of the configuration items may be missing from the store's database. Pull up configuration group 0 (note the URL, it may have to be typed in manually) and see if the following are present for the store in question...

    Attachment 12680

    Note especially the option for "text prefix" (TEXT_PREFIX). This one is missing (take a peek at the "text" attribute on the product page).

    SQL to add these three options if missing (only pick the ones you need).
    Code:
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
    ('Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, now(), now(), NULL, NULL),
    ('Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, now(), now(), NULL, NULL),
    ('Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, now(), now(), NULL, NULL);
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Strange behavior.. Disappearing attributes...

    Thanks soo much!!!! That did the trick..

    I will look at config group 0 more when I get home to make sure nothing else is missing.. I inherited this site from someone else, and this isn't the first "missing" thing I found.. The previous webmaster removed parts of the layout that should/could easily be turned off via the admin or via some CSS magic.. It caused a great deal of issues when the owner needed modifications.. For example, I needed to replace the top menu bar only to discover large chunks of code from the header section were missing..

    Quote Originally Posted by lhungil View Post
    Looks like some of the configuration items may be missing from the store's database. Pull up configuration group 0 (note the URL, it may have to be typed in manually) and see if the following are present for the store in question...

    Attachment 12680

    Note especially the option for "text prefix" (TEXT_PREFIX). This one is missing (take a peek at the "text" attribute on the product page).

    SQL to add these three options if missing (only pick the ones you need).
    Code:
    INSERT INTO `configuration` (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES
    ('Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, now(), now(), NULL, NULL),
    ('Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, now(), now(), NULL, NULL),
    ('Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, now(), now(), NULL, NULL);
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,700
    Plugin Contributions
    11

    Default Re: Strange behavior.. Disappearing attributes...

    Might be a good time to just drop in a new template or an original version of the current template on a test machine. Get the kinks worked out there.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Strange behavior.. Disappearing attributes...

    Quote Originally Posted by dbltoe View Post
    Might be a good time to just drop in a new template or an original version of the current template on a test machine. Get the kinks worked out there.
    Indeed.. I did just that when I replaced the top menu with the CSS Horizontal Menu module.. Found far too many unnecessary hacks for my liking and just started fresh.. Only thing leftover from the original template is the stylesheet..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v139h Strange ZC email behavior
    By raphael in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2014, 03:51 PM
  2. Strange SSL Behavior
    By autoace in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 8 May 2011, 04:09 AM
  3. Strange hovering behavior
    By xrayeyes in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2007, 06:46 AM
  4. Very Strange Behavior
    By friends1976 in forum General Questions
    Replies: 1
    Last Post: 7 Apr 2007, 01:59 AM
  5. USPS Strange behavior
    By jplanet in forum Addon Shipping Modules
    Replies: 2
    Last Post: 19 May 2006, 09:03 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