posted 15 years ago
Hello,
You could modify the getDefaultShipmentMethods method, to return
selectItems whose value is shomething like a ShipmentMethod bean (Object), rather then a shipmentMethodCodeId. The ShipmentMethod bean can contain a property (via something like getName) name, that contains the name besides a property shipmentMethodCodeId. That way you'll have access to both.
Then you have to add a property customerSession.customer.defaultShipmentMethod of type ShipmentMethod to your customerSessoin.customer bean.
Something like (not checked for syntax errors btw):