Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    27
    Plugin Contributions
    0

    Default add a custom attribute

    Can I hard code a custom attribute on my product info page.

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

    Default Re: add a custom attribute

    Maybe, depending on what it really is that you want to happen... but why do you think you need to hard-code an attribute? And what sort of attribute is it?

    It won't be a real attribute that can be handled by the system unless it uses the regular database fields, and custom coding that instead of using the built-in facility would require good knowledge of the system.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: add a custom attribute

    I agree with Glenn. The whole point of attributes is to offer a very flexible way of tailoring products without the need for custom coding. What is it about this attribute which defeats Zen Cart's built-in abilities?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Dec 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: add a custom attribute

    I want to add choices to a product that would include images and input options.. for instance...

    Business Cards (main product)

    Backgrounds (Attributes)
    green (photo choice)
    template option 1 (text input choices)
    template option 2 (text input choices)
    template option 3 (text input choices)
    red (photo choice)
    template option 1 (text input choices)
    template option 5 (text input choices)
    template option 9 (text input choices)
    blue (photo choice)
    template option 2 (text input choices)
    template option 5 (text input choices)
    template option 7 (text input choices)

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: add a custom attribute

    If I understand your example, then the issue is that some of the attributes are conditional upon the values of others. This isn't something that Zen Cart supports and would need custom code.

    This would affect not only the product_info page, which merely displays the attributes as a form, but more significantly there would need to changes to the database structure to create the links, the attributes module to extract information form the database, the code that validates the information being added to the shopping cart and existing and new admin functions to create the linked attributes. This would require intermediate PHP and SQL knowledge and advanced knowledge of Zen Cart's structure.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Feb 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: add a custom attribute

    Quote Originally Posted by bobio View Post
    I want to add choices to a product that would include images and input options.. for instance...
    Code:
    Business Cards (main product)
    
          Backgrounds (Attributes)
               green (photo choice)
                       template option 1 (text input choices)
                       template option 2 (text input choices)
                       template option 3 (text input choices)
               red (photo choice)
                       template option 1 (text input choices)
                       template option 5 (text input choices)
                       template option 9 (text input choices)
               blue (photo choice)
                      template option 2 (text input choices)
                       template option 5 (text input choices)
                       template option 7 (text input choices)
    Maybe, this is a sample site that you want: http://www.bydesigncreations.ca/inde...products_id=73
    I want to build web like that too. Can anyone tell-and-help me how to build this web page? What is the module or script that site use?

  7. #7

    Default Re: add a custom attribute

    Quote Originally Posted by bobio View Post
    I want to add choices to a product that would include images and input options.. for instance...

    Business Cards (main product)

    Backgrounds (Attributes)
    green (photo choice)
    template option 1 (text input choices)
    template option 2 (text input choices)
    template option 3 (text input choices)
    red (photo choice)
    template option 1 (text input choices)
    template option 5 (text input choices)
    template option 9 (text input choices)
    blue (photo choice)
    template option 2 (text input choices)
    template option 5 (text input choices)
    template option 7 (text input choices)
    Instructions are here: https://www.zen-cart.com/tutorials/index.php?article=57

    If you still need help after reading at the link, then please post back here and I'll be happy to help :)

  8. #8
    Join Date
    Feb 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: add a custom attribute

    I would like to remove the parenthesis from the attribute display price. I don't want ($45.00) I just want the dropdown box to display $45.00.

    I found the answer to this once and can't seem to find it again. I'm doing things the right way this time (starting almost from scratch) with the override system things are working pretty good—just a pain getting everything the way it was...

    Thanks for any help.

    Phil

 

 

Similar Threads

  1. Custom size attribute
    By eleven01 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 11 Feb 2011, 05:25 PM
  2. Can I add a custom attribute form, without using built in attribute manager?
    By infocom in forum Setting Up Categories, Products, Attributes
    Replies: 16
    Last Post: 12 Apr 2010, 10:17 AM
  3. custom attribute styling...
    By FogJuice in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Aug 2008, 02:53 PM
  4. Need custom attribute
    By daneh in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 6 Jan 2008, 06:40 AM
  5. custom # of attribute images
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2007, 07:50 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