-
Notifications
You must be signed in to change notification settings - Fork 99
Implementation of PromotionBundle is unclear #276
Comments
For now I've removed the // ...
class PromotionType extends BasePromotionType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);
$builder->remove('rules');
$builder->remove('actions');
}
// ... So, probably we will make separate actions for that. Is this the best solution? What approach is best to follow? |
Did found quite some nifty features, like the Twig It would be great if macros and Extensions that don't rely on the backend could be moved to the |
It seems to me that the section about coupons only is related to the backend scenarios for generating coupons. http://docs.sylius.org/en/latest/bundles/SyliusPromotionBundle/coupon_based.html What about a section about the services to use when checking the validity in the frontend sales process? Did dig through all services, but can't find the one to easily check all promotions in my own shopping cart. Maybe some extra details about the
|
We're using Annotations in our project. When we try to override the Promotion model by extending the base model, and add the How can people that use Annotations extend the models? We only want to add the many-to-many fields to the model so we can show the http://docs.sylius.org/en/latest/bundles/general/overriding_models.html |
ping @Arn0d |
While implementing the
PromotionBundle
separately we encounter a couple of problems of which it is unclear how to solve themPromotionType.actions
field does result in an error about thefixed_discount
service being missing. Uncommenting the actions field does allow the form to render. Do I first need to implement some actions myself before the form will render? Do we need to override the baseActions
in the config?Rule
andAction
collections work thePromotionType
? The resource bundle hasform-collection.js
and the promotion bundle hassylius-promotion.js
but that does not seems to work. Should an extradata
attribute be added to the type?The text was updated successfully, but these errors were encountered: