I have added a second flat rate shipping plugin, but when you configure it the parameter for Min Weight is missing. I need to restrict these to very specific sizes really, but since our stock is so limited I can do it by weight, but since there is no Min Weight parameter I can’t restrict the extra flat rate plugins.
I don’t understand PHP (or the internals of Joomla) well enough to know what is going on, but I do see that the version in eshop_flat2.php is 2.6.0 compared to 5.2.0 in eshop_flat.php. The getQuote function is also different.
I think I mentioned before that the extra shipping plugins also seem to have a mistake in the PHP file towards the end:
eshop_flat.php
Code:
$quoteData['flat'] = [
'name' => 'eshop_flat.flat',
'title' => Text::_('PLG_ESHOP_FLAT_TITLE'),
'desc' => Text::_('PLG_ESHOP_FLAT_DESC'),
'cost' => $cost,
'taxclass_id' => $params->get('taxclass_id'),
'text' => $text,
];
eshop_flat2.php
Code:
$quoteData['flat'] = array (
'name' => 'eshop_flat2.flat',
'title' => JText::_('PLG_ESHOP_FLAT2_DESC'),
'cost' => $cost,
'taxclass_id' => $params->get('taxclass_id'),
'text' => $text);
Description is missing and
Title takes the translated text from
Description?