|
|
#1 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 12 ![]() |
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 |
|
|
|
|
|
#2 |
|
The Master
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45 ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Coder
Join Date: Mar 2006
Posts: 4,569
Rep Power: 111 ![]() ![]() |
/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>
|
|
|
|
|
|
#4 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 12 ![]() |
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |