Forms

  • sylius_add_to_cart
    • cartItem
    • addToWishlist
    • wishlists
    • _token

sylius_add_to_cart

"Sylius\Bundle\CoreBundle\Form\Type\Order\AddToCartType"

Default Data

Property Value
Model Format same as normalized format
Normalized Format
Sylius\Bundle\OrderBundle\Controller\AddToCartCommand {#5961
  -cart: BitBag\OpenMarketplace\Component\Order\Entity\Order {#4545 …}
  -cartItem: BitBag\OpenMarketplace\Component\Order\Entity\OrderItem {#5888
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#5958 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#5956 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: Sylius\Component\Core\Model\ProductVariant {#3153 …}
    #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 {#5961
  -cart: BitBag\OpenMarketplace\Component\Order\Entity\Order {#4545 …}
  -cartItem: BitBag\OpenMarketplace\Component\Order\Entity\OrderItem {#5888
    #id: null
    #order: null
    #quantity: 1
    #unitPrice: 0
    #originalUnitPrice: 0
    #total: 0
    #immutable: false
    #units: Doctrine\Common\Collections\ArrayCollection {#5958 …}
    #unitsTotal: 0
    #adjustments: Doctrine\Common\Collections\ArrayCollection {#5956 …}
    #adjustmentsTotal: 0
    #version: 1
    #variant: Sylius\Component\Core\Model\ProductVariant {#3153 …}
    #productName: null
    #variantName: null
  }
}
same as passed value
product
BitBag\OpenMarketplace\Component\Product\Entity\Product {#2979
  #id: 233406
  #code: "13-100.00.1107-3"
  #attributes: Doctrine\ORM\PersistentCollection {#3016 …}
  #variants: Doctrine\ORM\PersistentCollection {#3072 …}
  #options: Doctrine\ORM\PersistentCollection {#3097 …}
  #associations: Doctrine\ORM\PersistentCollection {#3084 …}
  #createdAt: DateTime @1706807703 {#2983
    date: 2024-02-01 17:15:03.0 UTC (+00:00)
  }
  #updatedAt: DateTime @1708609430 {#2955
    date: 2024-02-22 13:43:50.0 UTC (+00:00)
  }
  #enabled: true
  #translations: Doctrine\ORM\PersistentCollection {#3115 …}
  #translationsCache: [
    "el" => Sylius\Component\Core\Model\ProductTranslation {#3118
      #locale: "el"
      #translatable: BitBag\OpenMarketplace\Component\Product\Entity\Product {#2979}
      #id: 441147
      #name: "Ariete Casa Ισοθερμικό Κουβερτοπάπλωμα με Γέμιση Υπέρδιπλο 220Χ240 - Royal Μαύρο"
      #slug: "ariete-casa-isothermiko-koubertopaploma-me-gemisi-yperdiplo-220x240-royal-mauro-233406"
      #description: """
        <div>\n
        <div>\n
        <p>Ζεστό κουβερτοπάπλωμα για τις κρύες νύχτες. Απαλή fleece υφή που θα σας αγκαλιάσει και θα σας κρατήσει ζεστασιά καθ’ όλη τη διάρκεια της νύχτας χαρίζοντας έναν ευχάριστο και υγιεινό ύπνο.  Ποιότητα: άνω όψη Flannel, κάτω όψη Sherpa και γέμιση αντιαλλεργικής βάτας 300 gsm.</p>\n
        </div>\n
        </div>\n
        <div></div>\n
        """
      #metaKeywords: null
      #metaDescription: null
      #shortDescription: null
    }
  ]
  #currentLocale: "el"
  #currentTranslation: null
  #fallbackLocale: "en_US"
  #variantSelectionMethod: "choice"
  #productTaxons: Doctrine\ORM\PersistentCollection {#2948 …}
  #channels: Doctrine\ORM\PersistentCollection {#2982 …}
  #mainTaxon: Proxies\__CG__\Sylius\Component\Core\Model\Taxon {#2969 …}
  #reviews: Doctrine\ORM\PersistentCollection {#3112 …}
  #averageRating: 0.0
  #images: Doctrine\ORM\PersistentCollection {#3032 …}
  #vendor: Proxies\__CG__\BitBag\OpenMarketplace\Component\Vendor\Entity\Vendor {#2959 …}
  #deleted: false
}
same as passed value

Resolved Options

View Variables