craft-instantanalytics
craft-instantanalytics copied to clipboard
Add to cart error when "Commerce Product Category Field" points at field with multiple categories
I get the following response error when trying to add to the cart {"error":"Getting unknown property: craft\commerce\elements\Product::product"}
Have tracked this down to the "Commerce Product Category Field" or "Commerce Product Brand Field" settings to reference a field containing multiple category relationships.
Setting these fields to reference a category field which only allows a single relationship works OK.
Plugin version 1.1.0
Ah this makes sense, thanks for the report.
Found another related issue. We have a use case where some of our product types don't have the field that we are using for the "Commerce Product Category Field" or "Commerce Property Brand Field". In this event, the plugin throws an error preventing these items being added to the cart.
Might be a bit of an edge case and the simple workaround is for us to add the field to the product type but would be nice if this didn't matter and the plugin just ignored the absence of that field.
Can you give me a stack trace for these issues @fantasticmachine ? I'm working on a fix, and it'd be helpful.
Sure. I'll give you a few traces with different circumstances.
This one is what I get if a product doesn't have one of the chosen fields in its layout. For instance, we are using a field named "Range" for the Product Commerce Category Field. But we have a product type which didn't have that Range field. To that end, as a feature request, it would be really useful to be able to set different fields for different product types.
yii\base\UnknownPropertyException: Getting unknown property: craft\commerce\elements\Product::product in /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/base/Component.php:154
Stack trace:
#0 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/base/Element.php(829): yii\base\Component->__get('product')
#1 /srv/users/serverpilot/apps/mycraftsite/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php(474): craft\base\Element->__get('product')
#2 /srv/users/serverpilot/apps/mycraftsite/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php(431): nystudio107\instantanalytics\services\Commerce->pullDataFromField(Object(craft\commerce\elements\Product), 'range')
#3 /srv/users/serverpilot/apps/mycraftsite/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php(298): nystudio107\instantanalytics\services\Commerce->getProductDataFromProduct(Object(craft\commerce\elements\Variant))
#4 /srv/users/serverpilot/apps/mycraftsite/vendor/nystudio107/craft-instantanalytics/src/helpers/IAnalytics.php(98): nystudio107\instantanalytics\services\Commerce->addCommerceProductDetailView(Object(nystudio107\instantanalytics\helpers\IAnalytics), Object(craft\commerce\elements\Variant))
#5 /srv/users/serverpilot/apps/mycraftsite/vendor/twig/twig/lib/Twig/Extension/Core.php(1626): nystudio107\instantanalytics\helpers\IAnalytics->addCommerceProductDetailView(Object(craft\commerce\elements\Variant))
#6 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/helpers/Template.php(73): twig_get_attribute(Object(craft\web\twig\Environment), Object(Twig_Source), Object(nystudio107\instantanalytics\helpers\IAnalytics), 'addCommerceProd...', Array, 'method', false, false)
#7 /srv/users/serverpilot/apps/mycraftsite/storage/runtime/compiled_templates/a2/a217302f412bb0f054b65351ee9ae776e531bfebba339d5bc7edd58e716ef29b.php(55): craft\helpers\Template::attribute(Object(craft\web\twig\Environment), Object(Twig_Source), Object(nystudio107\instantanalytics\helpers\IAnalytics), 'addCommerceProd...', Array, 'method')
#8 /srv/users/serverpilot/apps/mycraftsite/vendor/twig/twig/lib/Twig/Template.php(386): __TwigTemplate_43534758a1dfee78a34750eea0b40f40bbd1857e121fb82e14d053d65445abd8->doDisplay(Array, Array)
#9 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/twig/Template.php(49): Twig_Template->displayWithErrorHandling(Array, Array)
#10 /srv/users/serverpilot/apps/mycraftsite/vendor/twig/twig/lib/Twig/Template.php(363): craft\web\twig\Template->displayWithErrorHandling(Array, Array)
#11 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/twig/Template.php(31): Twig_Template->display(Array, Array)
#12 /srv/users/serverpilot/apps/mycraftsite/vendor/twig/twig/lib/Twig/Template.php(371): craft\web\twig\Template->display(Array)
#13 /srv/users/serverpilot/apps/mycraftsite/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array)
#14 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/View.php(337): Twig_Environment->render('shop/variant', Array)
#15 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/View.php(384): craft\web\View->renderTemplate('shop/variant', Array)
#16 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/Controller.php(161): craft\web\View->renderPageTemplate('shop/variant', Array)
#17 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/controllers/TemplatesController.php(78): craft\web\Controller->renderTemplate('shop/variant', Array)
#18 [internal function]: craft\controllers\TemplatesController->actionRender('shop/variant', Array)
#19 /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#20 /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#21 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/Controller.php(109): yii\base\Controller->runAction('render', Array)
#22 /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('render', Array)
#23 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/Application.php(297): yii\base\Module->runAction('templates/rende...', Array)
#24 /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('templates/rende...', Array)
#25 /srv/users/serverpilot/apps/mycraftsite/vendor/craftcms/cms/src/web/Application.php(286): yii\web\Application->handleRequest(Object(craft\web\Request))
#26 /srv/users/serverpilot/apps/mycraftsite/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#27 /srv/users/serverpilot/apps/mycraftsite/public/index.php(21): yii\base\Application->run()
#28 {main}
If one of the fields set for either Commerce Category or Brand is a Plain Text type field (rather than a category field type) then I see the following error when trying to add the product to the cart.
{"error":"Getting unknown property: craft\\commerce\\elements\\Product::product"}
Sorry, it's not a trace. Just an error in the console as we're adding to the cart via Ajax.
I also noticed that in some circumstances an option of "none" appears in the select controls for choosing the Commerce Category and Brand fields. However it disappeared when I changed something about the field types/setup. I'm having trouble replicating that now but will keep trying.
I am just digging into this now Andrew...can I throw in here:
For product categories, I use a categories field. Some products appear in multiple categories. Unfortunately Craft doesn't let you order those categories, so it can't necessarily be assumed the first is the 'primary' category as such.
For brands, I use an entries filed (not currently selectable at all).
In some cases, certain types of products won't have this field of might not have a value (either through something being missed, or because they are an internal product and thus don't have an external brand). I could in theory also add dummy fields to cope with this, but I try and avoid polluting my entries with such things where possible.
Would be great if all of that could be factored in - if your are in this & re-jigging anyway!
Ok, thinking on this more obernight...I think both Product Category and Brand should be Twig mini templates things.
The current category stuff that gets to Google is pretty unattractive and hard for business folks to parse (mentally, or in code...)
What the business folks want there is really the Eizo Monitors bit, i.e. the deepest category (in our case). others might want just 'Monitors|Eizo' for example. Using a mini twig template here would provide a lot of flexibility in what folks could use/do versus the current approach.
Ditto with brand (say {product.brand.one().title}
or whatever.
What do you think @khalwat @fantasticmachine ?
Any thoughts on this? I'd really like to add brand data, but can't really do it currently without manually sending events.
Twig parsing for these would be very flexible I think? And is in line with how Commerce itself tends to do these things.
Sounds like this would be a pretty flexible way to do it
Did anyone come up with a solution for this? We have a product with multiple categories and are experiencing the same error.
Here's the stack trace:
array:21 [
0 => array:6 [
"file" => "craft/vendor/craftcms/cms/src/base/Element.php"
"line" => 1005
"function" => "__get"
"class" => "yii\base\Component"
"type" => "->"
"args" => array:1 [
0 => "product"
]
]
1 => array:6 [
"file" => "craft/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php"
"line" => 475
"function" => "__get"
"class" => "craft\base\Element"
"type" => "->"
"args" => array:1 [
0 => "product"
]
]
2 => array:6 [
"file" => "craft/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php"
"line" => 232
"function" => "pullDataFromField"
"class" => "nystudio107\instantanalytics\services\Commerce"
"type" => "->"
"args" => array:2 [
0 => craft\commerce\elements\Product {#2783
+postDate: DateTime @1581978900 {#2786
date: 2020-02-17 15:35:00.0 America/Denver (-07:00)
}
+expiryDate: null
+typeId: "2"
+taxCategoryId: "1"
+shippingCategoryId: "1"
+promotable: "0"
+freeShipping: "0"
+enabled: "1"
+availableForPurchase: "1"
+defaultVariantId: "16092"
+defaultSku: "P-MBS-2323-42"
+defaultPrice: "350.0000"
+defaultHeight: "47.0000"
+defaultLength: "28.0000"
+defaultWidth: "28.0000"
+defaultWeight: "70.5000"
+taxCategory: null
+name: null
-_variants: null
-_defaultVariant: null
-_cheapestVariant: null
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: array:3 [
"category" => craft\fields\Categories {#1876
+allowLimit: false
+allowMultipleSources: false
+branchLimit: ""
#settingsTemplate: "_components/fieldtypes/Categories/settings"
#inputTemplate: "_components/fieldtypes/Categories/input"
#inputJsClass: "Craft.CategorySelectInput"
#sortable: false
+sources: "*"
+source: "group:d4646671-1fce-4cbf-9434-b610cb55e153"
+targetSiteId: null
+viewMode: null
+limit: null
+selectionLabel: ""
+validateRelatedElements: false
+localizeRelations: false
#allowLargeThumbsView: false
-_makeExistingRelationsTranslatable: false
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "251"
+dateCreated: DateTime @1563822963 {#1875
date: 2019-07-22 13:16:03.0 America/Denver (-06:00)
}
+dateUpdated: DateTime @1563823350 {#1874
date: 2019-07-22 13:22:30.0 America/Denver (-06:00)
}
+groupId: "5"
+name: "Category"
+handle: "category"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "site"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "92347b67-7088-42f4-be75-685f932535bf"
+layoutId: "15"
+tabId: "784"
+required: "0"
+sortOrder: "4"
}
"variantTitle" => null
"product" => null
]
-_fieldParamNamePrefix: null
-_normalizedFieldValues: array:1 [
"category" => true
]
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [
"customFields" => craft\behaviors\ContentBehavior {#2787
+phone: null
+company: null
+billingTerms: null
+term: null
+pedestalUse: null
+use: null
+shippingType: null
+height: null
+customerBillingTerms: null
+orderType: null
+customerClass: null
+freightItem: null
+featuredImage: null
+productGallery: null
+blockSettings: null
+margin: null
+padding: null
+color: null
+openContent: null
+contentWidth: null
+moduleGallery: null
+featuredLogos: null
+headline: null
+logos: null
+bannerHeading: null
+featuredProducts: null
+heroSectionMain: null
+backgroundImage: null
+heroSectionCtas: null
+heading: null
+subHeading: null
+heroCtaBackgroundImage: null
+blocks: null
+form: null
+headingOverride: null
+body: null
+customBackground: null
+logo: null
+globalPhoneNumber: null
+blockBackgroundImage: null
+backgroundColor: null
+shortDescription: "<ul><li>Material: Black Satin Laminate</li><li>Capacity: 200 lbs (call for heavier items)</li><li>Durable and easy to clean</li><li>Great for art, merchandise, collectibles & more</li><li>Built here in Colorado 👌🏼 </li><li><span style="color: rgb(31,73,125)"><u><a href="tel:8003339953">Call to customize</a></u> 📞 </span><br /></li></ul>"
+longDescription: "<p>Perfect for home, office, gallery, or retail, our Black Satin Laminate pedestals provide a refined and modern appearance to ensure your artwork, merchandise, or collectibles get noticed. Designed to integrate smoothly into your display environment, the rectangular pedestal is easy to clean, durable, and can support up to 200 pounds. Since we hand craft every single pedestal to your specifications, all our pedestals can be customized with features to further enhance your display. We offer a wide range of materials, from laminates to acrylics, as well as lighting options, dust covers, and turn tables. Everything we do occurs under one roof at our shop in Fort Collins, Colorado so we can guarantee our quality and service.</p>"
+materialProfit: null
+laborRate: null
+length: null
+width: null
+blockTitle: null
+multipleImages: null
+singleImage: null
+seoMatic: "{"bundleVersion":"1.0.22","sourceBundleType":"field","sourceId":null,"sourceName":null,"sourceHandle":null,"sourceType":"field","sourceTemplate":"","sourceSiteId":null,"sourceAltSiteSettings":[],"sourceDateUpdated":"2020-03-13T11:54:11-06:00","metaGlobalVars":{"language":null,"mainEntityOfPage":"","seoTitle":"","siteNamePosition":"","seoDescription":"","seoKeywords":"","seoImage":"","seoImageWidth":"","seoImageHeight":"","seoImageDescription":"","canonicalUrl":"","robots":"","ogType":"","ogTitle":"","ogSiteNamePosition":"","ogDescription":"","ogImage":"","ogImageWidth":"","ogImageHeight":"","ogImageDescription":"","twitterCard":"","twitterCreator":"","twitterTitle":"","twitterSiteNamePosition":"","twitterDescription":"","twitterImage":"","twitterImageWidth":"","twitterImageHeight":"","twitterImageDescription":""},"metaSiteVars":{"siteName":"Pedestal Source","identity":null,"creator":null,"twitterHandle":"","facebookProfileId":"","facebookAppId":"","googleSiteVerification":"","bingSiteVerification":"","pinterestSiteVerification":"","sameAsLinks":[],"siteLinksSearchTarget":"","siteLinksQueryInput":"","additionalSitemapUrls":[],"additionalSitemapUrlsDateUpdated":null,"additionalSitemaps":[]},"metaSitemapVars":{"sitemapUrls":true,"sitemapAssets":true,"sitemapFiles":true,"sitemapAltLinks":true,"sitemapChangeFreq":"weekly","sitemapPriority":"0.5","sitemapLimit":"","structureDepth":null,"sitemapImageFieldMap":[],"sitemapVideoFieldMap":[]},"metaContainers":{"MetaTagContainergeneral":{"data":[],"name":"General","description":"General Meta Tags","class":"nystudio107\\seomatic\\models\\MetaTagContainer","handle":"general","include":true,"dependencies":[],"clearCache":false},"MetaTagContaineropengraph":{"data":[],"name":"Facebook","description":"Facebook OpenGraph Meta Tags","class":"nystudio107\\seomatic\\models\\MetaTagContainer","handle":"opengraph","include":true,"dependencies":[],"clearCache":false},"MetaTagContainertwitter":{"data":[],"name":"Twitter","description":"Twitter Card Meta Tags","class":"nystudio107\\seomatic\\models\\MetaTagContainer","handle":"twitter","include":true,"dependencies":[],"clearCache":false},"MetaTagContainermiscellaneous":{"data":[],"name":"Miscellaneous","description":"Miscellaneous Meta Tags","class":"nystudio107\\seomatic\\models\\MetaTagContainer","handle":"miscellaneous","include":true,"dependencies":[],"clearCache":false},"MetaLinkContainergeneral":{"data":[],"name":"General","description":"Link Tags","class":"nystudio107\\seomatic\\models\\MetaLinkContainer","handle":"general","include":true,"dependencies":[],"clearCache":false},"MetaScriptContainergeneral":{"data":[],"position":1,"name":"General","description":"Script Tags","class":"nystudio107\\seomatic\\models\\MetaScriptContainer","handle":"general","include":true,"dependencies":[],"clearCache":false},"MetaJsonLdContainergeneral":{"data":[],"name":"General","description":"JsonLd Tags","class":"nystudio107\\seomatic\\models\\MetaJsonLdContainer","handle":"general","include":true,"dependencies":[],"clearCache":false},"MetaTitleContainergeneral":{"data":[],"name":"General","description":"Meta Title Tag","class":"nystudio107\\seomatic\\models\\MetaTitleContainer","handle":"general","include":true,"dependencies":[],"clearCache":false}},"redirectsContainer":[],"frontendTemplatesContainer":{"data":[],"name":null,"description":null,"class":"nystudio107\\seomatic\\models\\FrontendTemplateContainer","handle":null,"include":true,"dependencies":null,"clearCache":false},"metaBundleSettings":{"siteType":"","siteSubType":"","siteSpecificType":"","seoTitleSource":"fromCustom","seoTitleField":"title","siteNamePositionSource":"sameAsGlobal","seoDescriptionSource":"fromCustom","seoDescriptionField":"title","seoKeywordsSource":"fromCustom","seoKeywordsField":"title","seoImageIds":"","seoImageSource":"fromAsset","seoImageField":"featuredImage","seoImageTransform":"1","seoImageTransformMode":"crop","seoImageDescriptionSource":"fromCustom","seoImageDescriptionField":"title","twitterCreatorSource":"sameAsSite","twitterCreatorField":"","twitterTitleSource":"sameAsSeo","twitterTitleField":"","twitterSiteNamePositionSource":"sameAsGlobal","twitterDescriptionSource":"sameAsSeo","twitterDescriptionField":"","twitterImageIds":[],"twitterImageSource":"sameAsSeo","twitterImageField":"","twitterImageTransform":true,"twitterImageTransformMode":"crop","twitterImageDescriptionSource":"sameAsSeo","twitterImageDescriptionField":"","ogTitleSource":"sameAsSeo","ogTitleField":"","ogSiteNamePositionSource":"sameAsGlobal","ogDescriptionSource":"sameAsSeo","ogDescriptionField":"","ogImageIds":[],"ogImageSource":"sameAsSeo","ogImageField":"","ogImageTransform":true,"ogImageTransformMode":"crop","ogImageDescriptionSource":"sameAsSeo","ogImageDescriptionField":""}}"
+imageContent: null
+ICimage: null
+imagePosition: null
+ICcontent: null
+iconGrid: null
+icon: null
+iconTitle: null
+socialNetworks: null
+socialIcon: null
+socialurl: null
+pageLink: null
+Ctalink: null
+products: null
+blogCategory: null
+bannerImage: null
+excerpt: null
+orderBillingTerms: null
+orderNotes: null
+noteType: null
+notes: null
+internalAttachments: null
+quoteId: null
+pdfLogo: null
+orderPedestalUse: null
+expectedShipDate: null
+expectedShipDateWindow: null
+sampleImage: null
+productMaterial: null
+footerBadges: null
+badgeImage: null
+badgeLink: null
+headerLinks: null
+links: null
+linkText: null
+entryType: null
+videoUrls: null
+videoUrl: null
+poNumber: null
+ctaEntry: null
+forwardPath: null
+fpTitle: null
+fwContent: null
+phoneNumberText: null
+trackingNumbers: null
+materialSku: null
+modSku: null
+modPrice: null
+modWeight: null
+modLaborTime: null
+modMaterialCost: null
+modShortDescription: null
+modLongDescription: null
+typeSku: null
+typeShortDescription: null
+typeLongDescription: null
+typeMods: null
+dealId: null
+addressBlock: null
+typePrimaryImage: null
+subMaterialSku: null
+pricePerFootOrGal: null
+subMaterialWeight: null
+footPrintWidth: null
+footPrintDepth: null
+footPrintDiameter: null
+heights: null
+typeProductionTitle: null
+typeMaterials: null
+typeFootprints: null
+calculator: null
+subMaterialCategory: null
+grossProfit: null
+doubleWallBox: null
+oneLbsDensityEps: null
+elastocastPrice: null
+particleBoard: null
+modProductionTitle: null
+material: null
+laborFactor: null
+materialFactor: null
+productSubMaterial: null
+productFootprint: null
+productMods: null
+variantTitle: null
+productlabortime: null
+materialCost: null
+tabOne: null
+largeTitle: null
+subTitle: null
+promoImage: null
+promoLink: null
+entryLinks: null
+navLink: null
+navText: null
+columnWidth: null
+navigationBlocks: null
+heroContent: null
+bannerLink: null
+bannerLinkText: null
+category: craft\elements\db\CategoryQuery {#2788
+editable: false
+groupId: 2
+elementType: "craft\elements\Category"
+query: craft\db\Query {#2833 …20}
+subQuery: craft\db\Query {#2834 …20}
+contentTable: "{{%content}}"
+customFields: array:122 [ …122]
+inReverse: false
+asArray: false
+ignorePlaceholders: false
+drafts: false
+draftId: null
+draftOf: null
+draftCreator: null
+revisions: false
+revisionId: null
+revisionOf: null
+revisionCreator: null
+id: null
+uid: null
+fixedOrder: false
+status: array:1 [ …1]
+archived: false
+trashed: false
+dateCreated: null
+dateUpdated: null
+siteId: 1
+unique: false
+preferSites: false
+enabledForSite: true
+leaves: false
+relatedTo: null
+title: null
+slug: null
+uri: null
+search: null
+ref: null
+with: null
+orderBy: array:2 [ …2]
+withStructure: true
+structureId: 27
+level: null
+hasDescendants: null
+ancestorOf: null
+ancestorDist: null
+descendantOf: null
+descendantDist: null
+siblingOf: null
+prevSiblingOf: null
+nextSiblingOf: null
+positionedBefore: null
+positionedAfter: null
#defaultOrderBy: array:1 [ …1]
-_placeholderCondition: false
-_placeholderSiteIds: 1
-_result: null
-_resultCriteria: null
-_searchScores: null
+select: array:1 [ …1]
+selectOption: null
+distinct: null
+from: null
+groupBy: null
+join: array:1 [ …1]
+having: null
+union: null
+params: []
+queryCacheDuration: null
+queryCacheDependency: null
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [ …1]
+where: null
+limit: null
+offset: null
+indexBy: null
+emulateExecution: false
}
+shippingCode: null
+customDriveLocation: null
+salesPerson: null
+productionDescription: "Test"
+trustBadges: null
+iconText: null
+otherFinishes: null
+productLink: null
+finishImage: null
+fwImage: null
+optimizedImageVariants: null
+productVideo: null
+productDepth: null
+productWidth: null
+productHeight: null
+finishesFwp: null
+finishLinks: null
+linkUrl: null
+linkTitle: null
+quoteLink: null
+clearanceGrid: null
+productInfo: null
+productImage: null
-_customFieldValues: []
+owner: craft\commerce\elements\Product {#2783}
-_attachedEvents: []
}
]
+id: "16057"
+tempId: null
+draftId: null
+revisionId: null
+uid: "c9f0819e-9f22-4b3f-b7f5-65496ce8f1f0"
+fieldLayoutId: "15"
+structureId: null
+contentId: "15209"
+archived: "0"
+siteId: "1"
+enabledForSite: "1"
+title: "Black Satin Laminate Pedestal"
+slug: "black-satin-laminate-pedestal"
+uri: "products/black-satin-laminate-pedestal"
+dateCreated: DateTime @1576794911 {#2784
date: 2019-12-19 15:35:11.0 America/Denver (-07:00)
}
+dateUpdated: DateTime @1584122052 {#2785
date: 2020-03-13 11:54:12.0 America/Denver (-06:00)
}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
1 => "variantTitle"
]
]
3 => array:6 [
"file" => "craft/vendor/nystudio107/craft-instantanalytics/src/services/Commerce.php"
"line" => 86
"function" => "addProductDataFromLineItem"
"class" => "nystudio107\instantanalytics\services\Commerce"
"type" => "->"
"args" => array:2 [
0 => nystudio107\instantanalytics\helpers\IAnalytics {#2764
#shouldSendAnalytics: true
#uriScheme: "http"
#isAsyncRequest: false
#endpoint: "://www.google-analytics.com/collect"
#debugEndpoint: "://www.google-analytics.com/debug/collect"
#isDebug: false
#singleParameters: array:13 [
"v" => TheIconic\Tracking\GoogleAnalytics\Parameters\General\ProtocolVersion {#2766
#name: "v"
#value: "1"
-indexPlaceholder: ":i:"
}
"tid" => TheIconic\Tracking\GoogleAnalytics\Parameters\General\TrackingId {#2767
#name: "tid"
#value: "UA-5947630-1"
-indexPlaceholder: ":i:"
}
"uip" => TheIconic\Tracking\GoogleAnalytics\Parameters\Session\IpOverride {#2768
#name: "uip"
#value: "::1"
-indexPlaceholder: ":i:"
}
"ua" => TheIconic\Tracking\GoogleAnalytics\Parameters\Session\UserAgentOverride {#2769
#name: "ua"
#value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"
-indexPlaceholder: ":i:"
}
"dh" => TheIconic\Tracking\GoogleAnalytics\Parameters\ContentInformation\DocumentHostName {#2770
#name: "dh"
#value: "pedestal.test"
-indexPlaceholder: ":i:"
}
"dr" => TheIconic\Tracking\GoogleAnalytics\Parameters\TrafficSources\DocumentReferrer {#2771
#name: "dr"
#value: "https://pedestal.test/products/black-satin-laminate-pedestal"
-indexPlaceholder: ":i:"
}
"cid" => TheIconic\Tracking\GoogleAnalytics\Parameters\User\ClientId {#2772
#name: "cid"
#value: "a545ef48-1004-42bd-8bd3-48a9397e84b9"
-indexPlaceholder: ":i:"
}
"ta" => TheIconic\Tracking\GoogleAnalytics\Parameters\EnhancedEcommerce\Affiliation {#2773
#name: "ta"
#value: "Pedestal Source"
-indexPlaceholder: ":i:"
}
"dp" => TheIconic\Tracking\GoogleAnalytics\Parameters\ContentInformation\DocumentPath {#2774
#name: "dp"
#value: "products/black-satin-laminate-pedestal"
-indexPlaceholder: ":i:"
}
"ec" => TheIconic\Tracking\GoogleAnalytics\Parameters\Event\EventCategory {#2775
#name: "ec"
#value: "Commerce"
-indexPlaceholder: ":i:"
}
"ea" => TheIconic\Tracking\GoogleAnalytics\Parameters\Event\EventAction {#2776
#name: "ea"
#value: "Add to Cart"
-indexPlaceholder: ":i:"
}
"el" => TheIconic\Tracking\GoogleAnalytics\Parameters\Event\EventLabel {#2777
#name: "el"
#value: "Black Satin Laminate Pedestal"
-indexPlaceholder: ":i:"
}
"ev" => TheIconic\Tracking\GoogleAnalytics\Parameters\Event\EventValue {#2778
#name: "ev"
#value: 3
-indexPlaceholder: ":i:"
}
]
#compoundParametersCollections: []
#httpClient: null
#isDisabled: false
#options: []
#availableParameters: array:90 [
"ApplicationId" => "AppTracking\ApplicationId"
"ApplicationInstallerId" => "AppTracking\ApplicationInstallerId"
"ApplicationName" => "AppTracking\ApplicationName"
"ApplicationVersion" => "AppTracking\ApplicationVersion"
"ExperimentId" => "ContentExperiments\ExperimentId"
"ExperimentVariant" => "ContentExperiments\ExperimentVariant"
"ContentGroup" => "ContentGrouping\ContentGroup"
"DocumentHostName" => "ContentInformation\DocumentHostName"
"DocumentLocationUrl" => "ContentInformation\DocumentLocationUrl"
"DocumentPath" => "ContentInformation\DocumentPath"
"DocumentTitle" => "ContentInformation\DocumentTitle"
"LinkId" => "ContentInformation\LinkId"
"ScreenName" => "ContentInformation\ScreenName"
"CustomDimension" => "CustomDimensionsMetrics\CustomDimension"
"CustomMetric" => "CustomDimensionsMetrics\CustomMetric"
"CurrencyCode" => "Ecommerce\CurrencyCode"
"ItemCategory" => "Ecommerce\ItemCategory"
"ItemCode" => "Ecommerce\ItemCode"
"ItemName" => "Ecommerce\ItemName"
"ItemPrice" => "Ecommerce\ItemPrice"
"ItemQuantity" => "Ecommerce\ItemQuantity"
"Affiliation" => "EnhancedEcommerce\Affiliation"
"CheckoutStep" => "EnhancedEcommerce\CheckoutStep"
"CheckoutStepOption" => "EnhancedEcommerce\CheckoutStepOption"
"CouponCode" => "EnhancedEcommerce\CouponCode"
"Product" => "EnhancedEcommerce\Product"
"ProductAction" => "EnhancedEcommerce\ProductAction"
"ProductActionList" => "EnhancedEcommerce\ProductActionList"
"ProductCollection" => "EnhancedEcommerce\ProductCollection"
"ProductImpression" => "EnhancedEcommerce\ProductImpression"
"ProductImpressionCollection" => "EnhancedEcommerce\ProductImpressionCollection"
"ProductImpressionListName" => "EnhancedEcommerce\ProductImpressionListName"
"Promotion" => "EnhancedEcommerce\Promotion"
"PromotionAction" => "EnhancedEcommerce\PromotionAction"
"PromotionCollection" => "EnhancedEcommerce\PromotionCollection"
"Revenue" => "EnhancedEcommerce\Revenue"
"Shipping" => "EnhancedEcommerce\Shipping"
"Tax" => "EnhancedEcommerce\Tax"
"TransactionId" => "EnhancedEcommerce\TransactionId"
"EventAction" => "Event\EventAction"
"EventCategory" => "Event\EventCategory"
"EventLabel" => "Event\EventLabel"
"EventValue" => "Event\EventValue"
"ExceptionDescription" => "Exceptions\ExceptionDescription"
"IsExceptionFatal" => "Exceptions\IsExceptionFatal"
"AnonymizeIp" => "General\AnonymizeIp"
"CacheBuster" => "General\CacheBuster"
"DataSource" => "General\DataSource"
"ProtocolVersion" => "General\ProtocolVersion"
"QueueTime" => "General\QueueTime"
"TrackingId" => "General\TrackingId"
"HitType" => "Hit\HitType"
"NonInteractionHit" => "Hit\NonInteractionHit"
"GeographicalOverride" => "Session\GeographicalOverride"
"IpOverride" => "Session\IpOverride"
"SessionControl" => "Session\SessionControl"
"UserAgentOverride" => "Session\UserAgentOverride"
"SocialAction" => "SocialInteractions\SocialAction"
"SocialActionTarget" => "SocialInteractions\SocialActionTarget"
"SocialNetwork" => "SocialInteractions\SocialNetwork"
"DocumentEncoding" => "SystemInfo\DocumentEncoding"
"FlashVersion" => "SystemInfo\FlashVersion"
"JavaEnabled" => "SystemInfo\JavaEnabled"
"ScreenColors" => "SystemInfo\ScreenColors"
"ScreenResolution" => "SystemInfo\ScreenResolution"
"UserLanguage" => "SystemInfo\UserLanguage"
"ViewportSize" => "SystemInfo\ViewportSize"
"ContentLoadTime" => "Timing\ContentLoadTime"
"DnsTime" => "Timing\DnsTime"
"DomInteractiveTime" => "Timing\DomInteractiveTime"
"PageDownloadTime" => "Timing\PageDownloadTime"
"PageLoadTime" => "Timing\PageLoadTime"
"RedirectResponseTime" => "Timing\RedirectResponseTime"
"ServerResponseTime" => "Timing\ServerResponseTime"
"TcpConnectTime" => "Timing\TcpConnectTime"
"UserTimingCategory" => "Timing\UserTimingCategory"
"UserTimingLabel" => "Timing\UserTimingLabel"
"UserTimingTime" => "Timing\UserTimingTime"
"UserTimingVariableName" => "Timing\UserTimingVariableName"
"CampaignContent" => "TrafficSources\CampaignContent"
"CampaignId" => "TrafficSources\CampaignId"
"CampaignKeyword" => "TrafficSources\CampaignKeyword"
"CampaignMedium" => "TrafficSources\CampaignMedium"
"CampaignName" => "TrafficSources\CampaignName"
"CampaignSource" => "TrafficSources\CampaignSource"
"DocumentReferrer" => "TrafficSources\DocumentReferrer"
"GoogleAdwordsId" => "TrafficSources\GoogleAdwordsId"
"GoogleDisplayAdsId" => "TrafficSources\GoogleDisplayAdsId"
"ClientId" => "User\ClientId"
"UserId" => "User\UserId"
]
}
1 => craft\commerce\models\LineItem {#1418
+id: "555"
+price: "120.0000"
+saleAmount: "0.0000"
+salePrice: "120.0000"
+weight: "7.5000"
+length: "14.0000"
+height: "14.0000"
+width: "14.0000"
+qty: 3
+snapshot: "{"productId":"16057","isDefault":"0","sku":"P-MBS-99-9","price":120,"sortOrder":"35","width":"14.0000","height":"14.0000","length":"14.0000","weight":"7.5000","stock":"0","hasUnlimitedStock":"1","minQty":null,"maxQty":null,"deletedWithProduct":false,"id":"25696","tempId":null,"draftId":null,"revisionId":null,"uid":"50d0a15d-30ec-41b0-aa07-e81d4a1e2c64","fieldLayoutId":"16","contentId":"20803","enabled":"1","archived":"0","siteId":"1","enabledForSite":"1","title":"Black Satin Laminate Pedestal","slug":null,"uri":null,"dateCreated":"2020-03-11T14:52:43-06:00","dateUpdated":"2020-03-13T11:54:13-06:00","dateDeleted":null,"trashed":false,"propagateAll":false,"newSiteIds":[],"resaving":false,"duplicateOf":null,"previewing":false,"hardDelete":false,"ref":null,"status":"enabled","structureId":null,"url":"https://pedestal.test/products/black-satin-laminate-pedestal?variant=25696","isAvailable":true,"isPromotable":false,"shippingCategoryId":1,"taxCategoryId":1,"onSale":false,"cpEditUrl":"#","product":{"postDate":"2020-02-17T15:35:00-07:00","expiryDate":null,"typeId":"2","taxCategoryId":"1","shippingCategoryId":"1","promotable":"0","freeShipping":"0","enabled":"1","availableForPurchase":"1","defaultVariantId":"16092","defaultSku":"P-MBS-2323-42","defaultPrice":"350.0000","defaultHeight":"47.0000","defaultLength":"28.0000","defaultWidth":"28.0000","defaultWeight":"70.5000","taxCategory":null,"name":null,"id":"16057","tempId":null,"draftId":null,"revisionId":null,"uid":"c9f0819e-9f22-4b3f-b7f5-65496ce8f1f0","fieldLayoutId":"15","contentId":"15209","archived":"0","siteId":"1","enabledForSite":"1","title":"Black Satin Laminate Pedestal","slug":"black-satin-laminate-pedestal","uri":"products/black-satin-laminate-pedestal","dateCreated":"2019-12-19T15:35:11-07:00","dateUpdated":"2020-03-13T11:54:12-06:00","dateDeleted":null,"trashed":false,"propagateAll":false,"newSiteIds":[],"resaving":false,"duplicateOf":null,"previewing":false,"hardDelete":false,"ref":null,"status":"live","structureId":null,"url":"https://pedestal.test/products/black-satin-laminate-pedestal"},"description":"Black Satin Laminate Pedestal","purchasableId":"25696","options":[],"sales":[]}"
+note: ""
+purchasableId: "25696"
+orderId: "26051"
+taxCategoryId: "1"
+shippingCategoryId: "1"
+dateCreated: DateTime @1584134194 {#2746
date: 2020-03-13 15:16:34.0 America/Denver (-06:00)
}
-_purchasable: craft\commerce\elements\Variant {#2759
+productId: "16057"
+isDefault: "0"
+sku: "P-MBS-99-9"
+price: "120.0000"
+sortOrder: "35"
+width: "14.0000"
+height: "14.0000"
+length: "14.0000"
+weight: "7.5000"
+stock: "0"
+hasUnlimitedStock: "1"
+minQty: null
+maxQty: null
+deletedWithProduct: false
-_product: craft\commerce\elements\Product {#2783}
-_salePrice: null
-_sales: null
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: null
-_fieldParamNamePrefix: null
-_normalizedFieldValues: null
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [
"customFields" => craft\behaviors\ContentBehavior {#2762
+phone: null
+company: null
+billingTerms: null
+term: null
+pedestalUse: null
+use: null
+shippingType: null
+height: null
+customerBillingTerms: null
+orderType: null
+customerClass: null
+freightItem: "0"
+featuredImage: null
+productGallery: null
+blockSettings: null
+margin: null
+padding: null
+color: null
+openContent: null
+contentWidth: null
+moduleGallery: null
+featuredLogos: null
+headline: null
+logos: null
+bannerHeading: null
+featuredProducts: null
+heroSectionMain: null
+backgroundImage: null
+heroSectionCtas: null
+heading: null
+subHeading: null
+heroCtaBackgroundImage: null
+blocks: null
+form: null
+headingOverride: null
+body: null
+customBackground: null
+logo: null
+globalPhoneNumber: null
+blockBackgroundImage: null
+backgroundColor: null
+shortDescription: "<p>Our Black Satin Laminate Pedestal brings a modern appearance to any space. Engineered to support over 200 lbs, you can be certain your sculpture, trophy or other display will be safely showcased atop these rectangular pedestals.</p>"
+longDescription: "<p>Perfect for home, office, gallery, or retail, our Black Satin Laminate pedestals provide a refined and modern appearance to ensure your artwork, merchandise, or collectibles get noticed. Designed to integrate smoothly into your display environment, the rectangular pedestal is easy to clean, durable, and can support up to 200 pounds. Since we hand craft every single pedestal to your specifications, all our pedestals can be customized with features to further enhance your display. We offer a wide range of materials, from laminates to acrylics, as well as lighting options, dust covers, and turn tables. Everything we do occurs under one roof at our shop in Fort Collins, Colorado so we can guarantee our quality and service.</p>"
+materialProfit: null
+laborRate: null
+length: null
+width: null
+blockTitle: null
+multipleImages: null
+singleImage: null
+seoMatic: null
+imageContent: null
+ICimage: null
+imagePosition: null
+ICcontent: null
+iconGrid: null
+icon: null
+iconTitle: null
+socialNetworks: null
+socialIcon: null
+socialurl: null
+pageLink: null
+Ctalink: null
+products: null
+blogCategory: null
+bannerImage: null
+excerpt: null
+orderBillingTerms: null
+orderNotes: null
+noteType: null
+notes: null
+internalAttachments: null
+quoteId: null
+pdfLogo: null
+orderPedestalUse: null
+expectedShipDate: null
+expectedShipDateWindow: null
+sampleImage: null
+productMaterial: null
+footerBadges: null
+badgeImage: null
+badgeLink: null
+headerLinks: null
+links: null
+linkText: null
+entryType: null
+videoUrls: null
+videoUrl: null
+poNumber: null
+ctaEntry: null
+forwardPath: null
+fpTitle: null
+fwContent: null
+phoneNumberText: null
+trackingNumbers: null
+materialSku: null
+modSku: null
+modPrice: null
+modWeight: null
+modLaborTime: null
+modMaterialCost: null
+modShortDescription: null
+modLongDescription: null
+typeSku: null
+typeShortDescription: null
+typeLongDescription: null
+typeMods: null
+dealId: null
+addressBlock: null
+typePrimaryImage: null
+subMaterialSku: null
+pricePerFootOrGal: null
+subMaterialWeight: null
+footPrintWidth: null
+footPrintDepth: null
+footPrintDiameter: null
+heights: null
+typeProductionTitle: null
+typeMaterials: null
+typeFootprints: null
+calculator: null
+subMaterialCategory: null
+grossProfit: null
+doubleWallBox: null
+oneLbsDensityEps: null
+elastocastPrice: null
+particleBoard: null
+modProductionTitle: null
+material: null
+laborFactor: null
+materialFactor: null
+productSubMaterial: null
+productFootprint: "9" x 9""
+productMods: null
+variantTitle: "Black Satin Laminate Pedestal"
+productlabortime: "1.0000"
+materialCost: "2.77"
+tabOne: null
+largeTitle: null
+subTitle: null
+promoImage: null
+promoLink: null
+entryLinks: null
+navLink: null
+navText: null
+columnWidth: null
+navigationBlocks: null
+heroContent: null
+bannerLink: null
+bannerLinkText: null
+category: null
+shippingCode: null
+customDriveLocation: null
+salesPerson: null
+productionDescription: null
+trustBadges: null
+iconText: null
+otherFinishes: null
+productLink: null
+finishImage: null
+fwImage: null
+optimizedImageVariants: null
+productVideo: null
+productDepth: "9.00"
+productWidth: "9.00"
+productHeight: "9.00"
+finishesFwp: null
+finishLinks: null
+linkUrl: null
+linkTitle: null
+quoteLink: null
+clearanceGrid: null
+productInfo: null
+productImage: null
-_customFieldValues: []
+owner: craft\commerce\elements\Variant {#2759}
-_attachedEvents: []
}
]
+id: "25696"
+tempId: null
+draftId: null
+revisionId: null
+uid: "50d0a15d-30ec-41b0-aa07-e81d4a1e2c64"
+fieldLayoutId: "16"
+structureId: null
+contentId: "20803"
+enabled: "1"
+archived: "0"
+siteId: "1"
+enabledForSite: "1"
+title: "Black Satin Laminate Pedestal"
+slug: null
+uri: null
+dateCreated: DateTime @1583959963 {#2760
date: 2020-03-11 14:52:43.0 America/Denver (-06:00)
}
+dateUpdated: DateTime @1584122053 {#2761
date: 2020-03-13 11:54:13.0 America/Denver (-06:00)
}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
-_order: craft\commerce\elements\Order {#1414
+number: "0787f844a31d0367bb281b7d4e407d92"
+reference: null
+couponCode: null
+isCompleted: "0"
+dateOrdered: null
+datePaid: null
+currency: "USD"
+gatewayId: null
+lastIp: "::1"
+orderLanguage: "en-US"
+message: null
+returnUrl: null
+cancelUrl: null
+orderStatusId: null
+billingAddressId: "5"
+shippingAddressId: "5"
+estimatedBillingAddressId: null
+estimatedShippingAddressId: null
+makePrimaryShippingAddress: null
+makePrimaryBillingAddress: null
+shippingSameAsBilling: null
+billingSameAsShipping: null
+estimatedBillingSameAsShipping: null
+shippingMethodHandle: "fedex_ground"
+customerId: 1
+registerUserOnOrderComplete: null
-_shippingAddress: craft\commerce\models\Address {#2361
+id: "5"
+isStoreLocation: false
+attention: ""
+title: ""
+firstName: "Shaun"
+lastName: "Parkison"
+fullName: ""
+address1: "419 Canyon Avenue, Suite 215"
+address2: ""
+address3: ""
+city: "Fort Collins"
+zipCode: "80524"
+phone: "9704496868"
+alternativePhone: ""
+label: ""
+businessName: ""
+businessTaxId: ""
+businessId: ""
+stateName: ""
+countryId: "233"
+stateId: "27"
+notes: ""
+custom1: ""
+custom2: ""
+custom3: ""
+custom4: ""
+isEstimated: "0"
-_stateValue: null
-_vatValidator: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
-_billingAddress: craft\commerce\models\Address {#2361}
-_estimatedShippingAddress: null
-_estimatedBillingAddress: null
-_lineItems: array:4 [
0 => craft\commerce\models\LineItem {#1418}
1 => craft\commerce\models\LineItem {#2194
+id: "554"
+price: 169.0
+saleAmount: 0.0
+salePrice: 169.0
+weight: 16.2
+length: 20.0
+height: 17.0
+width: 20.0
+qty: "1"
+snapshot: array:53 [
"productId" => "16057"
"isDefault" => "0"
"sku" => "P-MBS-1515-12"
"price" => 169.0
"sortOrder" => "8"
"width" => "20.0000"
"height" => "17.0000"
"length" => "20.0000"
"weight" => "16.2000"
"stock" => "0"
"hasUnlimitedStock" => "1"
"minQty" => null
"maxQty" => null
"deletedWithProduct" => false
"id" => "25669"
"tempId" => null
"draftId" => null
"revisionId" => null
"uid" => "bd2235c6-27b3-44b2-bc6b-8299c07b29b6"
"fieldLayoutId" => "16"
"contentId" => "20776"
"enabled" => "1"
"archived" => "0"
"siteId" => "1"
"enabledForSite" => "1"
"title" => "Black Satin Laminate Pedestal"
"slug" => null
"uri" => null
"dateCreated" => "2020-03-11T14:52:43-06:00"
"dateUpdated" => "2020-03-13T11:54:12-06:00"
"dateDeleted" => null
"trashed" => false
"propagateAll" => false
"newSiteIds" => []
"resaving" => false
"duplicateOf" => null
"previewing" => false
"hardDelete" => false
"ref" => null
"status" => "enabled"
"structureId" => null
"url" => "https://pedestal.test/products/black-satin-laminate-pedestal?variant=25669"
"isAvailable" => true
"isPromotable" => false
"shippingCategoryId" => 1
"taxCategoryId" => 1
"onSale" => false
"cpEditUrl" => "#"
"product" => array:45 [ …45]
"description" => "Black Satin Laminate Pedestal"
"purchasableId" => "25669"
"options" => []
"sales" => []
]
+note: ""
+purchasableId: "25669"
+orderId: "26051"
+taxCategoryId: 1
+shippingCategoryId: 1
+dateCreated: DateTime @1584134149 {#2637
date: 2020-03-13 15:15:49.0 America/Denver (-06:00)
}
-_purchasable: craft\commerce\elements\Variant {#2325
+productId: "16057"
+isDefault: "0"
+sku: "P-MBS-1515-12"
+price: "169.0000"
+sortOrder: "8"
+width: "20.0000"
+height: "17.0000"
+length: "20.0000"
+weight: "16.2000"
+stock: "0"
+hasUnlimitedStock: "1"
+minQty: null
+maxQty: null
+deletedWithProduct: false
-_product: craft\commerce\elements\Product {#2295 …70}
-_salePrice: 169.0
-_sales: []
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: array:23 [ …23]
-_fieldParamNamePrefix: null
-_normalizedFieldValues: array:14 [ …14]
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [ …1]
+id: "25669"
+tempId: null
+draftId: null
+revisionId: null
+uid: "bd2235c6-27b3-44b2-bc6b-8299c07b29b6"
+fieldLayoutId: "16"
+structureId: null
+contentId: "20776"
+enabled: "1"
+archived: "0"
+siteId: "1"
+enabledForSite: "1"
+title: "Black Satin Laminate Pedestal"
+slug: null
+uri: null
+dateCreated: DateTime @1583959963 {#2302 …1}
+dateUpdated: DateTime @1584122052 {#2301 …1}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
-_order: craft\commerce\elements\Order {#1414}
-_options: []
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
2 => craft\commerce\models\LineItem {#2197
+id: "553"
+price: 143.0
+saleAmount: 0.0
+salePrice: 143.0
+weight: 12.0
+length: 16.0
+height: 17.0
+width: 16.0
+qty: "3"
+snapshot: array:53 [
"productId" => "16057"
"isDefault" => "0"
"sku" => "P-MBS-1212-12"
"price" => 143.0
"sortOrder" => "2"
"width" => "16.0000"
"height" => "17.0000"
"length" => "16.0000"
"weight" => "12.0000"
"stock" => "0"
"hasUnlimitedStock" => "1"
"minQty" => null
"maxQty" => null
"deletedWithProduct" => false
"id" => "25663"
"tempId" => null
"draftId" => null
"revisionId" => null
"uid" => "cda986e8-b88a-4ecb-8542-c39835eecb0b"
"fieldLayoutId" => "16"
"contentId" => "20770"
"enabled" => "1"
"archived" => "0"
"siteId" => "1"
"enabledForSite" => "1"
"title" => "Black Satin Laminate Pedestal"
"slug" => null
"uri" => null
"dateCreated" => "2020-03-11T14:52:43-06:00"
"dateUpdated" => "2020-03-13T11:54:12-06:00"
"dateDeleted" => null
"trashed" => false
"propagateAll" => false
"newSiteIds" => []
"resaving" => false
"duplicateOf" => null
"previewing" => false
"hardDelete" => false
"ref" => null
"status" => "enabled"
"structureId" => null
"url" => "https://pedestal.test/products/black-satin-laminate-pedestal?variant=25663"
"isAvailable" => true
"isPromotable" => false
"shippingCategoryId" => 1
"taxCategoryId" => 1
"onSale" => false
"cpEditUrl" => "#"
"product" => array:45 [ …45]
"description" => "Black Satin Laminate Pedestal"
"purchasableId" => "25663"
"options" => []
"sales" => []
]
+note: ""
+purchasableId: "25663"
+orderId: "26051"
+taxCategoryId: 1
+shippingCategoryId: 1
+dateCreated: DateTime @1584131325 {#2639
date: 2020-03-13 14:28:45.0 America/Denver (-06:00)
}
-_purchasable: craft\commerce\elements\Variant {#2350
+productId: "16057"
+isDefault: "0"
+sku: "P-MBS-1212-12"
+price: "143.0000"
+sortOrder: "2"
+width: "16.0000"
+height: "17.0000"
+length: "16.0000"
+weight: "12.0000"
+stock: "0"
+hasUnlimitedStock: "1"
+minQty: null
+maxQty: null
+deletedWithProduct: false
-_product: craft\commerce\elements\Product {#2226 …70}
-_salePrice: 143.0
-_sales: []
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: array:23 [ …23]
-_fieldParamNamePrefix: null
-_normalizedFieldValues: array:14 [ …14]
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [ …1]
+id: "25663"
+tempId: null
+draftId: null
+revisionId: null
+uid: "cda986e8-b88a-4ecb-8542-c39835eecb0b"
+fieldLayoutId: "16"
+structureId: null
+contentId: "20770"
+enabled: "1"
+archived: "0"
+siteId: "1"
+enabledForSite: "1"
+title: "Black Satin Laminate Pedestal"
+slug: null
+uri: null
+dateCreated: DateTime @1583959963 {#2277 …1}
+dateUpdated: DateTime @1584122052 {#2276 …1}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
-_order: craft\commerce\elements\Order {#1414}
-_options: []
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
3 => craft\commerce\models\LineItem {#2200
+id: "544"
+price: 226.0
+saleAmount: 0.0
+salePrice: 226.0
+weight: 27.4
+length: 28.0
+height: 17.0
+width: 28.0
+qty: "1"
+snapshot: array:53 [
"productId" => "16057"
"isDefault" => "0"
"sku" => "P-MBS-2323-12"
"price" => 226.0
"sortOrder" => "26"
"width" => "28.0000"
"height" => "17.0000"
"length" => "28.0000"
"weight" => "27.4000"
"stock" => "0"
"hasUnlimitedStock" => "1"
"minQty" => null
"maxQty" => null
"deletedWithProduct" => false
"id" => "25687"
"tempId" => null
"draftId" => null
"revisionId" => null
"uid" => "1040b0f6-4845-4b0f-ad13-639febd44049"
"fieldLayoutId" => "16"
"contentId" => "20794"
"enabled" => "1"
"archived" => "0"
"siteId" => "1"
"enabledForSite" => "1"
"title" => "Black Satin Laminate Pedestal"
"slug" => null
"uri" => null
"dateCreated" => "2020-03-11T14:52:43-06:00"
"dateUpdated" => "2020-03-13T11:54:13-06:00"
"dateDeleted" => null
"trashed" => false
"propagateAll" => false
"newSiteIds" => []
"resaving" => false
"duplicateOf" => null
"previewing" => false
"hardDelete" => false
"ref" => null
"status" => "enabled"
"structureId" => null
"url" => "https://pedestal.test/products/black-satin-laminate-pedestal?variant=25687"
"isAvailable" => true
"isPromotable" => false
"shippingCategoryId" => 1
"taxCategoryId" => 1
"onSale" => false
"cpEditUrl" => "#"
"product" => array:45 [ …45]
"description" => "Black Satin Laminate Pedestal"
"purchasableId" => "25687"
"options" => []
"sales" => []
]
+note: ""
+purchasableId: "25687"
+orderId: "26051"
+taxCategoryId: 1
+shippingCategoryId: 1
+dateCreated: DateTime @1584109476 {#2641
date: 2020-03-13 08:24:36.0 America/Denver (-06:00)
}
-_purchasable: craft\commerce\elements\Variant {#2375
+productId: "16057"
+isDefault: "0"
+sku: "P-MBS-2323-12"
+price: "226.0000"
+sortOrder: "26"
+width: "28.0000"
+height: "17.0000"
+length: "28.0000"
+weight: "27.4000"
+stock: "0"
+hasUnlimitedStock: "1"
+minQty: null
+maxQty: null
+deletedWithProduct: false
-_product: craft\commerce\elements\Product {#2338 …70}
-_salePrice: 226.0
-_sales: []
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: array:23 [ …23]
-_fieldParamNamePrefix: null
-_normalizedFieldValues: array:14 [ …14]
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [ …1]
+id: "25687"
+tempId: null
+draftId: null
+revisionId: null
+uid: "1040b0f6-4845-4b0f-ad13-639febd44049"
+fieldLayoutId: "16"
+structureId: null
+contentId: "20794"
+enabled: "1"
+archived: "0"
+siteId: "1"
+enabledForSite: "1"
+title: "Black Satin Laminate Pedestal"
+slug: null
+uri: null
+dateCreated: DateTime @1583959963 {#2331 …1}
+dateUpdated: DateTime @1584122053 {#2332 …1}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
-_order: craft\commerce\elements\Order {#1414}
-_options: []
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
]
-_orderAdjustments: array:2 [
0 => craft\commerce\models\OrderAdjustment {#2374
+id: 628
+name: "FedEx Ground"
+description: "FedEx Ground"
+type: "shipping"
+amount: 90.79
+included: false
-_sourceSnapshot: array:4 [
"name" => "FedEx Ground"
"handle" => "fedex_ground"
"order" => "26051"
"rate" => 90.79
]
+orderId: "26051"
+lineItemId: null
+isEstimated: false
-_lineItem: null
-_order: craft\commerce\elements\Order {#1414}
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
1 => craft\commerce\models\OrderAdjustment {#2418
+id: 629
+name: "State/County Tax"
+description: "7.55%"
+type: "tax"
+amount: 94.04
+included: false
-_sourceSnapshot: []
+orderId: "26051"
+lineItemId: null
+isEstimated: false
-_lineItem: null
-_order: craft\commerce\elements\Order {#2584
+number: "0787f844a31d0367bb281b7d4e407d92"
+reference: null
+couponCode: null
+isCompleted: "0"
+dateOrdered: null
+datePaid: null
+currency: "USD"
+gatewayId: null
+lastIp: "::1"
+orderLanguage: "en-US"
+message: null
+returnUrl: null
+cancelUrl: null
+orderStatusId: null
+billingAddressId: "5"
+shippingAddressId: "5"
+estimatedBillingAddressId: null
+estimatedShippingAddressId: null
+makePrimaryShippingAddress: null
+makePrimaryBillingAddress: null
+shippingSameAsBilling: null
+billingSameAsShipping: null
+estimatedBillingSameAsShipping: null
+shippingMethodHandle: "fedex_ground"
+customerId: "1"
+registerUserOnOrderComplete: null
-_shippingAddress: null
-_billingAddress: null
-_estimatedShippingAddress: null
-_estimatedBillingAddress: null
-_lineItems: null
-_orderAdjustments: null
-_paymentCurrency: "USD"
+paymentSourceId: null
-_email: "[email protected]"
-_recalculate: true
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: null
-_fieldParamNamePrefix: null
-_normalizedFieldValues: null
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
…33
}
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
]
-_paymentCurrency: "USD"
+paymentSourceId: null
-_email: "[email protected]"
-_recalculate: true
#revisionCreatorId: null
#revisionNotes: null
-_fieldsByHandle: array:18 [
"shippingCode" => craft\fields\PlainText {#1607
+placeholder: ""
+code: ""
+multiline: ""
+initialRows: "4"
+charLimit: "2"
+columnType: "text"
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "252"
+dateCreated: DateTime @1571414818 {#1608 …1}
+dateUpdated: DateTime @1571414818 {#1609 …1}
+groupId: "4"
+name: "Shipping Code"
+handle: "shippingCode"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "bfe5677b-1c13-4970-ad6d-9108e41ea085"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "1"
}
"customerClass" => craft\fields\Dropdown {#1613
+optgroups: true
+options: array:3 [ …3]
#multi: false
-_isFresh: false
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "18"
+dateCreated: DateTime @1539872492 {#1614 …1}
+dateUpdated: DateTime @1548194223 {#1615 …1}
+groupId: "4"
+name: "Customer Class"
+handle: "customerClass"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "2911987f-746a-49f0-94c2-d794afa9981f"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "3"
}
"orderPedestalUse" => lewisjenkins\craftdynamicfields\fields\Dropdown {#1616
+dropdownOptions: """
{% if appData.pedestalUse|length %}
{
"value":null,
"label":"Select usage..."
},
{% for pedestalUse in appData.pedestalUse %}
{{ loop.index > 1 ? ',' }} {
"value":"{{ pedestalUse.use }}",
"label":"{{ pedestalUse.use }}"
}
{% endfor %}
{% endif %}
"""
+columnType: "text"
-_isFresh: false
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "148"
+dateCreated: DateTime @1548193118 {#1617 …1}
+dateUpdated: DateTime @1548194118 {#1618 …1}
+groupId: "4"
+name: "Pedestal Use"
+handle: "orderPedestalUse"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "ba8d2daf-bf79-42b8-99ad-81bae96e03ff"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "4"
}
"orderBillingTerms" => lewisjenkins\craftdynamicfields\fields\Dropdown {#1619
+dropdownOptions: """
{% if appData.billingTerms|length %}
{
"value":null,
"label":"Select a billing term..."
},
{% for billingTerm in appData.billingTerms %}
{{ loop.index > 1 ? ',' }} {
"value":"{{ billingTerm.term }}",
"label":"{{ billingTerm.term }}"
}
{% endfor %}
{% endif %}
"""
+columnType: "text"
-_isFresh: false
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "108"
+dateCreated: DateTime @1544482113 {#1620 …1}
+dateUpdated: DateTime @1548194039 {#1621 …1}
+groupId: "4"
+name: "Billing Terms"
+handle: "orderBillingTerms"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "1b6ce241-eb0e-4d72-932c-5a785874351d"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "5"
}
"orderType" => craft\fields\Dropdown {#1622
+optgroups: true
+options: array:2 [ …2]
#multi: false
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "17"
+dateCreated: DateTime @1539872452 {#1623 …1}
+dateUpdated: DateTime @1550508969 {#1624 …1}
+groupId: "4"
+name: "Type"
+handle: "orderType"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "9b3efab4-ade9-425f-b28b-b7a7f50e9551"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "6"
}
"expectedShipDate" => craft\fields\Date {#1625
+showDate: true
+showTime: false
+minuteIncrement: "30"
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "149"
+dateCreated: DateTime @1548353729 {#1626 …1}
+dateUpdated: DateTime @1548443312 {#1627 …1}
+groupId: "4"
+name: "Expected Ship Date"
+handle: "expectedShipDate"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "17bc5059-06f2-4a52-a251-e0d654111761"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "7"
}
"poNumber" => craft\fields\PlainText {#1628
+placeholder: ""
+code: ""
+multiline: ""
+initialRows: "4"
+charLimit: ""
+columnType: "text"
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "163"
+dateCreated: DateTime @1550508848 {#1629 …1}
+dateUpdated: DateTime @1550508848 {#1630 …1}
+groupId: "4"
+name: "PO Number"
+handle: "poNumber"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "9a3caff1-4026-4aba-a3db-965285cacc66"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "8"
}
"quoteId" => craft\fields\Number {#1631
+defaultValue: null
+min: "0"
+max: null
+decimals: 0
+size: null
+prefix: null
+suffix: null
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "113"
+dateCreated: DateTime @1546903817 {#1632 …1}
+dateUpdated: DateTime @1546903817 {#1633 …1}
+groupId: "4"
+name: "Quote ID"
+handle: "quoteId"
+context: "global"
+instructions: "Related quote ID. Should be automatically populated when quote is converted to order."
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "1591af11-d3f8-4d2c-acbd-8231b914879c"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "9"
}
"dealId" => craft\fields\PlainText {#1634
+placeholder: ""
+code: ""
+multiline: ""
+initialRows: "4"
+charLimit: ""
+columnType: "text"
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "189"
+dateCreated: DateTime @1556559133 {#1635 …1}
+dateUpdated: DateTime @1556559133 {#1636 …1}
+groupId: "4"
+name: "Deal ID"
+handle: "dealId"
+context: "global"
+instructions: "Related PipeDrive Deal ID. Should be automatically populated when quote is converted to order."
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "3a5354f8-b39c-43bc-9eee-f39c72af750a"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "10"
}
"trackingNumbers" => craft\fields\Table {#1643
+addRowLabel: "Add tracking number"
+maxRows: ""
+minRows: "0"
+columns: array:3 [ …3]
+defaults: []
+columnType: "text"
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "170"
+dateCreated: DateTime @1554493373 {#1644 …1}
+dateUpdated: DateTime @1557765503 {#1645 …1}
+groupId: "4"
+name: "Tracking Numbers"
+handle: "trackingNumbers"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "none"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "c817e079-dc81-4c65-8b6b-15b1b18f2698"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "13"
}
"lineItems" => null
"shippingAddress" => null
"paymentCurrency" => null
"totalPaid" => null
"salesPerson" => craft\fields\Users {#1610
+sources: array:2 [ …2]
+source: null
+targetSiteId: null
+viewMode: null
+limit: "1"
+selectionLabel: "Select sales person"
+validateRelatedElements: false
+localizeRelations: false
+allowMultipleSources: true
+allowLimit: true
#allowLargeThumbsView: false
#settingsTemplate: "_components/fieldtypes/elementfieldsettings"
#inputTemplate: "_includes/forms/elementSelect"
#inputJsClass: null
#sortable: true
-_makeExistingRelationsTranslatable: false
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "254"
+dateCreated: DateTime @1575580514 {#1611 …1}
+dateUpdated: DateTime @1575580668 {#1612 …1}
+groupId: "4"
+name: "Sales Person"
+handle: "salesPerson"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "site"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "fc5b81f7-83aa-4345-8662-3634268d38d7"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "2"
}
"internalAttachments" => craft\fields\Assets {#1640
+useSingleFolder: "1"
+defaultUploadLocationSource: "volume:20dded46-f830-4468-a0b1-b97fec519fc9"
+defaultUploadLocationSubpath: ""
+singleUploadLocationSource: "volume:584b5399-48cf-4641-bce0-4b5f9a3062ee"
+singleUploadLocationSubpath: ""
+restrictFiles: ""
+allowedKinds: null
#allowLargeThumbsView: true
#settingsTemplate: "_components/fieldtypes/Assets/settings"
#inputTemplate: "_components/fieldtypes/Assets/input"
#inputJsClass: "Craft.AssetSelectInput"
-_uploadedDataFiles: null
+sources: "*"
+source: null
+targetSiteId: null
+viewMode: "list"
+limit: ""
+selectionLabel: "Add attachment"
+validateRelatedElements: false
+localizeRelations: false
+allowMultipleSources: true
+allowLimit: true
#sortable: true
-_makeExistingRelationsTranslatable: false
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "112"
+dateCreated: DateTime @1546881723 {#1641 …1}
+dateUpdated: DateTime @1553025610 {#1642 …1}
+groupId: "4"
+name: "Attachments"
+handle: "internalAttachments"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "site"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "de57711e-43f6-4f55-88ec-ba15ec5b64ae"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "12"
}
"orderNotes" => craft\fields\Matrix {#1604
+minBlocks: ""
+maxBlocks: ""
+contentTable: "{{%matrixcontent_ordernotes}}"
+propagationMethod: "all"
+localizeBlocks: false
-_blockTypes: null
-_blockTypeFields: null
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "109"
+dateCreated: DateTime @1544719893 {#1605 …1}
+dateUpdated: DateTime @1544719893 {#1606 …1}
+groupId: "4"
+name: "Notes"
+handle: "orderNotes"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "site"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "6d14f4e2-2b77-41cb-8d86-ca1df6f2f92a"
+layoutId: "182"
+tabId: "678"
+required: "0"
+sortOrder: "1"
}
"videoUrls" => craft\fields\Matrix {#1637
+minBlocks: ""
+maxBlocks: ""
+contentTable: "{{%matrixcontent_videourls}}"
+propagationMethod: "all"
+localizeBlocks: false
-_blockTypes: null
-_blockTypeFields: null
-_isFresh: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
+id: "161"
+dateCreated: DateTime @1550508467 {#1638 …1}
+dateUpdated: DateTime @1550509135 {#1639 …1}
+groupId: "4"
+name: "Video URLs"
+handle: "videoUrls"
+context: "global"
+instructions: ""
+searchable: "1"
+translationMethod: "site"
+translationKeyFormat: null
+oldHandle: null
+oldSettings: null
+columnPrefix: null
+uid: "68db6475-a051-4556-990c-c2356c565b76"
+layoutId: "182"
+tabId: "679"
+required: "0"
+sortOrder: "11"
}
]
-_fieldParamNamePrefix: null
-_normalizedFieldValues: array:14 [
"shippingCode" => true
"customerClass" => true
"orderPedestalUse" => true
"orderBillingTerms" => true
"orderType" => true
"expectedShipDate" => true
"poNumber" => true
"quoteId" => true
"dealId" => true
"trackingNumbers" => true
"salesPerson" => true
"internalAttachments" => true
"orderNotes" => true
"videoUrls" => true
]
-_nextElement: false
-_prevElement: false
-_parent: null
-_prevSibling: null
-_nextSibling: null
-_eagerLoadedElements: null
-_currentRevision: null
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: array:1 [
"customFields" => craft\behaviors\ContentBehavior {#1417
+phone: null
+company: null
+billingTerms: null
+term: null
+pedestalUse: null
+use: null
+shippingType: null
+height: null
+customerBillingTerms: null
+orderType: craft\fields\data\SingleOptionFieldData {#2043 …4}
+customerClass: craft\fields\data\SingleOptionFieldData {#1674 …4}
+freightItem: null
+featuredImage: null
+productGallery: null
+blockSettings: null
+margin: null
+padding: null
+color: null
+openContent: null
+contentWidth: null
+moduleGallery: null
+featuredLogos: null
+headline: null
+logos: null
+bannerHeading: null
+featuredProducts: null
+heroSectionMain: null
+backgroundImage: null
+heroSectionCtas: null
+heading: null
+subHeading: null
+heroCtaBackgroundImage: null
+blocks: null
+form: null
+headingOverride: null
+body: null
+customBackground: null
+logo: null
+globalPhoneNumber: null
+blockBackgroundImage: null
+backgroundColor: null
+shortDescription: null
+longDescription: null
+materialProfit: null
+laborRate: null
+length: null
+width: null
+blockTitle: null
+multipleImages: null
+singleImage: null
+seoMatic: null
+imageContent: null
+ICimage: null
+imagePosition: null
+ICcontent: null
+iconGrid: null
+icon: null
+iconTitle: null
+socialNetworks: null
+socialIcon: null
+socialurl: null
+pageLink: null
+Ctalink: null
+products: null
+blogCategory: null
+bannerImage: null
+excerpt: null
+orderBillingTerms: ""
+orderNotes: craft\elements\db\MatrixBlockQuery {#2479 …81}
+noteType: null
+notes: null
+internalAttachments: craft\elements\db\AssetQuery {#2648 …85}
+quoteId: null
+pdfLogo: null
+orderPedestalUse: ""
+expectedShipDate: null
+expectedShipDateWindow: null
+sampleImage: null
+productMaterial: null
+footerBadges: null
+badgeImage: null
+badgeLink: null
+headerLinks: null
+links: null
+linkText: null
+entryType: null
+videoUrls: craft\elements\db\MatrixBlockQuery {#2669 …81}
+videoUrl: null
+poNumber: null
+ctaEntry: null
+forwardPath: null
+fpTitle: null
+fwContent: null
+phoneNumberText: null
+trackingNumbers: []
+materialSku: null
+modSku: null
+modPrice: null
+modWeight: null
+modLaborTime: null
+modMaterialCost: null
+modShortDescription: null
+modLongDescription: null
+typeSku: null
+typeShortDescription: null
+typeLongDescription: null
+typeMods: null
+dealId: null
+addressBlock: null
+typePrimaryImage: null
+subMaterialSku: null
+pricePerFootOrGal: null
+subMaterialWeight: null
+footPrintWidth: null
+footPrintDepth: null
+footPrintDiameter: null
+heights: null
+typeProductionTitle: null
+typeMaterials: null
+typeFootprints: null
+calculator: null
+subMaterialCategory: null
+grossProfit: null
+doubleWallBox: null
+oneLbsDensityEps: null
+elastocastPrice: null
+particleBoard: null
+modProductionTitle: null
+material: null
+laborFactor: null
+materialFactor: null
+productSubMaterial: null
+productFootprint: null
+productMods: null
+variantTitle: null
+productlabortime: null
+materialCost: null
+tabOne: null
+largeTitle: null
+subTitle: null
+promoImage: null
+promoLink: null
+entryLinks: null
+navLink: null
+navText: null
+columnWidth: null
+navigationBlocks: null
+heroContent: null
+bannerLink: null
+bannerLinkText: null
+category: null
+shippingCode: null
+customDriveLocation: null
+salesPerson: craft\elements\db\UserQuery {#2202 …83}
+productionDescription: null
+trustBadges: null
+iconText: null
+otherFinishes: null
+productLink: null
+finishImage: null
+fwImage: null
+optimizedImageVariants: null
+productVideo: null
+productDepth: null
+productWidth: null
+productHeight: null
+finishesFwp: null
+finishLinks: null
+linkUrl: null
+linkTitle: null
+quoteLink: null
+clearanceGrid: null
+productInfo: null
+productImage: null
-_customFieldValues: []
+owner: craft\commerce\elements\Order {#1414}
-_attachedEvents: []
}
]
+id: "26051"
+tempId: null
+draftId: null
+revisionId: null
+uid: "50ed09d6-cbb9-4d72-86d7-7f2d1c1e5b5d"
+fieldLayoutId: "182"
+structureId: null
+contentId: "20958"
+enabled: "1"
+archived: "0"
+siteId: "1"
+enabledForSite: true
+title: null
+slug: null
+uri: null
+dateCreated: DateTime @1584109476 {#1663
date: 2020-03-13 08:24:36.0 America/Denver (-06:00)
}
+dateUpdated: DateTime @1584134314 {#1650
date: 2020-03-13 15:18:34.0 America/Denver (-06:00)
}
+dateDeleted: null
+root: null
+lft: null
+rgt: null
+level: null
+searchScore: null
+trashed: false
+awaitingFieldValues: false
+propagating: false
+propagateAll: false
+newSiteIds: []
+resaving: false
+duplicateOf: null
+previewing: false
+hardDelete: false
}
-_options: []
-_errors: null
-_validators: null
-_scenario: "default"
-_events: []
-_eventWildcards: []
-_behaviors: []
}
]
]
4 => array:6 [
"file" => "craft/vendor/nystudio107/craft-instantanalytics/src/InstantAnalytics.php"
"line" => 289
"function" => "addToCart"
"class" => "nystudio107\instantanalytics\services\Commerce"
"type" => "->"
"args" => array:2 [
0 => craft\commerce\elements\Order {#1414}
1 => craft\commerce\models\LineItem {#1418}
]
]
5 => array:4 [
"function" => "nystudio107\instantanalytics\{closure}"
"class" => "nystudio107\instantanalytics\InstantAnalytics"
"type" => "->"
"args" => array:1 [
0 => craft\commerce\events\LineItemEvent {#1662
+lineItem: craft\commerce\models\LineItem {#1418}
+isNew: false
+isValid: true
+name: "afterAddLineItemToOrder"
+sender: craft\commerce\elements\Order {#1414}
+handled: false
+data: null
}
]
]
6 => array:4 [
"file" => "craft/vendor/yiisoft/yii2/base/Event.php"
"line" => 312
"function" => "call_user_func"
"args" => array:2 [
0 => Closure(LineItemEvent $e) {#1304
class: "nystudio107\instantanalytics\InstantAnalytics"
this: nystudio107\instantanalytics\InstantAnalytics {#1288 …}
}
1 => craft\commerce\events\LineItemEvent {#1662}
]
]
7 => array:6 [
"file" => "craft/vendor/yiisoft/yii2/base/Component.php"
"line" => 636
"function" => "trigger"
"class" => "yii\base\Event"
"type" => "::"
"args" => array:3 [
0 => "craft\commerce\elements\Order"
1 => "afterAddLineItemToOrder"
2 => craft\commerce\events\LineItemEvent {#1662}
]
]
8 => array:6 [
"file" => "craft/vendor/craftcms/commerce/src/elements/Order.php"
"line" => 843
"function" => "trigger"
"class" => "yii\base\Component"
"type" => "->"
"args" => array:2 [
0 => "afterAddLineItemToOrder"
1 => craft\commerce\events\LineItemEvent {#1662}
]
]
9 => array:6 [
"file" => "oms/pedestalsourceoms/src/services/ProductService.php"
"line" => 210
"function" => "addLineItem"
"class" => "craft\commerce\elements\Order"
"type" => "->"
"args" => array:1 [
0 => craft\commerce\models\LineItem {#1418}
]
]
10 => array:6 [
"file" => "oms/pedestalsourceoms/src/controllers/ProductController.php"
"line" => 64
"function" => "addToCart"
"class" => "pedestalsourceoms\pedestalsourceoms\services\ProductService"
"type" => "->"
"args" => array:2 [
0 => craft\web\Request {#66
+ipHeaders: array:6 [
0 => "Client-IP"
1 => "X-Forwarded-For"
2 => "X-Forwarded"
3 => "X-Cluster-Client-IP"
4 => "Forwarded-For"
5 => "Forwarded"
]
+maxPageNum: 100000
-_fullPath: "products/black-satin-laminate-pedestal"
-_path: "products/black-satin-laminate-pedestal"
-_segments: array:2 [
0 => "products"
1 => "black-satin-laminate-pedestal"
]
-_pageNum: 1
-_isCpRequest: false
-_isActionRequest: true
-_isSingleActionRequest: false
-_isLoginRequest: false
-_checkedRequestType: true
-_actionSegments: array:3 [
0 => "oms"
1 => "product"
2 => "add-to-cart"
]
-_isLivePreview: false
-_isMobileBrowser: null
-_isMobileOrTabletBrowser: null
-_ipAddress: "::1"
-_craftCsrfToken: "RHyFJv7L0citfeNOqEosOzvrP5aE9YxX4yVWFj0OFCOPPjlfqqHV8C5arzZRr4tuH1aX9pbkz8NTiyYkr3ggB2X_rrqZmFFdBg9-riI8Jo7aYMGvuBxXZiJejMZwK0F2G9jf0RIZt5EezGkT0gUqj2HjLCdZJkMkM6Lw_IMpSpalfaVhqt1-UnZpFqjtrkr7nNmcycW5lzUzvmEwaI8_km9IQkoFWr6kfD-cmwlA-er4NHG7219u3TufPyVRljxxpQ7jk9VPVqONPB1e6_lWviwt7l6R_Z-w3DKULO8bZ05Uk0rC98T4BIdQGU9fW211308BM8OUt7dSP8wCYsy6XSxmoM6v1f3zMu8WRs1NQjBXzsuOr60wZTc3SpxEXhPsvwTynY15YQMRb7n3FB5wTyjgvOUmLdP0f6Q4eKpqHMEZkmNQO2ESb0bNiInXWnvi9hnQLvO_KysgOWeQgcd_mdulrbXhi-4RAo1FeDLHCvhecQE8MWPu3BZM_8luGbGpnURH_YgIJuQUy3ZPNq9JF5NDofe2Nw-W-FdqCt24MtM="
-_encodedQueryParams: true
-_encodedBodyParams: true
+_token: false
+enableCsrfValidation: true
+csrfParam: "CRAFT_CSRF_TOKEN"
+csrfCookie: array:4 [
"domain" => ""
"secure" => true
"httpOnly" => true
"sameSite" => null
]
+enableCsrfCookie: true
+enableCookieValidation: true
+cookieValidationKey: "_PuaE9huInvPs7nrRzd1g50CchVjWQyR"
+methodParam: "_method"
+parsers: array:1 [
"application/json" => "yii\web\JsonParser"
]
+trustedHosts: array:1 [
0 => "any"
]
+secureHeaders: array:5 [
0 => "X-Forwarded-For"
1 => "X-Forwarded-Host"
2 => "X-Forwarded-Proto"
3 => "Front-End-Https"
4 => "X-Rewrite-Url"
]
+secureProtocolHeaders: array:2 [
"X-Forwarded-Proto" => array:1 [
0 => "https"
]
"Front-End-Https" => array:1 [
0 => "on"
]
]
-_cookies: yii\web\CookieCollection {#1039
+readOnly: true
-_cookies: array:3 [
"1031b8c41dfff97a311a7ac99863bdc5_username" => yii\web\Cookie {#1045 …8}
"CRAFT_CSRF_TOKEN" => yii\web\Cookie {#1044 …8}
"1031b8c41dfff97a311a7ac99863bdc5_identity" => yii\web\Cookie {#1046 …8}
]
}
-_headers: yii\web\HeaderCollection {#61
-_headers: array:14 [
"cookie" => array:1 [ …1]
"accept-language" => array:1 [ …1]
"accept-encoding" => array:1 [ …1]
"referer" => array:1 [ …1]
"sec-fetch-mode" => array:1 [ …1]
"sec-fetch-site" => array:1 [ …1]
"origin" => array:1 [ …1]
"content-type" => array:1 [ …1]
"user-agent" => array:1 [ …1]
"sec-fetch-dest" => array:1 [ …1]
"accept" => array:1 [ …1]
"content-length" => array:1 [ …1]
"connection" => array:1 [ …1]
"host" => array:1 [ …1]
]
}
-_rawBody: null
-_bodyParams: array:4 [
"purchasableId" => "25696"
"qty" => "1"
"CRAFT_CSRF_TOKEN" => "r4JXvtUFa-AjWkSE4qzmHnbLbUjYMnXYDtqWMW1-72nzDjFWLvD4wJDqXbihMDyQNfbq7yRKjd8LgZMlahJW5thRzcmL4hXbwmHZFRIUPIc0I1CVAZgYrG7ucww-LXFp1cWjceS-zE40mlp1Xrs5xm3ehsguE27XcB_fPkTAkJtfqywX1dTF_28K4d_y-T4QNbzbPwuERW-8FF3JC6OIp72jy11QUz3Hj2L0Sufcn5f6EA4htvzEDIB2r43WxRZoA1Y4s9UWM8GakQEMEJdYpMfTPMa6MyWYUhUz5qX9rWsZsxgcqwMBi2qv2WgPK5Y_o38JOkfFmofsjz6MklMNowbG3dcde7_vauWjRwgnNNHqYKj9vdd04_NZ7Sd0dgnlUUdjpzT9Lsld30Y9WhhAUOb9wEXQiqgrVfILHibUD4gVr8m_TFQ_nAVwp0sQs6HvDM9ZWIy2kIY5WpDnnpALcnLA6kMvtjxLjSd5gVHrvc2MmogrZGptv-URlxiAhdfUn2A4Z-WrjDWvIubnsfxjDjUbete2bmr07_p2WCbWPMk="
"action" => "oms/product/add-to-cart"
]
-_queryParams: array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
-_hostInfo: "https://pedestal.test"
-_hostName: "pedestal.test"
-_baseUrl: ""
-_scriptUrl: "/index.php"
-_scriptFile: null
-_pathInfo: null
-_url: null
-_port: null
-_securePort: 443
-_contentTypes: null
-_languages: null
-_csrfToken: null
-_secureForwardedHeaderParts: []
-_isConsoleRequest: null
-_events: []
-_eventWildcards: []
-_behaviors: null
+isWebrootAliasSetDynamically: true
+isWebAliasSetDynamically: true
-_scriptFile: null
}
1 => craft\web\Response {#307
-_isPrepared: false
+format: "json"
+acceptMimeType: null
+acceptParams: []
+formatters: array:4 [
"html" => array:1 [
"class" => "yii\web\HtmlResponseFormatter"
]
"xml" => array:1 [
"class" => "yii\web\XmlResponseFormatter"
]
"json" => array:1 [
"class" => "yii\web\JsonResponseFormatter"
]
"jsonp" => array:2 [
"class" => "yii\web\JsonResponseFormatter"
"useJsonp" => true
]
]
+data: null
+content: null
+stream: null
+charset: "UTF-8"
+statusText: "OK"
+version: "1.1"
+isSent: false
-_statusCode: 200
-_headers: yii\web\HeaderCollection {#306
-_headers: array:1 [
"x-powered-by" => array:1 [ …1]
]
}
-_cookies: yii\web\CookieCollection {#1048
+readOnly: false
-_cookies: array:1 [
"1031b8c41dfff97a311a7ac99863bdc5_identity" => yii\web\Cookie {#1047 …8}
]
}
+exitStatus: 0
-_events: array:1 [
"afterPrepare" => array:2 [
0 => array:2 [ …2]
1 => array:2 [ …2]
]
]
-_eventWildcards: []
-_behaviors: []
}
]
]
11 => array:4 [
"function" => "actionAddToCart"
"class" => "pedestalsourceoms\pedestalsourceoms\controllers\ProductController"
"type" => "->"
"args" => []
]
12 => array:4 [
"file" => "craft/vendor/yiisoft/yii2/base/InlineAction.php"
"line" => 57
"function" => "call_user_func_array"
"args" => array:2 [
0 => array:2 [
0 => pedestalsourceoms\pedestalsourceoms\controllers\ProductController {#1404
#allowAnonymous: array:1 [
"add-to-cart" => 1
]
+enableCsrfValidation: true
+actionParams: []
+id: "product"
+module: pedestalsourceoms\pedestalsourceoms\PedestalSourceOms {#1189
+schemaVersion: "1.0.7"
-_settingsModel: pedestalsourceoms\pedestalsourceoms\models\Settings {#1190 …14}
+params: []
+id: "oms"
+module: craft\web\Application {#26 …45}
+layout: null
+controllerMap: []
+controllerNamespace: "pedestalsourceoms\pedestalsourceoms\controllers"
+defaultRoute: "default"
-_basePath: "oms/pedestalsourceoms/src"
-_viewPath: null
-_layoutPath: null
-_modules: []
-_version: "1.0.0"
-_components: array:2 [ …2]
-_definitions: array:12 [ …12]
-_events: []
-_eventWildcards: []
-_behaviors: []
+packageName: "nerdymind/oms"
+name: "Pedestal Source OMS"
+description: "Pedestal Source Order Management System - By NerdyMind Marketing"
+developer: "NerdyMind Marketing, LLC"
+developerUrl: "https://nerdymind.com"
+developerEmail: null
+documentationUrl: "https://github.com/sparkison/oms/blob/master/README.md"
+changelogUrl: "https://raw.githubusercontent.com/sparkison/oms/master/CHANGELOG.md"
+downloadUrl: null
+t9nCategory: "oms"
+sourceLanguage: "en-US"
+hasCpSettings: true
+hasCpSection: true
+isInstalled: true
+minVersionRequired: null
+edition: "standard"
}
+defaultAction: "index"
+layout: null
+action: yii\base\InlineAction {#1403
+actionMethod: "actionAddToCart"
+id: "add-to-cart"
+controller: pedestalsourceoms\pedestalsourceoms\controllers\ProductController {#1404}
-_events: []
-_eventWildcards: []
-_behaviors: null
}
-_view: null
-_viewPath: null
-_events: []
-_eventWildcards: []
-_behaviors: []
}
1 => "actionAddToCart"
]
1 => []
]
]
13 => array:6 [
"file" => "craft/vendor/yiisoft/yii2/base/Controller.php"
"line" => 157
"function" => "runWithParams"
"class" => "yii\base\InlineAction"
"type" => "->"
"args" => array:1 [
0 => array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
]
]
14 => array:6 [
"file" => "craft/vendor/craftcms/cms/src/web/Controller.php"
"line" => 187
"function" => "runAction"
"class" => "yii\base\Controller"
"type" => "->"
"args" => array:2 [
0 => "add-to-cart"
1 => array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
]
]
15 => array:6 [
"file" => "craft/vendor/yiisoft/yii2/base/Module.php"
"line" => 528
"function" => "runAction"
"class" => "craft\web\Controller"
"type" => "->"
"args" => array:2 [
0 => "add-to-cart"
1 => array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
]
]
16 => array:6 [
"file" => "craft/vendor/craftcms/cms/src/web/Application.php"
"line" => 299
"function" => "runAction"
"class" => "yii\base\Module"
"type" => "->"
"args" => array:2 [
0 => "oms/product/add-to-cart"
1 => array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
]
]
17 => array:6 [
"file" => "craft/vendor/craftcms/cms/src/web/Application.php"
"line" => 565
"function" => "runAction"
"class" => "craft\web\Application"
"type" => "->"
"args" => array:2 [
0 => "oms/product/add-to-cart"
1 => array:1 [
"p" => "products/black-satin-laminate-pedestal"
]
]
]
18 => array:6 [
"file" => "craft/vendor/craftcms/cms/src/web/Application.php"
"line" => 278
"function" => "_processActionRequest"
"class" => "craft\web\Application"
"type" => "->"
"args" => array:1 [
0 => craft\web\Request {#66}
]
]
19 => array:6 [
"file" => "craft/vendor/yiisoft/yii2/base/Application.php"
"line" => 386
"function" => "handleRequest"
"class" => "craft\web\Application"
"type" => "->"
"args" => array:1 [
0 => craft\web\Request {#66}
]
]
20 => array:6 [
"file" => "oms/web/index.php"
"line" => 21
"function" => "run"
"class" => "yii\base\Application"
"type" => "->"
"args" => []
]
]
Fixed in https://github.com/nystudio107/craft-instantanalytics/commit/04a0e16205c52073ea427749326bd91dc765d911
Set your semVer to: dev-develop
to give it a whirl!
So.... is that a no on the twig mini template idea?
It's not a no. I think parsing it as a string template makes sense; this is just a quick fix