Hi,
You can override the view "plugin | listing" in order to display the price and restriction.
Part 1 :
<th class="title"><?php echo JText::_('HIKA_NAME');?></th>
<?php if($this->plugin_type == 'shipping') { /* begin of code to add */ ?>
<th class="title"><?php echo JText::_('PRODUCT_PRICE');?></th>
<th class="title"><?php echo JText::_('HIKA_RESTRICTIONS');?></th>
<?php } /* end of code to add */ ?>
<th class="title"><?php echo JText::_('HIKA_TYPE');?></th>
Part 2 :
$currentPlugin = null;
if(isset($this->plugins[ $plugin->$p_type ])) {
$currentPlugin = $this->plugins[ $plugin->$p_type ];
$plugin->$p_published = $plugin->$p_published && $currentPlugin->published;
}
// Begin of code to add
if(empty($this->currencyClass))
$this->currencyClass = hikashop_get('class.currency');
if(empty($this->zoneClass))
$this->zoneClass = hikashop_get('class.zone');
if(!empty($plugin->plugin_params))
$plugin->plugin_params = unserialize($plugin->plugin_params);
if(!empty($plugin->shipping_params))
$plugin->plugin_params = unserialize($plugin->shipping_params);
if(!empty($plugin->payment_params))
$plugin->plugin_params = unserialize($plugin->payment_params);
// End of code to add
?>
<tr class="row<?php echo $k;?>" id="<?php echo $id;?>">
Part 3 :
<td>
<a href="<?php echo hikashop_completeLink('plugins&plugin_type='.$this->plugin_type.'&task=edit&name='. $plugin->$p_type .'&subtask='.$this->plugin_type.'_edit&'.$p_id.'='.$plugin->$p_id);?>"><?php
echo $plugin->$p_name;
if(empty($plugin->$p_name))
echo '<em>' . JText::_('NO_NAME') . '</em>';
?></a>
</td>
<?php
// Begin of code to add
if($this->plugin_type == 'shipping') {
?>
<td><?php
if(bccomp($plugin->shipping_price, 0, 3))
echo $this->currencyClass->displayPrices(array($plugin), 'shipping_price', 'shipping_currency_id');
if(isset($plugin->plugin_params->shipping_percentage) && bccomp($plugin->plugin_params->shipping_percentage,0,3)) {
echo '<br/>';
echo $plugin->plugin_params->shipping_percentage.'%';
}
?></td>
<td><?php
$restrictions=array();
if(!empty($plugin->plugin_params->shipping_min_volume))
$restrictions[] = JText::_('SHIPPING_MIN_VOLUME') . ':' . $plugin->plugin_params->shipping_min_volume . $plugin->plugin_params->shipping_size_unit;
if(!empty($plugin->plugin_params->shipping_max_volume))
$restrictions[] = JText::_('SHIPPING_MAX_VOLUME') . ':' . $plugin->plugin_params->shipping_max_volume . $plugin->plugin_params->shipping_size_unit;
if(!empty($plugin->plugin_params->shipping_min_weight))
$restrictions[] = JText::_('SHIPPING_MIN_WEIGHT') . ':' . $plugin->plugin_params->shipping_min_weight . $plugin->plugin_params->shipping_weight_unit;
if(!empty($plugin->plugin_params->shipping_max_weight))
$restrictions[] = JText::_('SHIPPING_MAX_WEIGHT') . ':' . $plugin->plugin_params->shipping_max_weight . $plugin->plugin_params->shipping_weight_unit;
if(isset($plugin->plugin_params->shipping_min_price) && bccomp($plugin->plugin_params->shipping_min_price, 0, 5)) {
$plugin->shipping_min_price = $plugin->plugin_params->shipping_min_price;
$restrictions[] = JText::_('SHIPPING_MIN_PRICE') . ':' . $this->currencyClass->displayPrices(array($plugin), 'shipping_min_price', 'shipping_currency_id');
}
if(isset($plugin->plugin_params->shipping_max_price) && bccomp($plugin->plugin_params->shipping_max_price, 0, 5)) {
$plugin->shipping_max_price = $plugin->plugin_params->shipping_max_price;
$restrictions[] = JText::_('SHIPPING_MAX_PRICE') . ':' . $this->currencyClass->displayPrices(array($plugin), 'shipping_max_price', 'shipping_currency_id');
}
if(!empty($plugin->plugin_params->shipping_zip_prefix))
$restrictions[] = JText::_('SHIPPING_PREFIX') . ':' . $plugin->plugin_params->shipping_zip_prefix;
if(!empty($plugin->plugin_params->shipping_min_zip))
$restrictions[] = JText::_('SHIPPING_MIN_ZIP') . ':' . $plugin->plugin_params->shipping_min_zip;
if(!empty($plugin->plugin_params->shipping_max_zip))
$restrictions[] = JText::_('SHIPPING_MAX_ZIP') . ':' . $plugin->plugin_params->shipping_max_zip;
if(!empty($plugin->plugin_params->shipping_zip_suffix))
$restrictions[] = JText::_('SHIPPING_SUFFIX') . ':' . $plugin->plugin_params->shipping_zip_suffix;
if(!empty($plugin->shipping_zone_namekey)) {
$zone = $this->zoneClass->get($plugin->shipping_zone_namekey);
$restrictions[] = JText::_('ZONE') . ':' . $zone->zone_name_english;
}
echo implode('<br/>',$restrictions);
?></td>
<?php } /* end of code to add */ ?>
A similar code will be present in the next version of HikaShop.
It is not recommend to download from HikaShop 2.2.0 because the plugin system was highly modified.
Regards,