diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index 8eccde38e..55d17c131 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -856,6 +856,13 @@ sub mergeProductsWithCommerce { #unlink '../../lib/WebGUI/Product.pm'; #unlink '../../lib/WebGUI/Operation/ProductManager.pm'; #unlink '../../lib/WebGUI/Macro/Product.pm'; + ##Disable the Product macro in the config file. You can't use the convenience method + #deleteFromHash since the macro name is in the value, not the key. + #my %macros = %{ $session->config->get('macros') }; + #foreach (my ($key, $value) = each %macros) { + # delete $macros{$key} if $value eq 'Product'; + #} + #$session->config->set('macros', \%macros); return 1; }