Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Display Read Only attribute in cart

    I have a site where certain items need to have a note saying "Final Sale. This item cannot be returned."

    This text needs to be visible not only on the product info page, but in the shopping cart and on the invoice. I thought the easiest way to handle this would be to create a "final sale" attribute.

    Using the read only attribute, the text appears in the product info, but not in the attributes list when the item is added to the cart.

    Does anyone know if it's possible to display it here?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Display Read Only attribute in cart

    Make it normal - required - selected
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Display Read Only attribute in cart

    Quote Originally Posted by kobra View Post
    Make it normal - required - selected
    I tried that and it displays on the product info page, but I am still not seeing this attribute in the shopping cart.

    I think it has something to do with the commented out code on the attributes module. Line 495 of attributes.php.
    PHP Code:
    // Read Only - just for display purposes
                          
    if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
                            
    //            $tmp_html .= '<input type="hidden" name ="id[' . $products_options_names->fields['products_options_id'] . ']"' . '" value="' . stripslashes($products_options->fields['products_options_values_name']) . ' SELECTED' . '" />  ' . $products_options->fields['products_options_values_name'];
                            
    $tmp_html .= $products_options_details '<br />';
                          } else {
                            
    $zv_display_select_option ++;
                          } 
    I tried playing around with this a little, but didn't get anywhere. Anything I touch on this line seems to cause problems with the display of the remaining attributes in the shopping cart, and causes the product image to disappear.

    Do you have any other suggestions?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Display Read Only attribute in cart

    I think it has something to do with the commented out code on the attributes module.
    File path & file name?
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Display Read Only attribute in cart

    Quote Originally Posted by kobra View Post
    File path & file name?
    includes/modules/attributes.php

    It's actually line 486 in the default file. My attributes module did have other modifications, but reverting back to the default did not solve my problem.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Display Read Only attribute in cart

    If you make it a radiobutton type, default selected, it can't be unselected and will display in the cart. It would be possible to hide the select circle with CSS so that it would appear as straight text in the info page.

  7. #7
    Join Date
    Apr 2011
    Posts
    38
    Plugin Contributions
    0

    Default Re: Display Read Only attribute in cart

    I'm re-opening this thread because I'm still curious about this issue...so do the read-only attributes not show up in the cart?

    Quote Originally Posted by kobra View Post
    Make it normal - required - selected
    ^What does this mean? Make normal - required- is that still valid?

    TH

 

 

Similar Threads

  1. v151 Something like the read only attribute that will display in the cart
    By DannyVarley in forum General Questions
    Replies: 0
    Last Post: 31 May 2013, 04:19 PM
  2. Hiding READ ONLY attribute
    By Endre in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Oct 2009, 11:17 PM
  3. read only attribute
    By bmpt in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Apr 2009, 10:52 PM
  4. Read Only Attribute
    By beowulf1066 in forum General Questions
    Replies: 3
    Last Post: 1 Mar 2007, 01:52 AM
  5. read only attribute value size too small/ import html in read only attribute value
    By nazzaw in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 22 Jan 2007, 03:49 PM

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