Support Forums

Old 03-25-2008, 04:01 PM   #1
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 12
objelland is on a distinguished road
Default Categories - radiobuttons

Hi All

I have searched this forum, but I cant find any threads saying anything about my little challenge.
I would like to generate radio buttons for each category in the check-out process, instead of images. The user will then mark one radio button and the click on another pushbutton for next step (going to package).
Does anyone know if this is possible?

Thanks

Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote
Old 03-25-2008, 04:33 PM   #2
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

I dont know your level, but yes this is possible and I think you will need the javascript onclick function.

Read up on it on google and get back its a bit much for you
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 03-25-2008, 04:39 PM   #3
Coder
 
Join Date: Mar 2006
Posts: 4,569
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

/checkout/step1.tpl.php loops through the categories and creates the dropdown with the following smarty/html

Code:
<tr>
	     <td valign="top" class="formleft">{$smarty.const.LANG_ADD_LISTING_SELECT_CAT}{$smarty.const.LANG_COLON}</td>
          <td valign="top" class="formright">
               <select name="section" id="section">
	                {foreach from=$getcats item=cat}
					<option value="{$cat.id}">{$cat.name}</option>
				{/foreach}
			</select>
		</td>
	</tr>
You would just repalce the dropdown stuff insode the loop and replace it with radio button html and it should work but may take soem work to get nice formatting.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 03-25-2008, 06:45 PM   #4
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 12
objelland is on a distinguished road
Default

Hi guys
Thank's for your feedback. I figured it out, and did it the way Lhotch described.
Thank you both of you!

Regards
Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Categories Page problems margaretm v3.1 Questions & Support 4 08-30-2007 07:05 AM
Place an Ad Categories Some Not Working daina11 v3.1 Questions & Support 2 08-03-2007 05:19 PM
Different template for categories? Mike-N-Tosh v3.1 Modules & Modifications 31 04-11-2007 07:29 AM
Prevent Browse Categories Table for hidden categories free2take v3.0 Questions & Support 3 05-12-2006 10:14 AM


All times are GMT -4. The time now is 04:08 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0