First upload
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{if $readonly }]
|
||||
[{assign var="readonly" value="readonly disabled"}]
|
||||
[{else}]
|
||||
[{assign var="readonly" value=""}]
|
||||
[{/if}]
|
||||
<tr>
|
||||
<td class="edittext">
|
||||
[{oxmultilang ident="OEPAYPAL_MOBILE_DEFAULT_PAYMENT"}]
|
||||
</td>
|
||||
<td class="edittext">
|
||||
<input class="edittext" type="checkbox" name="isPayPalDefaultMobilePayment" value='1'
|
||||
[{if $isPayPalDefaultMobilePayment}]checked[{/if}] [{$readonly}]>
|
||||
[{oxinputhelp ident="OEPAYPAL_HELP_MOBILE_DEFAULT_PAYMENT"}]
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,18 @@
|
||||
[{if $oViewConf->isExpressCheckoutEnabled()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/mobile/src/css/paypal_mobile.css')}]
|
||||
<div class="paypalExpressCheckoutBox">
|
||||
<form action="[{$oViewConf->getSslSelfLink()}]" method="post">
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<input type="hidden" name="cl" value="oepaypalexpresscheckoutdispatcher">
|
||||
<input type="hidden" name="fnc" value="setExpressCheckout">
|
||||
<input class="paypalCheckoutBtn" type="image" name="paypalExpressCheckoutButton"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/mobile/src/img/')}]checkout-paypal-medium-[{$oViewConf->getActLanguageAbbr()}].png"
|
||||
title="[{$oViewConf->getPayPalPaymentDescription()|strip_tags:false|trim|oxescape}]">
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<input id="displayCartInPayPal" type="hidden" name="displayCartInPayPal" value="[{if $oViewConf->sendOrderInfoToPayPalDefault()}]1[{else}]0[{/if}]"/>
|
||||
[{/if}]
|
||||
</form>
|
||||
<p class="paypalExpressCheckoutMsg">[{oxmultilang ident="OEPAYPAL_OR"}]</p>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,20 @@
|
||||
[{if $oViewConf->isExpressCheckoutEnabledInDetails() && !$oDetailsProduct->isNotBuyable()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/mobile/src/css/paypal_mobile.css')}]
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<div id="paypalExpressCheckoutDetailsBox" class="paypalExpressCheckoutBox paypalExpressCheckoutDetailsBox">
|
||||
<input type="hidden" name="oePayPalCancelURL" value="[{$oViewConf->getCurrentURL()}]"/>
|
||||
<input id="paypalExpressCheckoutDetailsButton" class="paypalCheckoutBtn"
|
||||
[{if !$blCanBuy}]disabled="disabled"[{/if}] type="image" name="paypalExpressCheckoutButton"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/mobile/src/img/')}]checkout-paypal-medium-[{$oViewConf->getActLanguageAbbr()}].png"
|
||||
title="[{$oViewConf->getPayPalPaymentDescription()|strip_tags:false|trim|oxescape}]">
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<input id="displayCartInPayPal" type="hidden" name="displayCartInPayPal" value="[{if $oViewConf->sendOrderInfoToPayPalDefault()}]1[{else}]0[{/if}]"/>
|
||||
[{/if}]
|
||||
<p class="paypalExpressCheckoutMsg">[{oxmultilang ident="OEPAYPAL_OR"}]</p>
|
||||
</div>
|
||||
[{oxscript add='$("#paypalExpressCheckoutDetailsButton").click(function (){$("<input />").attr("type", "hidden").attr("name", "doPaypalExpressCheckoutFromDetailsPage").attr("value", "true").appendTo(".js-oxProductForm");return true;});'}]
|
||||
[{oxscript include=$oViewConf->getModuleUrl('oepaypal','out/src/js/oepaypalonclickproceedaction.js') priority=10}]
|
||||
[{oxscript add='$( "#paypalExpressCheckoutDetailsButton" ).oePayPalOnClickProceedAction( {sAction: "actionExpressCheckoutFromDetailsPage", sForm: "#productinfo form.js-oxProductForm" } );'}]
|
||||
[{/if}]
|
||||
[{$smarty.block.parent}]
|
||||
[{oxstyle inWidget=true}]
|
||||
@@ -0,0 +1,65 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{if $oViewConf->isExpressCheckoutEnabledInDetails() && !$oDetailsProduct->isNotBuyable()}]
|
||||
[{if $oView->oePayPalShowECSPopup()}]
|
||||
<div id="ECConfirmation" class="container">
|
||||
<ul class="nav nav-list main-nav-list">
|
||||
<li>
|
||||
<a class="back hideECConfirmation" href="#">
|
||||
<span>[{oxmultilang ident="OEPAYPAL_BACK"}]</span>
|
||||
<i class="glyphicon-chevron-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
<p>
|
||||
[{if $oView->oePayPalGetArticleAmount() gt 1}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEMS_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{else}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEM_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{/if}]
|
||||
</p>
|
||||
<ul class="form">
|
||||
<li>
|
||||
<button id="actionAddToBasketAndGoToCheckout" type="submit" class="btn">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_ADD_ITEM"}]
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button id="actionNotAddToBasketAndGoToCheckout" type="submit" class="btn">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_DO_NOT_ADD_ITEM"}]
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket"}]"
|
||||
class="btn">[{oxmultilang ident="OEPAYPAL_MINIBASKET_DISPLAY_BASKET"}]</a>
|
||||
</li>
|
||||
<li>
|
||||
<button class="btn hideECConfirmation">[{oxmultilang ident="OEPAYPAL_CANCEL"}]</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[{oxscript include=$oViewConf->getModuleUrl('oepaypal','out/src/js/oepaypalonclickproceedaction.js') priority=10}]
|
||||
[{oxscript include=$oViewConf->getModuleUrl('oepaypal','out/mobile/src/js/ecconfirmation.js') priority=10}]
|
||||
[{*Change actions on button click*}]
|
||||
[{oxscript add='$( "#actionNotAddToBasketAndGoToCheckout" ).oePayPalOnClickProceedAction( {sAction: "actionNotAddToBasketAndGoToCheckout", sForm: "#productinfo form.js-oxProductForm"} );'}]
|
||||
[{oxscript add='$( "#actionAddToBasketAndGoToCheckout" ).oePayPalOnClickProceedAction( {sAction: "actionAddToBasketAndGoToCheckout", sForm: "#productinfo form.js-oxProductForm"} );'}]
|
||||
[{*Add same label to #persistentParam input*}]
|
||||
[{if $oView->oePayPalGetPersistentParam()}]
|
||||
[{oxscript add='$( "#persistentParam" ).val( "'|cat:$oView->oePayPalGetPersistentParam()|cat:'" );'}]
|
||||
[{/if}]
|
||||
[{*Add same values to selection list*}]
|
||||
[{if $oView->oePayPalGetSelection()}]
|
||||
[{foreach from=$oView->oePayPalGetSelection() item=selection key=key}]
|
||||
[{oxscript add='
|
||||
$( "#productSelections input[name=\'sel['|cat:$key|cat:']\']" ).val( "'|cat:$selection|cat:'" );
|
||||
var sSelectionName'|cat:$key|cat:' = $( "#productSelections div.dropdown:eq('|cat:$key|cat:') ul li a[data-selection-id='|cat:$selection|cat:']" ).text();
|
||||
$( "#productSelections div.dropdown:eq('|cat:$key|cat:') a span" ).text( sSelectionName'|cat:$key|cat:' );
|
||||
'}]
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
[{*EC confirmation*}]
|
||||
[{oxscript add='oECConfirmation.init()'}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,7 @@
|
||||
[{if $sPaymentID == "oxidpaypal"}]
|
||||
[{if $oViewConf->isStandardCheckoutEnabled()}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,34 @@
|
||||
[{if $sPaymentID == "oxidpaypal"}]
|
||||
[{if $oViewConf->isStandardCheckoutEnabled()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/mobile/src/css/paypal_mobile.css')}]
|
||||
<div id="paymentOption_[{$sPaymentID}]"
|
||||
class="payment-option [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]active-payment[{/if}]">
|
||||
<input id="payment_[{$sPaymentID}]" type="radio" name="paymentid" value="[{$sPaymentID}]" [{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]/>
|
||||
|
||||
<div class="paypalDescBox">
|
||||
<a href="#"><img class="paypalPaymentImg"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/mobile/src/img/')}]paypal-medium.png"
|
||||
border="0" alt="[{oxmultilang ident="OEPAYPAL_PAYMENT_HELP_LINK_TEXT"}]"></a>
|
||||
<a href="#" class="paypalHelpIcon">?</a>
|
||||
|
||||
[{assign var="paypalHelpLink" value="OEPAYPAL_PAYMENT_HELP_LINK"|oxmultilangassign}]
|
||||
[{oxscript add="$('.paypalPaymentImg, .paypalHelpIcon').click(function (){window.open('`$paypalHelpLink`','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=500, height=450');return false;});"}]
|
||||
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc|trim}]
|
||||
<div class="paypalPaymentDesc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->getRawValue()}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</div>
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<p class="paypalExpressCheckoutMsg">
|
||||
<input type="checkbox" id="displayCartInPayPal" name="displayCartInPayPal" value="1"
|
||||
[{if $oViewConf->sendOrderInfoToPayPalDefault()}]checked[{/if}]>
|
||||
<label for="displayCartInPayPal">[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL"}]</label>
|
||||
</p>
|
||||
[{/if}]
|
||||
</div>
|
||||
[{/if}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,3 @@
|
||||
<col width="10%">
|
||||
<col width="10%">
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,25 @@
|
||||
<td valign="top" class="listfilter first" height="20">
|
||||
<div class="r1">
|
||||
<div class="b1">
|
||||
<select name="paypalpayment" onChange="document.search.submit();">
|
||||
<option value="-1" style="color: #000000;">[{oxmultilang ident="OEPAYPAL_LIST_STATUS_ALL"}]</option>
|
||||
[{foreach from=$oPayments item=payment}]
|
||||
<option value="[{$payment->getId()}]" [{if $paypalpayment == $payment->getId()}]SELECTED[{/if}] >[{$payment->oxpayments__oxdesc->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td valign="top" class="listfilter first" height="20">
|
||||
<div class="r1">
|
||||
<div class="b1">
|
||||
<select name="paypalpaymentstatus" onChange="document.search.submit();">
|
||||
<option value="-1" style="color: #000000;">[{oxmultilang ident="OEPAYPAL_LIST_STATUS_ALL"}]</option>
|
||||
[{foreach from=$opaypalpaymentstatuslist item=field}]
|
||||
<option value="[{$field}]" [{if $spaypalpaymentstatus == $field}]SELECTED[{/if}] >[{oxmultilang ident='OEPAYPAL_STATUS_'|cat:$field}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,24 @@
|
||||
[{if $listitem->oxorder__oxstorno->value == 1}]
|
||||
[{assign var="listclass" value=listitem3}]
|
||||
[{else}]
|
||||
[{if $listitem->blacklist == 1}]
|
||||
[{assign var="listclass" value=listitem3}]
|
||||
[{else}]
|
||||
[{assign var="listclass" value="listitem"|cat:$blWhite}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{if $listitem->getId() == $oxid}]
|
||||
[{assign var="listclass" value=listitem4}]
|
||||
[{/if}]
|
||||
<td valign="top" height="15" class="[{$listclass}]">
|
||||
<div class="listitemfloating">
|
||||
<a href="Javascript:top.oxid.admin.editThis('[{$listitem->oxorder__oxid->value}]');" class="[{$listclass}]">[{$listitem->oxorder__paymentname->value}]</a>
|
||||
</div>
|
||||
</td>
|
||||
<td valign="top" height="15" class="[{$listclass}]">
|
||||
<div class="listitemfloating">
|
||||
<a href="Javascript:top.oxid.admin.editThis('[{$listitem->oxorder__oxid->value}]');"
|
||||
class="[{$listclass}]">[{oxmultilang ident='OEPAYPAL_STATUS_'|cat:$listitem->getPayPalPaymentStatus()}]</a>
|
||||
</div>
|
||||
</td>
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,13 @@
|
||||
<td class="listheader first" height="15">
|
||||
<a href="Javascript:top.oxid.admin.setSorting( document.search, 'oepaypal_order', 'oepaypal_paymentstatus', 'asc');document.search.submit();"
|
||||
class="listheader">
|
||||
[{oxmultilang ident="OEPAYPAL_PAYMENT_METHOD"}]
|
||||
</a>
|
||||
</td>
|
||||
<td class="listheader first" height="15">
|
||||
<a href="Javascript:top.oxid.admin.setSorting( document.search, 'oepaypal_order', 'oepaypal_paymentstatus', 'asc');document.search.submit();"
|
||||
class="listheader">
|
||||
[{oxmultilang ident="OEPAYPAL_SHOP_PAYMENT_STATUS"}]
|
||||
</a>
|
||||
</td>
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,8 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnCheckoutPage()}]
|
||||
<div id="basket-paypal-installment-banner"></div>
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal_installment.css')}]
|
||||
[{assign var="basketAmount" value=$oxcmp_basket->getPrice()}]
|
||||
[{include file="installment_banners.tpl" amount=$basketAmount->getPrice() selector=$oViewConf->getPayPalBannerCartPageSelector()}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,7 @@
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnCheckoutPage()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal_installment.css')}]
|
||||
[{assign var="basketAmount" value=$oxcmp_basket->getPrice()}]
|
||||
[{include file="installment_banners.tpl" amount=$basketAmount->getPrice() selector=$oViewConf->getPayPalBannerPaymentPageSelector()}]
|
||||
[{/if}]
|
||||
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,50 @@
|
||||
[{capture name="paypalExpressCheckoutFormContent"}]
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<input type="hidden" name="cl" value="oepaypalexpresscheckoutdispatcher">
|
||||
<input type="hidden" name="fnc" value="setExpressCheckout">
|
||||
<input type="hidden" name="oePayPalRequestedControllerKey" value="[{$oView->getClassKey()}]">
|
||||
<input type="image" name="paypalExpressCheckoutButtonECS" class="paypalCheckoutBtn"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/img/')}][{$oViewConf->getActLanguageAbbr()}]-btn-expresscheckout.png"
|
||||
title="[{$oViewConf->getPayPalPaymentDescription()|strip_tags:false|trim|oxescape}]">
|
||||
<div class="paypalExpressCheckoutMsg">
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<a href="#" class="paypalHelpIcon small"
|
||||
style="position: relative; float:left; display:inline-block; left: 0; margin-right:8px;">?</a>
|
||||
<div class="paypalHelpBox popupBox corners FXgradGreyLight shadow">
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL_HELPTEXT"}]
|
||||
</div>
|
||||
<input type="checkbox" name="displayCartInPayPal"
|
||||
value="1" [{if $oViewConf->sendOrderInfoToPayPalDefault()}]checked[{/if}]>
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL"}]
|
||||
[{/if}]
|
||||
</div>
|
||||
[{/capture}]
|
||||
|
||||
[{if $oViewConf->isExpressCheckoutEnabled() && (('user' != $oView->getClassKey()) || (('user' == $oView->getClassKey() && !$oxcmp_user)))}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal.css')}]
|
||||
[{$smarty.block.parent}]
|
||||
[{if 'user' == $oView->getClassKey()}]
|
||||
<div class="clearfix"></div>
|
||||
<div class="lineBox paypalExpressCheckoutBoxUser">
|
||||
<div id="paypalExpressCheckoutBox" class="col-xs-12">
|
||||
<form action="[{$oViewConf->getSslSelfLink()}]" method="post">
|
||||
<div class="panel panel-default oePayPalECSForm">
|
||||
[{$smarty.capture.paypalExpressCheckoutFormContent}]
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
[{else}]
|
||||
<div id="paypalExpressCheckoutBox" class="paypalExpressCheckoutBox">
|
||||
<form action="[{$oViewConf->getSslSelfLink()}]" method="post">
|
||||
<div>
|
||||
[{$smarty.capture.paypalExpressCheckoutFormContent}]
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{oxscript add='$(".paypalHelpIcon").hover(function (){$(this).parent(".paypalExpressCheckoutMsg").children(".paypalHelpBox").toggle();});'}]
|
||||
[{oxscript add='$(".paypalHelpIcon").click(function (){return false;});'}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,43 @@
|
||||
[{if $sPaymentID == "oxidpaypal" && $oViewConf->isStandardCheckoutEnabled()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal.css')}]
|
||||
<div class="well well-sm">
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_[{$sPaymentID}]" type="radio" name="paymentid" value="[{$sPaymentID}]"
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
|
||||
</dt>
|
||||
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
[{if $paymentmethod->getPrice() && $paymentmethod->oxpayments__oxaddsum->rawValue != 0}]
|
||||
[{if $oxcmp_basket->getPayCostNet()}]
|
||||
[{$paymentmethod->getFNettoPrice()}] [{$currency->sign}] [{oxmultilang ident="OEPAYPAL_PLUS_VAT"}] [{$paymentmethod->getFPriceVat()}]
|
||||
[{else}]
|
||||
[{$paymentmethod->getFBruttoPrice()}] [{$currency->sign}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
<div class="paypalDescBox">
|
||||
<a href="#"><img class="paypalPaymentImg"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/img/')}][{oxmultilang ident="OEPAYPAL_LOGO_IMG"}]"
|
||||
border="0" alt="[{oxmultilang ident="OEPAYPAL_PAYMENT_HELP_LINK_TEXT"}]"></a>
|
||||
<a href="#" class="paypalHelpIcon">?</a>
|
||||
[{assign var="paypalHelpLink" value="OEPAYPAL_PAYMENT_HELP_LINK"|oxmultilangassign}]
|
||||
[{oxscript add="$('.paypalPaymentImg, .paypalHelpIcon').click(function (){window.open('`$paypalHelpLink`','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=500, height=450');return false;});"}]
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc|trim}]
|
||||
<div class="paypalPaymentDesc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->getRawValue()}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</div>
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<p class="paypalExpressCheckoutMsg">
|
||||
<input type="checkbox" name="displayCartInPayPal" value="1"
|
||||
[{if $oViewConf->sendOrderInfoToPayPalDefault()}]checked[{/if}]>
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL"}]
|
||||
</p>
|
||||
[{/if}]
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
[{elseif $sPaymentID != "oxidpaypal"}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,17 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnProductDetailsPage()}]
|
||||
[{assign var="bannerAmount" value=$oxcmp_basket->getBruttoSum()}]
|
||||
[{if $oxcmp_basket->isPriceViewModeNetto()}]
|
||||
[{assign var="bannerAmount" value=$oxcmp_basket->getNettoSum()}]
|
||||
[{/if}]
|
||||
[{if ($oxcmp_basket->getArtStockInBasket($oDetailsProduct->getId()) === 0) && !$oxcmp_basket->hasProductVariantInBasket($oDetailsProduct)}]
|
||||
[{assign var="oPrice" value=$oDetailsProduct->getPrice()}]
|
||||
[{if $oDetailsProduct->isParentNotBuyable()}]
|
||||
[{assign var="oPrice" value=$oDetailsProduct->getVarMinPrice()}]
|
||||
[{/if}]
|
||||
[{assign var="productPrice" value=$oPrice->getPrice()}]
|
||||
[{assign var="bannerAmount" value=$bannerAmount+$productPrice}]
|
||||
[{/if}]
|
||||
|
||||
[{include file="installment_banners.tpl" amount=$bannerAmount selector=$oViewConf->getPayPalBannerProductDetailsPageSelector()}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,26 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{if $oViewConf->isExpressCheckoutEnabledInDetails() && !$oDetailsProduct->isNotBuyable()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal.css')}]
|
||||
<div id="paypalExpressCheckoutDetailsBox" class="paypalExpressCheckoutBox paypalExpressCheckoutDetailsBox">
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<input type="hidden" name="oePayPalCancelURL" value="[{$oView->oePayPalGetCancelUrl()}]"/>
|
||||
<input type="image" name="paypalExpressCheckoutButton" id="paypalExpressCheckoutDetailsButton"
|
||||
class="paypalExpressCheckoutDetailsButton" [{if !$blCanBuy}]disabled="disabled"[{/if}]
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/img/')}][{$oViewConf->getActLanguageAbbr()}]-btn-expresscheckout.png" title="[{$oViewConf->getPayPalPaymentDescription()|strip_tags:false|trim|oxescape}]">
|
||||
<div class="paypalExpressCheckoutMsg">
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<a href="#" class="paypalHelpIcon small">?</a>
|
||||
<div class="paypalHelpBox popupBox corners FXgradGreyLight shadow">
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL_HELPTEXT"}]
|
||||
</div>
|
||||
<input type="checkbox" name="displayCartInPayPal" value="1" [{if $oViewConf->sendOrderInfoToPayPalDefault()}]checked[{/if}]>
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL"}]
|
||||
[{/if}]
|
||||
</div>
|
||||
</div>
|
||||
[{oxscript add='$(".paypalHelpIcon").hover(function (){$(this).parent(".paypalExpressCheckoutMsg").children(".paypalHelpBox").toggle();});'}]
|
||||
[{oxscript add='$(".paypalHelpIcon").click(function (){return false;});'}]
|
||||
[{oxscript add='$("#paypalExpressCheckoutDetailsButton").click(function (){$("<input />").attr("type", "hidden").attr("name", "doPaypalExpressCheckoutFromDetailsPage").attr("value", "true").appendTo(".js-oxProductForm");return true;});'}]
|
||||
[{oxscript include=$oViewConf->getModuleUrl('oepaypal','out/src/js/oepaypalonclickproceedaction.js') priority=10}]
|
||||
[{oxscript add='$( "#paypalExpressCheckoutDetailsButton" ).oePayPalOnClickProceedAction( {sAction: "actionExpressCheckoutFromDetailsPage"} );'}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,106 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isExpressCheckoutEnabledInDetails() && !$oDetailsProduct->isNotBuyable()}]
|
||||
[{if $oView->oePayPalShowECSPopup()}]
|
||||
|
||||
[{if $oViewConf->getActiveTheme()=='flow'}]
|
||||
<div class="modal fade" id="popup1" tabindex="-1" role="dialog" aria-labelledby="popup1Label" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<span class="h4 modal-title" id="popup1Label"> </span>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
[{if $oView->oePayPalGetArticleAmount() gt 1}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEMS_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{else}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEM_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{/if}]
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
|
||||
<button id="actionAddToBasketAndGoToCheckout" type="submit" class="btn btn-default">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_ADD_ITEM"}]
|
||||
</button>
|
||||
<button id="actionNotAddToBasketAndGoToCheckout" type="submit" class="btn btn-default">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_DO_NOT_ADD_ITEM"}]
|
||||
</button>
|
||||
<div class="oePayPalPopupNav">
|
||||
<a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket"}]"
|
||||
class="btn btn-default">[{oxmultilang ident="OEPAYPAL_MINIBASKET_DISPLAY_BASKET"}]</a>
|
||||
|
||||
<button class="btn btn-default" data-dismiss="modal">[{oxmultilang ident="OEPAYPAL_CANCEL"}]</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
[{oxscript add="$('#popup1').modal('show');"}]
|
||||
|
||||
[{else}]
|
||||
|
||||
<div id="popupECS" class="popupBox corners FXgradGreyLight glowShadow">
|
||||
<img src="[{$oViewConf->getImageUrl('x.png')}]" alt="" class="closePop">
|
||||
|
||||
<p>
|
||||
[{if $oView->oePayPalGetArticleAmount() gt 1}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEMS_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{else}]
|
||||
[{oxmultilang ident="OEPAYPAL_SAME_ITEM_QUESTION" args=$oView->oePayPalGetArticleAmount()}]
|
||||
[{/if}]
|
||||
</p>
|
||||
|
||||
<div class="clear">
|
||||
<button id="actionAddToBasketAndGoToCheckout" type="submit" class="submitButton largeButton">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_ADD_ITEM"}]
|
||||
</button>
|
||||
<button id="actionNotAddToBasketAndGoToCheckout" type="submit" class="submitButton largeButton">
|
||||
[{oxmultilang ident="OEPAYPAL_BUTTON_DO_NOT_ADD_ITEM"}]
|
||||
</button>
|
||||
<div class="oePayPalPopupNav">
|
||||
<a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket"}]"
|
||||
class="textButton largeButton">[{oxmultilang ident="OEPAYPAL_MINIBASKET_DISPLAY_BASKET"}]</a>
|
||||
<button class="textButton largeButton closePop">[{oxmultilang ident="OEPAYPAL_CANCEL"}]</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[{oxscript include="js/widgets/oxmodalpopup.js" priority=10}]
|
||||
|
||||
[{*Show popup*}]
|
||||
[{oxscript add='$(function(){$("body").oxModalPopup({target: "#popupECS", openDialog: true});})'}]
|
||||
[{/if}]
|
||||
|
||||
[{oxscript include=$oViewConf->getModuleUrl('oepaypal','out/src/js/oepaypalonclickproceedaction.js') priority=10}]
|
||||
|
||||
[{*Change actions on button click*}]
|
||||
[{oxscript add='$("#actionNotAddToBasketAndGoToCheckout").oePayPalOnClickProceedAction({sAction: "actionNotAddToBasketAndGoToCheckout"});'}]
|
||||
[{oxscript add='$("#actionAddToBasketAndGoToCheckout").oePayPalOnClickProceedAction({sAction: "actionAddToBasketAndGoToCheckout"});'}]
|
||||
|
||||
[{*Add same amount to #amountToBasket input*}]
|
||||
[{oxscript add='$("#amountToBasket").val('|cat:$oView->oePayPalGetArticleAmount()|cat:');'}]
|
||||
|
||||
[{*Add same label to #persistentParam input*}]
|
||||
[{if $oView->oePayPalGetPersistentParam()}]
|
||||
[{oxscript add='$("#persistentParam").val("'|cat:$oView->oePayPalGetPersistentParam()|cat:'");'}]
|
||||
[{/if}]
|
||||
|
||||
[{*Add same values to selection list*}]
|
||||
[{if $oView->oePayPalGetSelection()}]
|
||||
[{foreach from=$oView->oePayPalGetSelection() item=selection key=key}]
|
||||
[{oxscript add='
|
||||
$("#productSelections input[name=\'sel['|cat:$key|cat:']\']").val("'|cat:$selection|cat:'");
|
||||
var sSelectionName'|cat:$key|cat:' = $("#productSelections div:eq('|cat:$key|cat:') ul li a[data-seletion-id='|cat:$selection|cat:']").text();
|
||||
$("#productSelections div:eq('|cat:$key|cat:') p span").text(sSelectionName'|cat:$key|cat:');
|
||||
'}]
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
|
||||
[{*Add same value to displayCartInPayPal checkbox*}]
|
||||
[{if $oView->oePayPalDisplayCartInPayPal() eq 0}]
|
||||
[{oxscript add='$("input[name=displayCartInPayPal]").attr("checked", false);'}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,11 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnCategoryPage()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getBruttoSum()}]
|
||||
[{if $oxcmp_basket->isPriceViewModeNetto()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getNettoSum()}]
|
||||
[{/if}]
|
||||
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal_installment.css')}]
|
||||
[{include file="installment_banners.tpl" amount=$paypalInstallmentPrice selector=$oViewConf->getPayPalBannerCategoryPageSelector()}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,11 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnSearchResultsPage()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getBruttoSum()}]
|
||||
[{if $oxcmp_basket->isPriceViewModeNetto()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getNettoSum()}]
|
||||
[{/if}]
|
||||
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal_installment.css')}]
|
||||
[{include file="installment_banners.tpl" amount=$paypalInstallmentPrice selector=$oViewConf->getPayPalBannerSearchPageSelector()}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,11 @@
|
||||
[{if $oViewConf->isModuleActive('oepaypal') && $oViewConf->showPayPalBannerOnStartPage()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getBruttoSum()}]
|
||||
[{if $oxcmp_basket->isPriceViewModeNetto()}]
|
||||
[{assign var="paypalInstallmentPrice" value=$oxcmp_basket->getNettoSum()}]
|
||||
[{/if}]
|
||||
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal_installment.css')}]
|
||||
[{include file="installment_banners.tpl" amount=$paypalInstallmentPrice selector=$oViewConf->getPayPalBannerStartPageSelector()}]
|
||||
[{/if}]
|
||||
|
||||
[{$smarty.block.parent}]
|
||||
@@ -0,0 +1,34 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isExpressCheckoutEnabledInMiniBasket()}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal.css')}]
|
||||
<div id="paypalExpressCheckoutMiniBasketBox" class="paypalExpressCheckoutBox">
|
||||
<form action="[{$oViewConf->getSslSelfLink()}]" method="post">
|
||||
<div>
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
<input type="hidden" name="cl" value="oepaypalexpresscheckoutdispatcher"/>
|
||||
<input type="hidden" name="fnc" value="setExpressCheckout"/>
|
||||
<input type="hidden" name="oePayPalCancelURL" value="[{$oViewConf->getCurrentURL()}]"/>
|
||||
<input type="image" name="paypalExpressCheckoutButton" id="paypalExpressCheckoutMiniBasketImage"
|
||||
src="[{$oViewConf->getModuleUrl('oepaypal','out/img/')}][{$oViewConf->getActLanguageAbbr()}]-btn-expresscheckout.png"
|
||||
title="[{$oViewConf->getPayPalPaymentDescription()|strip_tags:false|trim|oxescape}]">
|
||||
|
||||
<div class="paypalExpressCheckoutMsg">
|
||||
[{if $oViewConf->sendOrderInfoToPayPal()}]
|
||||
<a href="#" class="paypalHelpIcon small" id="paypalHelpIconMiniBasket">?</a>
|
||||
|
||||
<div id="paypalHelpBoxMiniBasket" class="paypalHelpBox popupBox corners FXgradGreyLight shadow">
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL_HELPTEXT"}]
|
||||
</div>
|
||||
<input type="checkbox" name="displayCartInPayPal"
|
||||
value="1" [{if $oViewConf->sendOrderInfoToPayPalDefault()}]checked[{/if}]>
|
||||
[{oxmultilang ident="OEPAYPAL_DISPLAY_BASKET_IN_PAYPAL"}]
|
||||
[{/if}]
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
[{oxscript add='$("#paypalHelpIconMiniBasket").hover(function (){$("#paypalHelpBoxMiniBasket").show();},function (){$("#paypalHelpBoxMiniBasket").hide();});'}]
|
||||
[{oxscript add='$("#paypalHelpIconMiniBasket").click(function (){return false;});'}]
|
||||
[{oxscript add='$("#paypalExpressCheckoutMiniBasketBox").appendTo($("#paypalExpressCheckoutMiniBasketBox").parent().children("p.functions"))'}]
|
||||
[{/if}]
|
||||
@@ -0,0 +1,16 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{if $oViewConf->isPayPalActive()}]
|
||||
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('oepaypal','out/src/css/paypal.css')}]
|
||||
|
||||
<div id="paypalPartnerLogo">
|
||||
<a href="#">
|
||||
<img src="[{$oViewConf->getModuleUrl('oepaypal','out/img/')}][{oxmultilang ident="OEPAYPAL_LOGO_IMG"}]"
|
||||
border="0" alt="[{oxmultilang ident="OEPAYPAL_PAYMENT_HELP_LINK_TEXT"}]">
|
||||
</a>
|
||||
|
||||
[{assign var="paypalHelpLink" value="OEPAYPAL_PAYMENT_HELP_LINK"|oxmultilangassign}]
|
||||
[{oxscript add="$('#paypalPartnerLogo').click(function (){window.open('`$paypalHelpLink`','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=500, height=450');return false;});"}]
|
||||
</div>
|
||||
[{/if}]
|
||||
Reference in New Issue
Block a user