Seems I’m still getting stuck. Maybe I can be pushed in the right direction? Suite is picking up my extension but not fully overriding the dictionary element I want. It’s trying to redeclare it twice. Once from the normal directory and again from the custom directory.
Step 1:
Copied
/modules/AOS_Products_Quotes/Line_Items.php
to
custom/modules/AOS_Products_Quotes/Line_Items.php
Step 2:
created file called ´_override_vardefs.phpin
custom/Extension/modules/AOS_Invoices//Ext/Vardefs/`
Step 3:
Populated _override_vardefs.php
with the following code
<?php
$dictionary['AOS_Invoices']['fields']['line_items']['function'] = array(
'name' => 'display_lines',
'returns' => 'html',
'include' => 'custom/modules/AOS_Products_Quotes/Line_Items.php');
?>
Step 4: Executed QRR
Now when I go to an invoice, I get an Ajax error and the invoice page wont load.
Looking at my httpd error_log I have the following error:
PHP Fatal error: Cannot redeclare display_lines()
(previously declared in /var/www/html/SSIDemo/custom/modules
/AOS_Products_Quotes/Line_Items.php:25) in /var/www/html/SSIDemo/modules
/AOS_Products_Quotes/Line_Items.php on line 222,
referer: http://192.168.1.157/SSIDemo/index.php?action=ajaxui