Shipping plugin - hide price in options
we are fine-tuning our shipping plugin based on pickup plugin.
1/ Usually, all prices are the same and we are storing price also in one variable. Is it possible to hide price from select options?
The most important part of calculate() function is:
$deliveries[$i++] = array( 'id' => $rate['id'], 'name' => $rate['location'], 'currency' => $currency, 'rate' => $delivery_price, 'est_delivery' => '' );
Each option in select box contains price, which is also written next to the plugin name. I would like to hide price from each option:
2/ We have added custom option for filtering location by regions. We are using solution from topic (https://support.webasyst.com/18875/modify-user-interface-in-shipping-selection-for-customers/#comment58075). Custom controls are rendered after selection of this plugin by customer. Select with all location is visible all the time, but these controls not. Is it possible to preorder custom control before classical select? To put our select fog regions before list of locations.
Thank for advices,