Luca Posted February 9, 2020 at 01:53 PM Share Posted February 9, 2020 at 01:53 PM Hi, I have to calculate a custom field before stored in the database. I thought of using filters. I created a filter but it doesn't work suggestion please? <?php defined('MVC_FRAMEWORK') or die; function listing_save_pre($imponibile,$iva,$totale) { $imponibile = 'jr_serviceprice'; $iva = ($imponibile * 22)/100; $totale = ($imponibile + $iva); return $totale; } Clickfwd\Hook\Filter::add('listing_save_pre', 'listing_save_pre', 10); Link to comment
Alejandro Posted February 9, 2020 at 03:04 PM Share Posted February 9, 2020 at 03:04 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Luca Posted February 10, 2020 at 05:02 PM Author Share Posted February 10, 2020 at 05:02 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts