Skip to content

Instantly share code, notes, and snippets.

@ollieread
Forked from anonymous/jacksite.php
Last active January 5, 2016 00:37
Show Gist options
  • Save ollieread/9784bf601d5d75a9eae4 to your computer and use it in GitHub Desktop.
Save ollieread/9784bf601d5d75a9eae4 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