Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paypal+ #6

Open
vanilla-thunder opened this issue Mar 1, 2017 · 3 comments
Open

paypal+ #6

vanilla-thunder opened this issue Mar 1, 2017 · 3 comments

Comments

@vanilla-thunder
Copy link
Owner

bääääh....

@wolkenkrieger
Copy link

wolkenkrieger commented Mar 1, 2017

Das ist nicht sooo dramatisch :D

In der payment.tpl wird um den Inhalt des Blocks "select_payment" ein Div gespannt und der Button bekommt noch die ID "paymentNextStepBottom".

[{block name="select_payment"}]
                                                        <div class="ppwall_blind_outer_placeholder">
                                                            [{if $sPaymentID == "oxidcreditcard"}]
                                                            [{include file="page/checkout/inc/payment_oxidcreditcard.tpl"}]
                                                            [{elseif $sPaymentID == "oxiddebitnote"}]
                                                            [{include file="page/checkout/inc/payment_oxiddebitnote.tpl"}]
                                                            [{else}]
                                                            [{include file="page/checkout/inc/payment_other.tpl"}]
                                                            [{/if}]
                                                        </div>
                                                        [{/block}]
<button id ="paymentNextStepBottom" type="submit" name="paymentid" value="[{$sPaymentID}]" class="btn btn-success pull-right btn-lg">
                                                                [{oxmultilang ident="GLOW_PAY_WITH" args=$paymentmethod->oxpayments__oxdesc->value }] <i class="fa fa-caret-right"></i>
                                                            </button>

Und in payment_other.tpl eingefügt:

oben

<div class="ppwall_blind_inner_placeholder" style="width: 100%;">
   <input id="payment_[{$sPaymentID}]" type="hidden" name="paymentid" style="display: none;">
</div>

unten

[{if $sPaymentID == "payppaypalplus"}]
   [{oxscript include=$oViewConf->getResourceUrl('js/jquery-ui.js') priority=10}]
[{/if}]

[{block name="checkout_payment_longdesc"}][{/block}]

Die beiden placeholder-DIVs dann in der Modulkonfiguration als Placeholder angeben und Templatevalidierung abschalten :)

Quick and dirty ... aber funktioniert :)

@vanilla-thunder
Copy link
Owner Author

vanilla-thunder commented Mar 14, 2017

Danke für die Rückmeldung!
ich habe mal Aggrosoft Paypal eingerichtet, hat auch sofort funktioniert, es erfordert aber ein paar optische Verbesserungen.
In das andere oxid Paypal will ich noch nicht all zu viel Energie reinstecken, weil es immer noch nicht zuverlässig funktioniert. Vielleicht gibts da bald ein neues Release und dann gucke ich nochmal

@wolkenkrieger
Copy link

Bei mir läuft es problemfrei. Man muss aber tatsächlich mehr machen, als ich oben geschrieben habe --- das Modul macht nicht nur komisch Hooks, sondern braucht auch ein paar ganz klar definierte HTML-Elemente.

Wenn du so weit bist, gib einfach Bescheid - ich schreib das dann alles mal sauber auf (ich bastel ja immer noch dran rum^^).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants