VirtueMart 1.1.x [ Old version - no longer supported ] > Shipping VM 1.1

How to Change Radio Button List to DropDown

(1/1)

vickies:
Hi Everyone, Im Vicky. Im using Joomla V 1.5.23 and Virtuemart V 1.1.9

I hv problem :( Im from indonesia and at indonesia there's many cities.. more than 50.. and i use standart module and add one by oneat shipment. but at shipment method appear radio button so so long.. because there's to many option.. can i ask how to change radio button to dropdown? actually there's somebody resolved this question, unfortunately he using joomla 2.5 and latest virtuemart. somebody can help me about this issue?

http://forum.virtuemart.net/index.php?topic=102198.0

i think i must change the script at template/checkout/list_shipping_method.tpl.php







<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: list_shipping_methods.tpl.php 1958 2009-10-08 20:09:57Z soeren_nb $
* @package VirtueMart
* @subpackage templates
* @copyright Copyright (C) 2009 soeren. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/

foreach($PSHOP_SHIPPING_MODULES as $shipping_module ) {
    $vmLogger->debug( 'Starting Shipping module: '.$shipping_module );
   if( file_exists( CLASSPATH. "shipping/".$shipping_module.".php" )) {
      include_once( CLASSPATH. "shipping/".$shipping_module.".php" );
   }
   if( class_exists ( $shipping_module )) {
      $SHIPPING = new $shipping_module();
      $SHIPPING->list_rates( $vars );
      echo "<br /><br />";
   }
}

?>

vickies:
anyone can help? :(

vickies:
still waiting for reply... anybody knews help pls.  :'(

lowmips:
You'll probably want to edit list_shipping_methods.tpl.php to echo out a "<select>" html element, starting before the "foreach..." block, and ending with a "</select>" after that block.  Then modify the standard shipping module to output "<option>" elements instead of the radio buttons.

Navigation

[0] Message Index

Go to full version