symfony - Sylius how to override the CoreBundle Checkout process -


i'm working on project , i'd ask clean/best way override steps in the

sylius\bundle\corebundle\checkout\checkoutprocessscenario

i'd preserve custom mechanics of whole process add custom step @ end , remove finalize step.

    $builder         ->add('security', 'sylius_checkout_security')         ->add('addressing', 'sylius_checkout_addressing')         ->add('shipping', 'sylius_checkout_shipping')         ->add('finalize', 'sylius_checkout_finalize')         ->add('payment', 'sylius_checkout_payment')         ->add('purchase', 'sylius_checkout_purchase')     ; 

what's best form of doing so? if it's extending bundle , overwriting i'd of @ least information point me in right direction - i'm not getting results on own.

i've read docs on bundle doesn't explain how override built in process.

i've read symfony cookbook on extending resources: http://symfony.com/doc/2.0/cookbook/bundles/inheritance.html#overriding-resources-templates-routing-translations-validation-etc

and:

http://symfony.com/doc/current/cookbook/bundles/override.html

if has experience on topic , share thier insights i'd gratefull. in advance.

you change service class custom one. can overwrite parameter sylius.checkout_scenario.class.

app/config/config.yml:

<parameter key="sylius.checkout_scenario.class">     your\class </parameter> 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -