@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | if (InstantAnalytics::$commercePlugin) { |
99 | 99 | if ($productVariant) { |
100 | - InstantAnalytics::$plugin->commerce->addCommerceProductDetailView($this, $productVariant); |
|
100 | + InstantAnalytics::$plugin->commerce->addCommerceProductDetailView($this, $productVariant); |
|
101 | 101 | } |
102 | 102 | } else { |
103 | 103 | Craft::warning( |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | if (InstantAnalytics::$commercePlugin) { |
123 | 123 | if ($orderModel) { |
124 | - InstantAnalytics::$plugin->commerce->addCommerceCheckoutStep($this, $orderModel, $step, $option); |
|
124 | + InstantAnalytics::$plugin->commerce->addCommerceCheckoutStep($this, $orderModel, $step, $option); |
|
125 | 125 | } |
126 | 126 | } else { |
127 | 127 | Craft::warning( |
@@ -126,17 +126,17 @@ |
||
126 | 126 | $commerceFields = []; |
127 | 127 | |
128 | 128 | if (self::$commercePlugin) { |
129 | - $productTypes = Commerce::getInstance()->getProductTypes()->getAllProductTypes(); |
|
129 | + $productTypes = Commerce::getInstance()->getProductTypes()->getAllProductTypes(); |
|
130 | 130 | |
131 | - foreach ($productTypes as $productType) { |
|
132 | - $productFields = $this->_getPullFieldsFromLayoutId($productType->fieldLayoutId); |
|
133 | - $commerceFields = array_merge($commerceFields, $productFields); |
|
131 | + foreach ($productTypes as $productType) { |
|
132 | + $productFields = $this->_getPullFieldsFromLayoutId($productType->fieldLayoutId); |
|
133 | + $commerceFields = array_merge($commerceFields, $productFields); |
|
134 | 134 | |
135 | - if ($productType->hasVariants) { |
|
136 | - $variantFields = $this->_getPullFieldsFromLayoutId($productType->variantFieldLayoutId); |
|
137 | - $commerceFields = array_merge($commerceFields, $variantFields); |
|
138 | - } |
|
139 | - } |
|
135 | + if ($productType->hasVariants) { |
|
136 | + $variantFields = $this->_getPullFieldsFromLayoutId($productType->variantFieldLayoutId); |
|
137 | + $commerceFields = array_merge($commerceFields, $variantFields); |
|
138 | + } |
|
139 | + } |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | // Rend the settings template |