This commit is contained in:
rahulshukla-home 2020-11-16 15:03:25 +05:30
parent ce90a569f3
commit 581c33fa92
1 changed files with 6 additions and 4 deletions

View File

@ -15,9 +15,11 @@ class EventServiceProvider extends ServiceProvider
* @return void
*/
public function boot()
{
Event::listen('bagisto.shop.layout.body.after', static function(ViewRenderEventManager $viewRenderEventManager) {
$viewRenderEventManager->addTemplate('paypal::checkout.onepage.paypal-smart-button');
});
{
if (core()->getConfigData('sales.paymentmethods.paypal_smart_button.active')) {
Event::listen('bagisto.shop.layout.body.after', static function(ViewRenderEventManager $viewRenderEventManager) {
$viewRenderEventManager->addTemplate('paypal::checkout.onepage.paypal-smart-button');
});
}
}
}