www.webdeveloper.com
Results 1 to 4 of 4

Thread: change dropdown list to radio

  1. #1
    Join Date
    Dec 2010
    Posts
    4

    change dropdown list to radio

    hello

    how can I change dropdown list in available options for product to radio button ?

    which file i must rewrite ?

    Can someone help me? I am beginner but this is only one problem which I must done.

    Thank.

  2. #2
    Join Date
    Dec 2010
    Posts
    4
    .. my version Opencart is 1.4

  3. #3
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Changing from SELECT to RADIO is simple enough.
    Code:
    <select name="thisChoice" id="thisChoice">
      <option value="">Select</option>
      <option value="abc">abc</option>
      <option value="DEF">DEF</option>
      <option value="ghi">ghi</option>
      <option value="JKL">JKL</option>
    </select>
    Code:
    <input type="radio" name="thisChoice" id="thisChoice" value="">None
    <br /><input type="radio" name="thisChoice" id="thisChoice" value="abc">abc
    <br /><input type="radio" name="thisChoice" id="thisChoice" value="DEF">DEF
    <br /><input type="radio" name="thisChoice" id="thisChoice" value="ghi">ghi
    <br /><input type="radio" name="thisChoice" id="thisChoice" value="JKL">JKL
    Something important to remember - when you have a SELECT, it exists regardless of what option is selected, even the blank/default. RADIO inputs do not exist until one is checked. A good idea is to pick one RADIO input and default it to checked="checked", just to make sure the page that processes the data doesn't hiccup.

    ^_^

  4. #4
    Join Date
    Dec 2010
    Posts
    4
    ok, and which file contain this code ? (or code which must be changed )

    I want rewrite code and radio buttons will be in all products in "Available Options:".

    in which file I must rewrite and what?

    I think it is here:

    ../catalog/view/theme/default/template/product/product.tpl

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles