This repository has been archived by the owner on Mar 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2241 from spryker/feature/core-273-new-demoshop
Feature/core 273 new demoshop
- Loading branch information
Showing
5 changed files
with
207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="payment-subform ratepay-form ratepay-elv-form payment-form" id="ratepayElv"> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'form.ratepayElv.date_of_birth' | trans }}* | ||
{{ form_widget(form.ratepayElv.date_of_birth, { 'attr': {'placeholder': 'payment.ratepay.date_of_birth' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayElv.date_of_birth) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.phone' | trans }}* | ||
{{ form_widget(form.ratepayElv.phone, { 'attr': {'placeholder': 'payment.ratepay.phone' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayElv.phone) }} | ||
</div> | ||
|
||
<h5>{{ 'form.ratepayElv.bank_account' | trans }}</h5> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'form.ratepayElv.bank_account.holder' | trans }}* | ||
{{ form_widget(form.ratepayElv.bank_account_holder, { 'attr': {'placeholder': 'payment.ratepay.bank_account.holder' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayElv.bank_account_holder) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.bank_account.iban' | trans }}* | ||
{{ form_widget(form.ratepayElv.bank_account_iban, { 'attr': {'placeholder': 'payment.ratepay.bank_account.iban' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayElv.bank_account_iban) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'form.ratepayElv.bank_account.bic' | trans }}* | ||
{{ form_widget(form.ratepayElv.bank_account_bic, { 'attr': {'placeholder': 'payment.ratepay.bank_account.bic' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayElv.bank_account_bic) }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<div class="payment-subform ratepay-form ratepay-installment-form payment-form small-12 medium-9 large-6" id="ratepayInstallment"> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{ 'payment.ratepay.date_of_birth' | trans }} | ||
{{ form_widget(form.ratepayInstallment.date_of_birth, { 'attr': {'placeholder': 'payment.ratepay.date_of_birth' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.date_of_birth) }} | ||
</div> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.phone' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.phone, { 'attr': {'placeholder': 'payment.ratepay.phone' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.phone) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.debit_pay_type' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.debit_pay_type, { 'attr': {'placeholder': 'payment.ratepay.debit_pay_type' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.debit_pay_type) }} | ||
</div> | ||
|
||
<div class="ratepay-installment-pay-type ratepay-installment-pay-type-direct-debit"> | ||
<h5>{{ 'payment.ratepay.bank_account' | trans }}</h5> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.bank_account.holder' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.bank_account_holder, { 'attr': {'placeholder': 'payment.ratepay.bank_account.holder' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.bank_account_holder) }} | ||
</div> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.bank_account.iban' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.bank_account_iban, { 'attr': {'placeholder': 'payment.ratepay.bank_account.iban' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.bank_account_iban) }} | ||
</div> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.bank_account.bic' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.bank_account_bic, { 'attr': {'placeholder': 'payment.ratepay.bank_account.bic' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.bank_account_bic) }} | ||
</div> | ||
</div> | ||
|
||
<h5>{{ 'payment.ratepay.installment_calculator' | trans }}</h5> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.installment_calculator.type' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.installment_calculation_type, { 'attr': {'placeholder': 'payment.ratepay.installment_calculator.type' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.installment_calculation_type) }} | ||
</div> | ||
<div class="ratepay-installment-calculation-type ratepay-installment-calculation-by-time"> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.installment_calculator.month_allowed' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.interest_month, { 'attr': {'placeholder': 'payment.ratepay.installment_calculator.installment_month' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.interest_month) }} | ||
</div> | ||
</div> | ||
<div class="ratepay-installment-calculation-type ratepay-installment-calculation-by-rate"> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.installment_calculator.interest_rate' | trans }}* | ||
{{ form_widget(form.ratepayInstallment.interest_rate, { 'attr': {'placeholder': 'payment.ratepay.installment_calculator.interest_rate' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInstallment.interest_rate) }} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="payment-subform ratepay-form ratepay-invoice-form payment-form small-12 medium-9 large-6" id="ratepayInvoice"> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.date_of_birth' | trans }}* | ||
{{ form_widget(form.ratepayInvoice.date_of_birth, { 'attr': {'placeholder': 'payment.ratepay.date_of_birth' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInvoice.date_of_birth) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.phone' | trans }}* | ||
{{ form_widget(form.ratepayInvoice.phone, { 'attr': {'placeholder': 'payment.ratepay.phone' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayInvoice.phone) }} | ||
</div> | ||
</div> |
45 changes: 45 additions & 0 deletions
45
src/Spryker/Yves/Ratepay/Theme/default/partial/summary.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% if quoteTransfer.payment.paymentMethod == 'INVOICE' %} | ||
{% set ratepayPaymentTransfer = quoteTransfer.payment.ratepayInvoice %} | ||
{% elseif quoteTransfer.payment.paymentMethod == 'ELV' %} | ||
{% set ratepayPaymentTransfer = quoteTransfer.payment.ratepayElv %} | ||
<tr> | ||
<td>{{ 'payment.ratepay.bank_account' | trans }}:</td> | ||
<td> | ||
<div>{{ 'payment.ratepay.bank_account.holder' | trans }} - {{ ratepayPaymentTransfer.bankAccountHolder }}</div> | ||
<div>{{ 'payment.ratepay.bank_account.iban' | trans }} - {{ ratepayPaymentTransfer.bankAccountIban }}</div> | ||
<div>{{ 'payment.ratepay.bank_account.bic' | trans }} - {{ ratepayPaymentTransfer.bankAccountBic }}</div> | ||
</td> | ||
</tr> | ||
{% elseif quoteTransfer.payment.paymentMethod == 'PREPAYMENT' %} | ||
{% set ratepayPaymentTransfer = quoteTransfer.payment.ratepayPrepayment %} | ||
{% elseif quoteTransfer.payment.paymentMethod == 'INSTALLMENT' %} | ||
{% set ratepayPaymentTransfer = quoteTransfer.payment.ratepayInstallment %} | ||
<tr> | ||
<td>{{ 'summary.ratepay.installment.plan_details' | trans }}:</td> | ||
<td> | ||
<div>{{ 'summary.ratepay.installment.type' | trans }} - {{ ratepayPaymentTransfer.installmentCalculationType }}</div> | ||
<div>{{ 'summary.ratepay.installment.rates_number' | trans }} - {{ ratepayPaymentTransfer.installmentNumberRates|number_format }}</div> | ||
<hr/> | ||
<div>{{ 'summary.ratepay.installment.amount_per_month' | trans }} - {{ ratepayPaymentTransfer.installmentRate|price }}</div> | ||
<div>{{ 'summary.ratepay.installment.last_month_amount' | trans }} - {{ ratepayPaymentTransfer.installmentLastRate|price }}</div> | ||
<div>{{ 'summary.ratepay.installment.annual_percentage_rate' | trans }} - {{ ratepayPaymentTransfer.installmentAnnualPercentageRate|number_format(2, ',') }} %</div> | ||
<hr/> | ||
<div>{{ 'summary.ratepay.installment.service_charge' | trans }} - {{ ratepayPaymentTransfer.installmentServiceCharge|price }}</div> | ||
<div>{{ 'summary.ratepay.installment.interest_amount' | trans }}- {{ ratepayPaymentTransfer.installmentInterestAmount|price }}</div> | ||
<hr/> | ||
<div>{{ 'summary.ratepay.installment.order_grand_total' | trans }} - {{ quoteTransfer.getTotals.getGrandTotal|price }}</div> | ||
<div>{{ 'summary.ratepay.installment.plan_grand_total' | trans }} - {{ ratepayPaymentTransfer.installmentGrandTotalAmount|price }}</div> | ||
</td> | ||
</tr> | ||
{% endif %} | ||
{% if ratepayPaymentTransfer is defined %} | ||
{% block javascripts %} | ||
<script language="JavaScript"> | ||
var di = {t:'{{ ratepayPaymentTransfer.deviceFingerprint }}',v:'{{ ratepayPaymentTransfer.deviceIdentSId }}',l:'Checkout'}; </script> | ||
<script type="text/javascript" src="//d.ratepay.com/{{ ratepayPaymentTransfer.deviceIdentSId }}/di.js"></script> <noscript><link rel="stylesheet" type="text/css" href="//d.ratepay.com/di.css?t={{ ratepayPaymentTransfer.deviceFingerprint }}&v={{ ratepayPaymentTransfer.deviceIdentSId }}&l=Checkout"></noscript> | ||
<object type="application/x-shockwave-flash" data="//d.ratepay.com/{{ ratepayPaymentTransfer.deviceIdentSId }}/c.swf" width="0" height="0"> | ||
<param name="movie" value="//d.ratepay.com/{{ ratepayPaymentTransfer.deviceIdentSId }}/c.swf" /> | ||
<param name="flashvars" value="t={{ ratepayPaymentTransfer.deviceFingerprint }}&v={{ ratepayPaymentTransfer.deviceIdentSId }}"/><param name="AllowScriptAccess" value="always"/> | ||
</object> | ||
{% endblock %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="payment-subform ratepay-form ratepay-prepayment-form payment-form" id="ratepayPrepayment"> | ||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.date_of_birth' | trans }}* | ||
{{ form_widget(form.ratepayPrepayment.date_of_birth, { 'attr': {'placeholder': 'payment.ratepay.date_of_birth' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayPrepayment.date_of_birth) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{ 'payment.ratepay.phone' | trans }}* | ||
{{ form_widget(form.ratepayPrepayment.phone, { 'attr': {'placeholder': 'payment.ratepay.phone' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayPrepayment.phone) }} | ||
</div> | ||
|
||
<div class="small-12 columns"> | ||
<label> | ||
{{ 'payment.ratepay.customer_allow_credit_inquiry' | trans }}* | ||
{{ form_widget(form.ratepayPrepayment.customer_allow_credit_inquiry, { 'attr': {'placeholder': 'payment.ratepay.customer_allow_credit_inquiry' | trans } }) }} | ||
</label> | ||
{{ form_errors(form.ratepayPrepayment.customer_allow_credit_inquiry) }} | ||
</div> | ||
</div> |