Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #468 from alch/feature/stackable-coupons
Browse files Browse the repository at this point in the history
WIP: Added stackable coupon configuration
  • Loading branch information
mmoreram committed May 19, 2015
2 parents 9f1187e + da6e9e4 commit e232514
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ admin:
options:
manual: Manual application
automatic: Automatic application
stackable:
title: This coupon can be applied when other coupons are present
minimum_purchase:
title: Minimum purchase
price:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ admin:
options:
manual: Aplicación manual
automatic: Aplicación automática
stackable:
title: Este cupon se puede utilizar con otros cupones
minimum_purchase:
title: Compra mínima
price:
Expand Down
3 changes: 3 additions & 0 deletions src/Elcodi/Admin/CouponBundle/Form/Type/CouponType.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('minimumPurchase', 'money_object', [
'required' => false,
])
->add('stackable', 'checkbox', [
'required' => false
])
->add('rule', 'entity', [
'class' => $this->ruleNamespace,
'required' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
{{ form_row(form.enforcement, { label: 'admin.coupon.field.enforcement.title' } ) }}
</li>
</ol>
<ol>
<li>
{{
form_row(form.stackable, {
label: 'admin.coupon.field.stackable.title',
})
}}
</li>
</ol>

</div>
</div>
</div>
Expand Down

0 comments on commit e232514

Please sign in to comment.