Skip to content

Commit e8bddf8

Browse files
authored
Merge pull request #438 from OXID-eSales/b-7.0.x-paypal-hint-PSPAYPAL-913
PSPAYPAL-913 Fix Paypal Express hint
2 parents 55bbdc7 + 58a5fa4 commit e8bddf8

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[{assign var="config" value=$oViewConf->getPayPalCheckoutConfig()}]
2-
[{$oViewConf->unsetPaypalSessionAndOrderId()}]
3-
[{if $blCanBuy && !$oDetailsProduct->isNotBuyable() && $config->isActive() && $config->showPayPalProductDetailsButton()}]
2+
[{if $blCanBuy && !$oDetailsProduct->isNotBuyable() && $config->isActive() && !$oViewConf->isPayPalExpressSessionActive() && $config->showPayPalProductDetailsButton()}]
43
[{include file="@osc_paypal/frontend/shared/paymentbuttons.tpl" buttonId="PayPalButtonProductMain" buttonClass="paypal-button-wrapper large" aid=$oDetailsProduct->oxarticles__oxid->value}]
54
[{/if}]
65
[{include file="@osc_paypal/frontend/shared/paypalexpresshint.tpl" withBreak=false}]

views/twig/extensions/themes/default/page/details/inc/productmain.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block details_productmain_tobasket %}
44
{{ parent() }}
55
{% set config = oViewConf.getPayPalCheckoutConfig() %}
6-
{% if blCanBuy and not oDetailsProduct.isNotBuyable() and config.isActive() and config.showPayPalProductDetailsButton() %}
6+
{% if blCanBuy and not oDetailsProduct.isNotBuyable() and config.isActive() and not oViewConf.isPayPalExpressSessionActive() and config.showPayPalProductDetailsButton() %}
77
{% include "@osc_paypal/frontend/paymentbuttons.html.twig" with {buttonId: "PayPalButtonProductMain", buttonClass: "paypal-button-wrapper", aid: oDetailsProduct.oxarticles__oxid.value} %}
88
{% endif %}
99
{% include "@osc_paypal/frontend/paypalexpresshint.html.twig" with {withBreak: false} %}

0 commit comments

Comments
 (0)