Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Sweden
    Posts
    94
    Plugin Contributions
    4

    red flag Product options types

    Hi I want to add an extra product options type. This should be a special dropdown menu and it could not get fixed by option name and value.

    To tell you that I know that I talking about Product Options Type

    this is the list that now can be used.
    Dropdown
    Text
    Radio
    Checkbox
    File
    Read only

    I need an extra for dropdown not the default. And I DONT ask for a if or else function to default options.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product options types

    Could you give a real world example of how you want to use this as it may already be built into Zen Cart and I am just not understanding for sure what it is you are trying to do with it ...
    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
    Sep 2008
    Location
    Sweden
    Posts
    94
    Plugin Contributions
    4

    Default Re: Product options types

    The codes in attribute.php are not perfect. It should be better with a clean code and not as now.
    There is as i wrote this types: Dropdown, Text, Radio, Checkbox, File, Read only.

    Now you have to jump up and down in the code to find what you looking for. A better way is to use the case function for each types in one place in code and not in different places. This gives more lines but that is not a problem.

    Each types should use one case and then why use so many elses?
    why not this types for an example:
    Dropdown
    Text
    Radio
    Checkbox
    File
    Read only
    Image Dropdown <== This is what I missing.
    Attributes image

    and then why is not Dropdown built as a case and as default calling for that case?

    I am New to PHP and it should take a time to change this page but if no one can help me only to add the extra dropdown function I start to change it by myself. PHP is not so diff. from ASP there I am a pro builder.

    And all moded function for image dropdown is crap just now so you dont need to ask me to use them.

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Product options types

    No one denies that the current coding is bad (mostly inherited from OSC)
    Improvement to attributes is already planned for next version btw.

    I dont know how pro you are, but your attitude doesnt say so.
    It doesnt make people want to help you at all.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Sep 2008
    Location
    Sweden
    Posts
    94
    Plugin Contributions
    4

    Default Re: Product options types

    Sorry Yellow1912. That was not that attitude I had when I wrote that. I have a happy attitude to Zen Cart and this forum.

    My reason to that it sounds like bad attitude is the language. English is not my everyday language and here it also techical.

    I tried to keep it short and that maybe I should not do.

    About pro builder Yes I am but this is not ASP and with only one months of build in PHP it is a little bit harder to clean up attribute.php page. Most of the other page in ZC is nice and clean.

    If it come a new and clean attribute.php in next version, someone must have start up to clean it up? If so is it possible to take part of that changes?

 

 

Similar Threads

  1. Different Shipping Options for Different Customer Types
    By scottmcclean in forum Built-in Shipping and Payment Modules
    Replies: 42
    Last Post: 27 Mar 2013, 03:53 PM
  2. v151 Why isn't Product - General one of the Admin Deniable Product Types?
    By lat9 in forum Customization from the Admin
    Replies: 0
    Last Post: 23 Dec 2012, 10:10 AM
  3. v150 Additional Filters, New Product Types, and additional product display options
    By Limitless in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Aug 2012, 07:36 PM
  4. One of product types not show up on the New product listing
    By BouldTerier in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Feb 2007, 02:11 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