@@ 74-81 (lines=8) @@ | ||
71 | * @param array $additionalData optional |
|
72 | * @return Enterprise_GiftWrapping_Model_Wrapping |
|
73 | */ |
|
74 | protected function _applyDummyData(Enterprise_GiftWrapping_Model_Wrapping $wrap, $sku, array $additionalData = array()) |
|
75 | { |
|
76 | $wrapData = array_merge($this->_getGiftWrapTplt(), $additionalData); |
|
77 | $design = isset($wrapData['design']) ? $wrapData['design'] : null; |
|
78 | $wrapData['design'] = $design ?: "Incomplete gift wrapping: $sku"; |
|
79 | $wrapData['eb2c_sku'] = $sku; |
|
80 | return $wrap->addData($wrapData); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Calculating the order item gift wrapping row total when the passed in object is |
@@ 289-296 (lines=8) @@ | ||
286 | * @param array $additionalData optional |
|
287 | * @return Mage_Catalog_Model_Product |
|
288 | */ |
|
289 | protected function applyDummyData(Mage_Catalog_Model_Product $prod, $sku, array $additionalData = []) |
|
290 | { |
|
291 | $prodData = array_merge($this->getProdTplt(), $additionalData); |
|
292 | $name = isset($prodData['name']) ? $prodData['name'] : null; |
|
293 | $prodData['name'] = $name ?: "Incomplete Product: $sku"; |
|
294 | $prodData['sku'] = $prodData['url_key'] = $sku; |
|
295 | return $prod->addData($prodData); |
|
296 | } |
|
297 | /** |
|
298 | * load product by sku |
|
299 | * @param string $sku product sku |