Forms

  • sylius_shop_add_to_cart
    • cartItem
    • _token

sylius_shop_add_to_cart

Form type:
"Sylius\Bundle\ShopBundle\Form\Type\AddToCartType"

Errors

This form has no errors.

Default Data

Property Value
Model Format same as normalized format
Normalized Format
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12763
  -cart: App\Entity\Order\Order {#12741 …}
  -cartItem: App\Entity\Order\OrderItem {#12752
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#12779 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#12745 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#8093 …}
    #productName: null
    #variantName: null
  }
}
View Format same as normalized format

Submitted Data

This form was not submitted.

Passed Options

Option Passed Value Resolved Value
data
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12763
  -cart: App\Entity\Order\Order {#12741 …}
  -cartItem: App\Entity\Order\OrderItem {#12752
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#12779 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#12745 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#8093 …}
    #productName: null
    #variantName: null
  }
}
same as passed value
product
App\Entity\Product\Product {#7466
  #id: 44
  #code: "BIO-2476"
  #attributes: Doctrine\ORM\PersistentCollection {#6255 …}
  #variants: Doctrine\ORM\PersistentCollection {#7950 …}
  #options: Doctrine\ORM\PersistentCollection {#8078 …}
  #associations: Doctrine\ORM\PersistentCollection {#8018 …}
  #createdAt: DateTime @1784996368 {#7378
    date: 2026-07-25 18:19:28.0 Europe/Berlin (+02:00)
  }
  #updatedAt: DateTime @1784996368 {#7536
    date: 2026-07-25 18:19:28.0 Europe/Berlin (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#8077 …}
  #translationsCache: [
    "en_US" => App\Entity\Product\ProductTranslation {#8080
      #locale: "en_US"
      #translatable: App\Entity\Product\Product {#7466}
      #id: 88
      #name: "Șampon vegan hidratant 400 ml"
      #slug: "sampon-vegan-hidratant-400-ml"
      #description: """
        <p>Cleansing is a very important step in daily hair care. The vegan moisturizing shampoo from Bioélixire&#8217;s &#8221; Essence of Nature&#8221; series was developed to gently remove dirt and excess sebum from the scalp and strands, as well as facilitate the natural PEH balance. Its formula is based on plant extracts, and the composition is 95% natural.</p>\n
        <p>The shampoo does not contain silicones, parabens, SLS or other irritant detergents, and the fragrance composition is free of allergens. Mild surfactants safe even for sensitive scalps are responsible for effective cleansing. The shampoo helps restore the hair to a beautiful shine and optimal hydration, nourishes, strengthens and softens the strands, while soothing scalp irritation.</p>\n
        <h2>For the care of which hair will the moisturizing shampoo &#8221; Essence of Nature &#8221; work?</h2>\n
        <p>Since the moisturizing shampoo &#8222;Nature&#8217;s Essence&#8221; works very gently, it can be used for any type of hair, even very damaged and weakened hair, as well as for sensitive scalps prone to irritation. Due to its silicone-free formula, it can make medium- to high-pored hair difficult to comb &#8211; but adding a few drops of the 9 oil serum to it during shampooing will avoid this.</p>\n
        <p>The most important active ingredients in the moisturizing shampoo &#8221; Essence of Nature&#8221;.</p>\n
        <p>Calendula &#8211; contains flavonoids, polysaccharides, phytosterols, antioxidants and phenolic acids. It effectively cleanses the strands and scalp, has an antibacterial effect, soothes and calms the irritated scalp, nourishes. It shines the hair, improves its condition and prevents excessive hair loss.</p>\n
        <p>Common yarrow &#8211; contains vitamins A, C and K, minerals (zinc, iron, copper and sulfur), flavonoids, choline and essential oils. It strengthens and conditions hair, reduces greasiness, stimulates hair growth. Soothes scalp irritation and regulates sebaceous glands.<br />\n
        Witch hazel leaf &#8211; contains polyphenols, antioxidants, tannins, flavonoids, saponins, choline and tannins. It is cleansing, antibacterial, anti-dandruff, soothes scalp irritation and is good for microcirculation. Reduces oily hair.</p>\n
        <p>Gentle surfactants: Disodium Cocoamphodiacetate (amphoteric surfactant), Decyl Glucoside (non-ionic surfactant) Sodium Cocoyl Sarcosinate (anionic surfactant), which do not cause irritation and allergic reactions.</p>\n
        <h2>How to use &#8221; Essence of Nature&#8221; moisturizing shampoo?</h2>\n
        <p>Moisturizing shampoo &#8221; Essence of Nature&#8221; works perfectly when washing the scalp using the CWC method (&#8222;conditioner/ wash/ conditioner&#8221;). It should be distributed evenly on the scalp and gently massaged, avoiding scratching the scalp and rubbing the hair. This action is performed until a foam is obtained, which, flowing down the strands, effectively cleanses them. For a better effect, you can move it along the strands with your hands. Then it is enough to rinse the hair profusely with warm water.</p>\n
        <p>Shampoo free from: SLS, sulfates, silicones, DEA, TEA, MEA, EDTA, MIT, PEG, PPG, mineral oil, artificial colors, lanolin, thiazolinone, benzophenone, DMDM Hydantoin, imidazolidinyl urea.</p>\n
        <p>Composition: Aqua (Water), Disodium Cocoamphodiacetate, Sodium Cocoyl Sarcosinate, Cocamidopropyl Hydroxysultaine, Lactic Acid, Decyl Glucoside, Achillea Millefolium Extract, Calendula Officinalis Flower Extract, Hamamelis Virginiana Leaf Water (Hamamelis Virginiana (Witch Hazel) Leaf Water), Parfum (Fragrance), Hydrolyzed Wheat Protein, Sodium Chloride, Tetrasodium Glutamate Diacetate, Xanthan Gum, Betaine, Glycerin, Coco-glucoside, Glyceryl Oleate, Sodium Benzoate, Potassium Sorbate.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: ""
    }
  ]
  #currentLocale: "en_US"
  #currentTranslation: null
  #fallbackLocale: "en_US"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7733 …}
  #channels: Doctrine\ORM\PersistentCollection {#4747 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#7429 …}
  #reviews: Doctrine\ORM\PersistentCollection {#7846 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#4848 …}
  #productType: null
}
same as passed value

Resolved Options

Option Value
action
""
allow_extra_fields
false
allow_file_upload
false
attr
[]
attr_translation_parameters
[]
auto_initialize
true
block_name
null
block_prefix
null
by_reference
true
compound
true
constraints
[]
csrf_field_name
"_token"
csrf_message
"The CSRF token is invalid. Please try to resubmit the form."
csrf_protection
true
csrf_token_id
null
csrf_token_manager
Symfony\Component\Security\Csrf\CsrfTokenManager {#7325
  -generator: Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator {#7338 …}
  -storage: Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage {#7339 …}
  -namespace: Closure() {#7341 …}
}
data
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12763
  -cart: App\Entity\Order\Order {#12741 …}
  -cartItem: App\Entity\Order\OrderItem {#12752
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#12779 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#12745 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#8093 …}
    #productName: null
    #variantName: null
  }
}
data_class
"Sylius\Bundle\OrderBundle\Controller\AddToCartCommand"
disabled
false
empty_data
Closure(FormInterface $form) {#12878
  class: "Symfony\Component\Form\Extension\Core\Type\FormType"
  use: {
    $class: "Sylius\Bundle\OrderBundle\Controller\AddToCartCommand"
  }
}
error_bubbling
true
error_mapping
[]
extra_fields_message
"This form should not contain extra fields."
form_attr
false
getter
null
help
null
help_attr
[]
help_html
false
help_translation_parameters
[]
inherit_data
false
invalid_message
"This value is not valid."
invalid_message_parameters
[]
is_empty_callback
null
label
null
label_attr
[]
label_format
null
label_html
false
label_translation_parameters
[]
mapped
true
method
"POST"
post_max_size_message
"The uploaded file was too large. Please try to upload a smaller file."
priority
0
product
App\Entity\Product\Product {#7466
  #id: 44
  #code: "BIO-2476"
  #attributes: Doctrine\ORM\PersistentCollection {#6255 …}
  #variants: Doctrine\ORM\PersistentCollection {#7950 …}
  #options: Doctrine\ORM\PersistentCollection {#8078 …}
  #associations: Doctrine\ORM\PersistentCollection {#8018 …}
  #createdAt: DateTime @1784996368 {#7378
    date: 2026-07-25 18:19:28.0 Europe/Berlin (+02:00)
  }
  #updatedAt: DateTime @1784996368 {#7536
    date: 2026-07-25 18:19:28.0 Europe/Berlin (+02:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#8077 …}
  #translationsCache: [
    "en_US" => App\Entity\Product\ProductTranslation {#8080
      #locale: "en_US"
      #translatable: App\Entity\Product\Product {#7466}
      #id: 88
      #name: "Șampon vegan hidratant 400 ml"
      #slug: "sampon-vegan-hidratant-400-ml"
      #description: """
        <p>Cleansing is a very important step in daily hair care. The vegan moisturizing shampoo from Bioélixire&#8217;s &#8221; Essence of Nature&#8221; series was developed to gently remove dirt and excess sebum from the scalp and strands, as well as facilitate the natural PEH balance. Its formula is based on plant extracts, and the composition is 95% natural.</p>\n
        <p>The shampoo does not contain silicones, parabens, SLS or other irritant detergents, and the fragrance composition is free of allergens. Mild surfactants safe even for sensitive scalps are responsible for effective cleansing. The shampoo helps restore the hair to a beautiful shine and optimal hydration, nourishes, strengthens and softens the strands, while soothing scalp irritation.</p>\n
        <h2>For the care of which hair will the moisturizing shampoo &#8221; Essence of Nature &#8221; work?</h2>\n
        <p>Since the moisturizing shampoo &#8222;Nature&#8217;s Essence&#8221; works very gently, it can be used for any type of hair, even very damaged and weakened hair, as well as for sensitive scalps prone to irritation. Due to its silicone-free formula, it can make medium- to high-pored hair difficult to comb &#8211; but adding a few drops of the 9 oil serum to it during shampooing will avoid this.</p>\n
        <p>The most important active ingredients in the moisturizing shampoo &#8221; Essence of Nature&#8221;.</p>\n
        <p>Calendula &#8211; contains flavonoids, polysaccharides, phytosterols, antioxidants and phenolic acids. It effectively cleanses the strands and scalp, has an antibacterial effect, soothes and calms the irritated scalp, nourishes. It shines the hair, improves its condition and prevents excessive hair loss.</p>\n
        <p>Common yarrow &#8211; contains vitamins A, C and K, minerals (zinc, iron, copper and sulfur), flavonoids, choline and essential oils. It strengthens and conditions hair, reduces greasiness, stimulates hair growth. Soothes scalp irritation and regulates sebaceous glands.<br />\n
        Witch hazel leaf &#8211; contains polyphenols, antioxidants, tannins, flavonoids, saponins, choline and tannins. It is cleansing, antibacterial, anti-dandruff, soothes scalp irritation and is good for microcirculation. Reduces oily hair.</p>\n
        <p>Gentle surfactants: Disodium Cocoamphodiacetate (amphoteric surfactant), Decyl Glucoside (non-ionic surfactant) Sodium Cocoyl Sarcosinate (anionic surfactant), which do not cause irritation and allergic reactions.</p>\n
        <h2>How to use &#8221; Essence of Nature&#8221; moisturizing shampoo?</h2>\n
        <p>Moisturizing shampoo &#8221; Essence of Nature&#8221; works perfectly when washing the scalp using the CWC method (&#8222;conditioner/ wash/ conditioner&#8221;). It should be distributed evenly on the scalp and gently massaged, avoiding scratching the scalp and rubbing the hair. This action is performed until a foam is obtained, which, flowing down the strands, effectively cleanses them. For a better effect, you can move it along the strands with your hands. Then it is enough to rinse the hair profusely with warm water.</p>\n
        <p>Shampoo free from: SLS, sulfates, silicones, DEA, TEA, MEA, EDTA, MIT, PEG, PPG, mineral oil, artificial colors, lanolin, thiazolinone, benzophenone, DMDM Hydantoin, imidazolidinyl urea.</p>\n
        <p>Composition: Aqua (Water), Disodium Cocoamphodiacetate, Sodium Cocoyl Sarcosinate, Cocamidopropyl Hydroxysultaine, Lactic Acid, Decyl Glucoside, Achillea Millefolium Extract, Calendula Officinalis Flower Extract, Hamamelis Virginiana Leaf Water (Hamamelis Virginiana (Witch Hazel) Leaf Water), Parfum (Fragrance), Hydrolyzed Wheat Protein, Sodium Chloride, Tetrasodium Glutamate Diacetate, Xanthan Gum, Betaine, Glycerin, Coco-glucoside, Glyceryl Oleate, Sodium Benzoate, Potassium Sorbate.</p>
        """
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: ""
    }
  ]
  #currentLocale: "en_US"
  #currentTranslation: null
  #fallbackLocale: "en_US"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#7733 …}
  #channels: Doctrine\ORM\PersistentCollection {#4747 …}
  #mainTaxon: Proxies\__CG__\App\Entity\Taxonomy\Taxon {#7429 …}
  #reviews: Doctrine\ORM\PersistentCollection {#7846 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#4848 …}
  #productType: null
}
property_path
null
required
true
row_attr
[]
setter
null
translation_domain
null
trim
true
upload_max_size_message
Closure() {#12876
  class: "Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension"
  use: {
    $translator: Symfony\Component\Translation\DataCollectorTranslator {#1201 …}
    $message: Closure() {#12877 …}
    $translationDomain: "validators"
  }
}
validation_groups
[
  "sylius"
]

View Vars

Variable Value
action
""
attr
[]
attr_translation_parameters
[]
block_prefixes
[
  "form"
  "sylius_add_to_cart"
  "sylius_shop_add_to_cart"
  "_sylius_shop_add_to_cart"
]
cache_key
"_sylius_shop_add_to_cart_sylius_shop_add_to_cart"
compound
true
data
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12763
  -cart: App\Entity\Order\Order {#12741 …}
  -cartItem: App\Entity\Order\OrderItem {#12752
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#12779 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#12745 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#8093 …}
    #productName: null
    #variantName: null
  }
}
disabled
false
errors
Symfony\Component\Form\FormErrorIterator {#12935
  -errors: []
  -form: Symfony\Component\Form\Form {#12918 …}
}
form
Symfony\Component\Form\FormView {#12875 …5}
full_name
"sylius_shop_add_to_cart"
help
null
help_attr
[]
help_html
false
help_translation_parameters
[]
id
"sylius_shop_add_to_cart"
label
null
label_attr
[]
label_format
null
label_html
false
label_translation_parameters
[]
method
"POST"
multipart
false
name
"sylius_shop_add_to_cart"
priority
0
required
true
row_attr
[]
submitted
false
translation_domain
null
unique_block_prefix
"_sylius_shop_add_to_cart"
valid
true
value
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#12763
  -cart: App\Entity\Order\Order {#12741 …}
  -cartItem: App\Entity\Order\OrderItem {#12752
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#12779 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#12745 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#8093 …}
    #productName: null
    #variantName: null
  }
}