Skip to content

Instantly share code, notes, and snippets.

@Dominik-mg
Created March 26, 2021 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dominik-mg/f366d96195296a53f771863318804c0d to your computer and use it in GitHub Desktop.
Save Dominik-mg/f366d96195296a53f771863318804c0d to your computer and use it in GitHub Desktop.
<?php
namespace MgMinimumOrderValueExpressCheckout;
use Shopware\Components\Plugin;
class MgMinimumOrderValueExpressCheckout extends Plugin {
public static function getSubscribedEvents(): array
{
return [
'Enlight_Controller_Action_PostDispatchSecure_Frontend_Detail' => ['displayPaypalButtonFrontend', 100]
];
}
public function displayPaypalButtonFrontend(\Enlight_Controller_ActionEventArgs $args) {
$controller = $args->get('subject');
$view = $controller->View();
$view->assign('paypalUnifiedEcDetailActive', false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment