Index: branches/5.2.x/units/helpers/order_helper.php =================================================================== diff -u -N -r14641 -r14797 --- branches/5.2.x/units/helpers/order_helper.php (.../order_helper.php) (revision 14641) +++ branches/5.2.x/units/helpers/order_helper.php (.../order_helper.php) (revision 14797) @@ -69,6 +69,11 @@ $row_index = $items->GetDBField('ProductId') . ':' . $items->GetDBField('OptionsSalt') . ':' . $items->GetDBField('BackOrderFlag'); + $image_helper =& $this->Application->recallObject('ImageHelper'); + /* @var $image_helper ImageHelper */ + + // TODO: find a way to specify thumbnail size & default image + $ret['items'][$row_index] = Array ( 'product_url' => $product_url, 'product_type' => $product->GetDBField('Type'), @@ -78,6 +83,7 @@ 'fields' => Array ( 'OrderItemId' => $items->GetDBField('OrderItemId'), 'ProductName' => $items->GetDBField('ProductName'), + 'PrimaryImage' => $product->GetField('PrimaryImage', 'resize:58x58;default:img/no_picture.gif'), 'BackOrderFlag' => (int)$items->GetDBField('BackOrderFlag'), 'FlatPrice' => $this->convertCurrency($items->GetDBField('FlatPrice'), $currency), 'Price' => $this->convertCurrency($items->GetDBField('Price'), $currency), @@ -139,4 +145,24 @@ return $free_shipping > 0 && $free_shipping <= $order_item->GetDBField('Quantity'); } + + /** + * Returns a template, that will be used to continue shopping from "shopping cart" template + * + * @param string $template + * @return string + * @access public + */ + public function getContinueShoppingTemplate($template = '') + { + if ( !$template || $template == '__default__' ) { + $template = $this->Application->RecallVar('continue_shopping'); + } + + if ( !$template ) { + $template = 'in-commerce/index'; + } + + return $template; + } }