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 {#15775
  -cart: App\Entity\Order\Order {#13930 …}
  -cartItem: App\Entity\Order\OrderItem {#15789
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15788 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15764 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9021 …}
    #productName: null
    #variantName: null
    -vendor: null
    -wpId: null
    -wpData: 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 {#15775
  -cart: App\Entity\Order\Order {#13930 …}
  -cartItem: App\Entity\Order\OrderItem {#15789
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15788 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15764 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9021 …}
    #productName: null
    #variantName: null
    -vendor: null
    -wpId: null
    -wpData: null
  }
}
same as passed value
product
App\Entity\Product\Product {#7889
  #id: 8242
  #code: "vi-rosat-les-troies"
  #attributes: Doctrine\ORM\PersistentCollection {#8666 …}
  #variants: Doctrine\ORM\PersistentCollection {#8875 …}
  #options: Doctrine\ORM\PersistentCollection {#9009 …}
  #associations: Doctrine\ORM\PersistentCollection {#8943 …}
  #createdAt: DateTime @1757003624 {#7850
    date: 2025-09-04 16:33:44.0 UTC (+00:00)
  }
  #updatedAt: DateTime @1757003625 {#7965
    date: 2025-09-04 16:33:45.0 UTC (+00:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#9008 …}
  #translationsCache: [
    "ca" => App\Entity\Product\ProductTranslation {#9011
      #locale: "ca"
      #translatable: App\Entity\Product\Product {#7889}
      #id: 8850
      #name: "Vi rosat Les Troies"
      #slug: "vi-rosat-les-troies"
      #description: """
        <p><strong>Collita</strong>: 2020</p>\n
        <p><strong>Varietats</strong>: 100% garnatxa negra</p>\n
        <p><strong>Tipus de vinya</strong>: Vinyes plantades en vas, de 20 a 50 anys.</p>\n
        <p><strong>Vinificació</strong>: Maceració de 12 hores a la premsa, fermentació en dipòsit d’inoxidable a temperatura controlada, llevats seleccionats neutres per mantenir al màxim les propietats del raïm.</p>\n
        <p><strong>Criança</strong>: No.</p>\n
        <p><strong>Temperatura de servei</strong>: 8-10ºC</p>\n
        <h3>Nota de tast</h3>\n
        <p><strong>Nas</strong>: Fruita vermella àcida, fresca, cítrics i maduixes de bosc.</p>\n
        <p><strong>Boca</strong>: Lleugera dolçor, glicèric i acidesa equilibrada.</p>\n
        <p><strong>Vista</strong>: Brillant i net, rosat de capa mitja.</p>\n
        """
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: "<p>Les Troies rosat està elaborat a partir de les varietats garnatxa i carinyena, ambdues autòctones de la nostra preuada comarca i és ideal per acompanyar plats frescos, xarcuteria, pasta i pizzes.</p>\n"
      -ogTitle: null
      -ogDescription: null
    }
  ]
  #currentLocale: "ca"
  #currentTranslation: null
  #fallbackLocale: "ca"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#8320 …}
  #channels: Doctrine\ORM\PersistentCollection {#8525 …}
  #mainTaxon: null
  #reviews: Doctrine\ORM\PersistentCollection {#8436 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#8527 …}
  -minQuantity: null
  -maxQuantity: null
  -stepQuantity: null
  -vendor: Proxies\__CG__\App\Entity\Marketplace\Vendor {#8082 …}
  -wpPermalink: "https://www.agrobotigues.coop/cellercornudella/producte/vi-rosat-les-troies/"
  -ogImage: null
  -ogImageFile: null
  -wpId: 97
  -wpData: [
    "id" => 97
    "name" => "Vi rosat Les Troies"
    "slug" => "vi-rosat-les-troies"
    "permalink" => "https://www.agrobotigues.coop/cellercornudella/producte/vi-rosat-les-troies/"
    "date_created" => "2021-03-25T16:25:57"
    "date_created_gmt" => "2021-03-25T15:25:57"
    "date_modified" => "2023-05-23T12:46:10"
    "date_modified_gmt" => "2023-05-23T10:46:10"
    "type" => "simple"
    "status" => "publish"
    "featured" => false
    "catalog_visibility" => "visible"
    "description" => """
      <p><strong>Collita</strong>: 2020</p>\n
      <p><strong>Varietats</strong>: 100% garnatxa negra</p>\n
      <p><strong>Tipus de vinya</strong>: Vinyes plantades en vas, de 20 a 50 anys.</p>\n
      <p><strong>Vinificació</strong>: Maceració de 12 hores a la premsa, fermentació en dipòsit d’inoxidable a temperatura controlada, llevats seleccionats neutres per mantenir al màxim les propietats del raïm.</p>\n
      <p><strong>Criança</strong>: No.</p>\n
      <p><strong>Temperatura de servei</strong>: 8-10ºC</p>\n
      <h3>Nota de tast</h3>\n
      <p><strong>Nas</strong>: Fruita vermella àcida, fresca, cítrics i maduixes de bosc.</p>\n
      <p><strong>Boca</strong>: Lleugera dolçor, glicèric i acidesa equilibrada.</p>\n
      <p><strong>Vista</strong>: Brillant i net, rosat de capa mitja.</p>\n
      """
    "short_description" => "<p>Les Troies rosat està elaborat a partir de les varietats garnatxa i carinyena, ambdues autòctones de la nostra preuada comarca i és ideal per acompanyar plats frescos, xarcuteria, pasta i pizzes.</p>\n"
    "sku" => "vi-rosat-2022"
    "price" => "5.454"
    "regular_price" => "5.454"
    "sale_price" => ""
    "date_on_sale_from" => null
    "date_on_sale_from_gmt" => null
    "date_on_sale_to" => null
    "date_on_sale_to_gmt" => null
    "price_html" => "<span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">&euro;</span>6,60</bdi></span> <small class="woocommerce-price-suffix">IVA inc.</small>"
    "on_sale" => false
    "purchasable" => true
    "total_sales" => 15
    "virtual" => false
    "downloadable" => false
    "downloads" => []
    "download_limit" => -1
    "download_expiry" => -1
    "external_url" => ""
    "button_text" => ""
    "tax_status" => "taxable"
    "tax_class" => ""
    "manage_stock" => false
    "stock_quantity" => null
    "stock_status" => "instock"
    "backorders" => "no"
    "backorders_allowed" => false
    "backordered" => false
    "sold_individually" => false
    "weight" => "1.22"
    "dimensions" => [
      "length" => ""
      "width" => ""
      "height" => ""
    ]
    "shipping_required" => true
    "shipping_taxable" => true
    "shipping_class" => ""
    "shipping_class_id" => 0
    "reviews_allowed" => true
    "average_rating" => "0.00"
    "rating_count" => 0
    "related_ids" => [
      92
      89
      81
      103
      95
    ]
    "upsell_ids" => []
    "cross_sell_ids" => []
    "parent_id" => 0
    "purchase_note" => ""
    "categories" => [
      [
        "id" => 20
        "name" => "Vi"
        "slug" => "vi"
      ]
    ]
    "tags" => []
    "images" => [
      [
        "id" => 79
        "date_created" => "2021-03-24T17:57:19"
        "date_created_gmt" => "2021-03-24T15:57:19"
        "date_modified" => "2021-03-24T17:58:21"
        "date_modified_gmt" => "2021-03-24T15:58:21"
        "src" => "https://www.agrobotigues.coop/cellercornudella/wp-content/uploads/sites/18/2021/03/vi-rosat-les-troies-a.jpg"
        "name" => "Vi rosat Les Troies"
        "alt" => "Vi rosat Les Troies"
      ]
      [
        "id" => 80
        "date_created" => "2021-03-24T17:57:21"
        "date_created_gmt" => "2021-03-24T15:57:21"
        "date_modified" => "2021-03-24T17:58:12"
        "date_modified_gmt" => "2021-03-24T15:58:12"
        "src" => "https://www.agrobotigues.coop/cellercornudella/wp-content/uploads/sites/18/2021/03/vi-rosat-les-troies-r.jpg"
        "name" => "Vi rosat Les Troies"
        "alt" => "Vi rosat Les Troies"
      ]
    ]
    "attributes" => [
      [
        "id" => 2
        "name" => "Denominació d'origen"
        "position" => 0
        "visible" => true
        "variation" => false
        "options" => [
          "Montsant"
        ]
      ]
      [
        "id" => 1
        "name" => "Format"
        "position" => 1
        "visible" => true
        "variation" => false
        "options" => [
          "Ampolla de 75 cl"
        ]
      ]
    ]
    "default_attributes" => []
    "variations" => []
    "grouped_products" => []
    "menu_order" => 0
    "meta_data" => [
      [
        "id" => 740
        "key" => "_primary_term_product_cat"
        "value" => "20"
      ]
      [
        "id" => 741
        "key" => "product_adjustment_hide_addtocart_catalog"
        "value" => "no"
      ]
      [
        "id" => 742
        "key" => "product_adjustment_hide_addtocart_catalog_shop"
        "value" => "yes"
      ]
      [
        "id" => 743
        "key" => "product_adjustment_hide_addtocart_catalog_product"
        "value" => "yes"
      ]
      [
        "id" => 744
        "key" => "product_adjustment_hide_addtocart_placeholder_catalog"
        "value" => ""
      ]
      [
        "id" => 745
        "key" => "product_adjustment_customize_addtocart_catalog"
        "value" => "no"
      ]
      [
        "id" => 746
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_catalog"
        "value" => ""
      ]
      [
        "id" => 747
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_catalog"
        "value" => ""
      ]
      [
        "id" => 748
        "key" => "product_adjustment_customize_addtocart_btn_url_catalog"
        "value" => ""
      ]
      [
        "id" => 749
        "key" => "product_adjustment_hide_price_catalog"
        "value" => "no"
      ]
      [
        "id" => 750
        "key" => "product_adjustment_hide_price_placeholder_catalog"
        "value" => ""
      ]
      [
        "id" => 751
        "key" => "product_adjustment_exclude_admin_catalog"
        "value" => "no"
      ]
      [
        "id" => 752
        "key" => "product_adjustment_hide_addtocart_unregistered"
        "value" => "no"
      ]
      [
        "id" => 753
        "key" => "product_adjustment_hide_addtocart_unregistered_shop"
        "value" => "yes"
      ]
      [
        "id" => 754
        "key" => "product_adjustment_hide_addtocart_unregistered_product"
        "value" => "yes"
      ]
      [
        "id" => 755
        "key" => "product_adjustment_hide_addtocart_placeholder_unregistered"
        "value" => ""
      ]
      [
        "id" => 756
        "key" => "product_adjustment_customize_addtocart_unregistered"
        "value" => "no"
      ]
      [
        "id" => 757
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_unregistered"
        "value" => ""
      ]
      [
        "id" => 758
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_unregistered"
        "value" => ""
      ]
      [
        "id" => 759
        "key" => "product_adjustment_customize_addtocart_btn_url_unregistered"
        "value" => ""
      ]
      [
        "id" => 760
        "key" => "eh_pricing_adjustment_product_addtocart_user_role"
        "value" => ""
      ]
      [
        "id" => 761
        "key" => "product_adjustment_hide_addtocart_user_role_shop"
        "value" => "yes"
      ]
      [
        "id" => 762
        "key" => "product_adjustment_hide_addtocart_user_role_product"
        "value" => "yes"
      ]
      [
        "id" => 763
        "key" => "product_adjustment_hide_addtocart_placeholder_role"
        "value" => ""
      ]
      [
        "id" => 764
        "key" => "eh_pricing_adjustment_product_customize_addtocart_user_role"
        "value" => ""
      ]
      [
        "id" => 765
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_role"
        "value" => ""
      ]
      [
        "id" => 766
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_role"
        "value" => ""
      ]
      [
        "id" => 767
        "key" => "product_adjustment_customize_addtocart_btn_url_role"
        "value" => ""
      ]
      [
        "id" => 768
        "key" => "product_adjustment_hide_price_placeholder_role"
        "value" => ""
      ]
      [
        "id" => 769
        "key" => "product_adjustment_hide_price_unregistered"
        "value" => "no"
      ]
      [
        "id" => 770
        "key" => "product_adjustment_hide_price_placeholder_unregistered"
        "value" => ""
      ]
      [
        "id" => 771
        "key" => "eh_pricing_adjustment_product_price_user_role"
        "value" => ""
      ]
      [
        "id" => 772
        "key" => "product_adjustment_product_visibility_unregistered"
        "value" => "no"
      ]
      [
        "id" => 773
        "key" => "eh_pricing_adjustment_product_visibility_user_role"
        "value" => ""
      ]
      [
        "id" => 774
        "key" => "product_based_price_adjustment"
        "value" => "no"
      ]
      [
        "id" => 775
        "key" => "product_price_adjustment"
        "value" => [
          "client_federat" => [
            "adjustment_price" => ""
            "adj_prod_price_dis" => "discount"
            "adjustment_percent" => ""
            "adj_prod_percent_dis" => "discount"
          ]
        ]
      ]
      [
        "id" => 776
        "key" => "product_price_adjustment_for_users"
        "value" => ""
      ]
      [
        "id" => 777
        "key" => "product_role_based_price"
        "value" => [
          "client_federat" => [
            "role_price" => "3,43"
          ]
        ]
      ]
      [
        "id" => 778
        "key" => "product_role_based_price_client_federat"
        "value" => "3,43"
      ]
      [
        "id" => 1744
        "key" => "blog_id"
        "value" => "18"
      ]
    ]
    "_links" => [
      "self" => [
        [
          "href" => "https://www.agrobotigues.coop/cellercornudella/wp-json/wc/v3/products/97"
        ]
      ]
      "collection" => [
        [
          "href" => "https://www.agrobotigues.coop/cellercornudella/wp-json/wc/v3/products"
        ]
      ]
    ]
  ]
}
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 {#7764
  -generator: Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator {#7763 …}
  -storage: Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage {#7767 …}
  -namespace: Closure() {#7769 …}
}
data
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#15775
  -cart: App\Entity\Order\Order {#13930 …}
  -cartItem: App\Entity\Order\OrderItem {#15789
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15788 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15764 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9021 …}
    #productName: null
    #variantName: null
    -vendor: null
    -wpId: null
    -wpData: null
  }
}
data_class
"Sylius\Bundle\OrderBundle\Controller\AddToCartCommand"
disabled
false
empty_data
Closure(FormInterface $form) {#15880
  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 {#7889
  #id: 8242
  #code: "vi-rosat-les-troies"
  #attributes: Doctrine\ORM\PersistentCollection {#8666 …}
  #variants: Doctrine\ORM\PersistentCollection {#8875 …}
  #options: Doctrine\ORM\PersistentCollection {#9009 …}
  #associations: Doctrine\ORM\PersistentCollection {#8943 …}
  #createdAt: DateTime @1757003624 {#7850
    date: 2025-09-04 16:33:44.0 UTC (+00:00)
  }
  #updatedAt: DateTime @1757003625 {#7965
    date: 2025-09-04 16:33:45.0 UTC (+00:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#9008 …}
  #translationsCache: [
    "ca" => App\Entity\Product\ProductTranslation {#9011
      #locale: "ca"
      #translatable: App\Entity\Product\Product {#7889}
      #id: 8850
      #name: "Vi rosat Les Troies"
      #slug: "vi-rosat-les-troies"
      #description: """
        <p><strong>Collita</strong>: 2020</p>\n
        <p><strong>Varietats</strong>: 100% garnatxa negra</p>\n
        <p><strong>Tipus de vinya</strong>: Vinyes plantades en vas, de 20 a 50 anys.</p>\n
        <p><strong>Vinificació</strong>: Maceració de 12 hores a la premsa, fermentació en dipòsit d’inoxidable a temperatura controlada, llevats seleccionats neutres per mantenir al màxim les propietats del raïm.</p>\n
        <p><strong>Criança</strong>: No.</p>\n
        <p><strong>Temperatura de servei</strong>: 8-10ºC</p>\n
        <h3>Nota de tast</h3>\n
        <p><strong>Nas</strong>: Fruita vermella àcida, fresca, cítrics i maduixes de bosc.</p>\n
        <p><strong>Boca</strong>: Lleugera dolçor, glicèric i acidesa equilibrada.</p>\n
        <p><strong>Vista</strong>: Brillant i net, rosat de capa mitja.</p>\n
        """
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: "<p>Les Troies rosat està elaborat a partir de les varietats garnatxa i carinyena, ambdues autòctones de la nostra preuada comarca i és ideal per acompanyar plats frescos, xarcuteria, pasta i pizzes.</p>\n"
      -ogTitle: null
      -ogDescription: null
    }
  ]
  #currentLocale: "ca"
  #currentTranslation: null
  #fallbackLocale: "ca"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#8320 …}
  #channels: Doctrine\ORM\PersistentCollection {#8525 …}
  #mainTaxon: null
  #reviews: Doctrine\ORM\PersistentCollection {#8436 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#8527 …}
  -minQuantity: null
  -maxQuantity: null
  -stepQuantity: null
  -vendor: Proxies\__CG__\App\Entity\Marketplace\Vendor {#8082 …}
  -wpPermalink: "https://www.agrobotigues.coop/cellercornudella/producte/vi-rosat-les-troies/"
  -ogImage: null
  -ogImageFile: null
  -wpId: 97
  -wpData: [
    "id" => 97
    "name" => "Vi rosat Les Troies"
    "slug" => "vi-rosat-les-troies"
    "permalink" => "https://www.agrobotigues.coop/cellercornudella/producte/vi-rosat-les-troies/"
    "date_created" => "2021-03-25T16:25:57"
    "date_created_gmt" => "2021-03-25T15:25:57"
    "date_modified" => "2023-05-23T12:46:10"
    "date_modified_gmt" => "2023-05-23T10:46:10"
    "type" => "simple"
    "status" => "publish"
    "featured" => false
    "catalog_visibility" => "visible"
    "description" => """
      <p><strong>Collita</strong>: 2020</p>\n
      <p><strong>Varietats</strong>: 100% garnatxa negra</p>\n
      <p><strong>Tipus de vinya</strong>: Vinyes plantades en vas, de 20 a 50 anys.</p>\n
      <p><strong>Vinificació</strong>: Maceració de 12 hores a la premsa, fermentació en dipòsit d’inoxidable a temperatura controlada, llevats seleccionats neutres per mantenir al màxim les propietats del raïm.</p>\n
      <p><strong>Criança</strong>: No.</p>\n
      <p><strong>Temperatura de servei</strong>: 8-10ºC</p>\n
      <h3>Nota de tast</h3>\n
      <p><strong>Nas</strong>: Fruita vermella àcida, fresca, cítrics i maduixes de bosc.</p>\n
      <p><strong>Boca</strong>: Lleugera dolçor, glicèric i acidesa equilibrada.</p>\n
      <p><strong>Vista</strong>: Brillant i net, rosat de capa mitja.</p>\n
      """
    "short_description" => "<p>Les Troies rosat està elaborat a partir de les varietats garnatxa i carinyena, ambdues autòctones de la nostra preuada comarca i és ideal per acompanyar plats frescos, xarcuteria, pasta i pizzes.</p>\n"
    "sku" => "vi-rosat-2022"
    "price" => "5.454"
    "regular_price" => "5.454"
    "sale_price" => ""
    "date_on_sale_from" => null
    "date_on_sale_from_gmt" => null
    "date_on_sale_to" => null
    "date_on_sale_to_gmt" => null
    "price_html" => "<span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">&euro;</span>6,60</bdi></span> <small class="woocommerce-price-suffix">IVA inc.</small>"
    "on_sale" => false
    "purchasable" => true
    "total_sales" => 15
    "virtual" => false
    "downloadable" => false
    "downloads" => []
    "download_limit" => -1
    "download_expiry" => -1
    "external_url" => ""
    "button_text" => ""
    "tax_status" => "taxable"
    "tax_class" => ""
    "manage_stock" => false
    "stock_quantity" => null
    "stock_status" => "instock"
    "backorders" => "no"
    "backorders_allowed" => false
    "backordered" => false
    "sold_individually" => false
    "weight" => "1.22"
    "dimensions" => [
      "length" => ""
      "width" => ""
      "height" => ""
    ]
    "shipping_required" => true
    "shipping_taxable" => true
    "shipping_class" => ""
    "shipping_class_id" => 0
    "reviews_allowed" => true
    "average_rating" => "0.00"
    "rating_count" => 0
    "related_ids" => [
      92
      89
      81
      103
      95
    ]
    "upsell_ids" => []
    "cross_sell_ids" => []
    "parent_id" => 0
    "purchase_note" => ""
    "categories" => [
      [
        "id" => 20
        "name" => "Vi"
        "slug" => "vi"
      ]
    ]
    "tags" => []
    "images" => [
      [
        "id" => 79
        "date_created" => "2021-03-24T17:57:19"
        "date_created_gmt" => "2021-03-24T15:57:19"
        "date_modified" => "2021-03-24T17:58:21"
        "date_modified_gmt" => "2021-03-24T15:58:21"
        "src" => "https://www.agrobotigues.coop/cellercornudella/wp-content/uploads/sites/18/2021/03/vi-rosat-les-troies-a.jpg"
        "name" => "Vi rosat Les Troies"
        "alt" => "Vi rosat Les Troies"
      ]
      [
        "id" => 80
        "date_created" => "2021-03-24T17:57:21"
        "date_created_gmt" => "2021-03-24T15:57:21"
        "date_modified" => "2021-03-24T17:58:12"
        "date_modified_gmt" => "2021-03-24T15:58:12"
        "src" => "https://www.agrobotigues.coop/cellercornudella/wp-content/uploads/sites/18/2021/03/vi-rosat-les-troies-r.jpg"
        "name" => "Vi rosat Les Troies"
        "alt" => "Vi rosat Les Troies"
      ]
    ]
    "attributes" => [
      [
        "id" => 2
        "name" => "Denominació d'origen"
        "position" => 0
        "visible" => true
        "variation" => false
        "options" => [
          "Montsant"
        ]
      ]
      [
        "id" => 1
        "name" => "Format"
        "position" => 1
        "visible" => true
        "variation" => false
        "options" => [
          "Ampolla de 75 cl"
        ]
      ]
    ]
    "default_attributes" => []
    "variations" => []
    "grouped_products" => []
    "menu_order" => 0
    "meta_data" => [
      [
        "id" => 740
        "key" => "_primary_term_product_cat"
        "value" => "20"
      ]
      [
        "id" => 741
        "key" => "product_adjustment_hide_addtocart_catalog"
        "value" => "no"
      ]
      [
        "id" => 742
        "key" => "product_adjustment_hide_addtocart_catalog_shop"
        "value" => "yes"
      ]
      [
        "id" => 743
        "key" => "product_adjustment_hide_addtocart_catalog_product"
        "value" => "yes"
      ]
      [
        "id" => 744
        "key" => "product_adjustment_hide_addtocart_placeholder_catalog"
        "value" => ""
      ]
      [
        "id" => 745
        "key" => "product_adjustment_customize_addtocart_catalog"
        "value" => "no"
      ]
      [
        "id" => 746
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_catalog"
        "value" => ""
      ]
      [
        "id" => 747
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_catalog"
        "value" => ""
      ]
      [
        "id" => 748
        "key" => "product_adjustment_customize_addtocart_btn_url_catalog"
        "value" => ""
      ]
      [
        "id" => 749
        "key" => "product_adjustment_hide_price_catalog"
        "value" => "no"
      ]
      [
        "id" => 750
        "key" => "product_adjustment_hide_price_placeholder_catalog"
        "value" => ""
      ]
      [
        "id" => 751
        "key" => "product_adjustment_exclude_admin_catalog"
        "value" => "no"
      ]
      [
        "id" => 752
        "key" => "product_adjustment_hide_addtocart_unregistered"
        "value" => "no"
      ]
      [
        "id" => 753
        "key" => "product_adjustment_hide_addtocart_unregistered_shop"
        "value" => "yes"
      ]
      [
        "id" => 754
        "key" => "product_adjustment_hide_addtocart_unregistered_product"
        "value" => "yes"
      ]
      [
        "id" => 755
        "key" => "product_adjustment_hide_addtocart_placeholder_unregistered"
        "value" => ""
      ]
      [
        "id" => 756
        "key" => "product_adjustment_customize_addtocart_unregistered"
        "value" => "no"
      ]
      [
        "id" => 757
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_unregistered"
        "value" => ""
      ]
      [
        "id" => 758
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_unregistered"
        "value" => ""
      ]
      [
        "id" => 759
        "key" => "product_adjustment_customize_addtocart_btn_url_unregistered"
        "value" => ""
      ]
      [
        "id" => 760
        "key" => "eh_pricing_adjustment_product_addtocart_user_role"
        "value" => ""
      ]
      [
        "id" => 761
        "key" => "product_adjustment_hide_addtocart_user_role_shop"
        "value" => "yes"
      ]
      [
        "id" => 762
        "key" => "product_adjustment_hide_addtocart_user_role_product"
        "value" => "yes"
      ]
      [
        "id" => 763
        "key" => "product_adjustment_hide_addtocart_placeholder_role"
        "value" => ""
      ]
      [
        "id" => 764
        "key" => "eh_pricing_adjustment_product_customize_addtocart_user_role"
        "value" => ""
      ]
      [
        "id" => 765
        "key" => "product_adjustment_customize_addtocart_prod_btn_text_role"
        "value" => ""
      ]
      [
        "id" => 766
        "key" => "product_adjustment_customize_addtocart_shop_btn_text_role"
        "value" => ""
      ]
      [
        "id" => 767
        "key" => "product_adjustment_customize_addtocart_btn_url_role"
        "value" => ""
      ]
      [
        "id" => 768
        "key" => "product_adjustment_hide_price_placeholder_role"
        "value" => ""
      ]
      [
        "id" => 769
        "key" => "product_adjustment_hide_price_unregistered"
        "value" => "no"
      ]
      [
        "id" => 770
        "key" => "product_adjustment_hide_price_placeholder_unregistered"
        "value" => ""
      ]
      [
        "id" => 771
        "key" => "eh_pricing_adjustment_product_price_user_role"
        "value" => ""
      ]
      [
        "id" => 772
        "key" => "product_adjustment_product_visibility_unregistered"
        "value" => "no"
      ]
      [
        "id" => 773
        "key" => "eh_pricing_adjustment_product_visibility_user_role"
        "value" => ""
      ]
      [
        "id" => 774
        "key" => "product_based_price_adjustment"
        "value" => "no"
      ]
      [
        "id" => 775
        "key" => "product_price_adjustment"
        "value" => [
          "client_federat" => [
            "adjustment_price" => ""
            "adj_prod_price_dis" => "discount"
            "adjustment_percent" => ""
            "adj_prod_percent_dis" => "discount"
          ]
        ]
      ]
      [
        "id" => 776
        "key" => "product_price_adjustment_for_users"
        "value" => ""
      ]
      [
        "id" => 777
        "key" => "product_role_based_price"
        "value" => [
          "client_federat" => [
            "role_price" => "3,43"
          ]
        ]
      ]
      [
        "id" => 778
        "key" => "product_role_based_price_client_federat"
        "value" => "3,43"
      ]
      [
        "id" => 1744
        "key" => "blog_id"
        "value" => "18"
      ]
    ]
    "_links" => [
      "self" => [
        [
          "href" => "https://www.agrobotigues.coop/cellercornudella/wp-json/wc/v3/products/97"
        ]
      ]
      "collection" => [
        [
          "href" => "https://www.agrobotigues.coop/cellercornudella/wp-json/wc/v3/products"
        ]
      ]
    ]
  ]
}
property_path
null
required
true
row_attr
[]
setter
null
translation_domain
null
trim
true
upload_max_size_message
Closure() {#15878
  class: "Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension"
  use: {
    $translator: Symfony\Component\Translation\DataCollectorTranslator {#2027 …}
    $message: Closure() {#15879 …}
    $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 {#15775
  -cart: App\Entity\Order\Order {#13930 …}
  -cartItem: App\Entity\Order\OrderItem {#15789
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15788 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15764 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9021 …}
    #productName: null
    #variantName: null
    -vendor: null
    -wpId: null
    -wpData: null
  }
}
disabled
false
errors
Symfony\Component\Form\FormErrorIterator {#15937
  -errors: []
  -form: Symfony\Component\Form\Form {#15905 …}
}
form
Symfony\Component\Form\FormView {#15877 …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 {#15775
  -cart: App\Entity\Order\Order {#13930 …}
  -cartItem: App\Entity\Order\OrderItem {#15789
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#15788 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#15764 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: App\Entity\Product\ProductVariant {#9021 …}
    #productName: null
    #variantName: null
    -vendor: null
    -wpId: null
    -wpData: null
  }
}