Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2016 00:36
Show Gist options
  • Save anonymous/62ea959f0ca11b7be8fe to your computer and use it in GitHub Desktop.
Save anonymous/62ea959f0ca11b7be8fe to your computer and use it in GitHub Desktop.
public function uninstall()
{ /*
$authnetpm = PaymentMethod::getByHandle('auth_net');
if(is_object($authnetpm)){
$authnetpm->delete();
}
$invoicepm = PaymentMethod::getByHandle('invoice');
if(is_object($invoicepm)){
$invoicepm->delete();
}
$paypalpm = PaymentMethod::getByHandle('paypal_standard');
if(is_object($paypalpm)){
$paypalpm->delete();
}
$shippingMethodType = ShippingMethodType::getByHandle('flat_rate');
if(is_object($shippingMethodType)) {
$shippingMethodType->delete();
}
$shippingMethodType = ShippingMethodType::getByHandle('free_shipping');
if(is_object($shippingMethodType)) {
$shippingMethodType->delete();
}
parent::uninstall();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment