$_POST['products_id'] = $_GET['products_id']; } $gBitProduct = bc_get_commerce_product(array('products_id' => $_REQUEST['products_id'])); if ($gBitProduct->isValid()) { if (empty($_REQUEST['cPath']) && !empty($gBitProduct->mInfo['master_categories_id'])) { $_REQUEST['cPath'] = $gBitProduct->mInfo['master_categories_id']; } } else { global $gBitSystem; $gBitSystem->setHttpStatus(HttpStatusCodes::HTTP_NOT_FOUND); unset($gBitProduct); } } if (empty($gBitProduct) && class_exists('CommerceProduct')) { $gBitProduct = new CommerceProduct(); } if (empty($_REQUEST['cPath'])) { $_REQUEST['cPath'] = ''; } $gComCategory = new CommerceCategory($_REQUEST['cPath']); if (!empty($_REQUEST['cPath']) && is_numeric($_REQUEST['cPath'])) { $breadcrumb->add(zen_get_category_name($_REQUEST['cPath'], $_SESSION['languages_id']), zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_REQUEST['cPath'])); } if ($gBitProduct->isValid()) { $breadcrumb->add($gBitProduct->getTitle(), $gBitProduct->getDisplayUrl()); } if (!empty($gBitProduct)) { $gBitSmarty->assign('gBitProduct', $gBitProduct); } $gBitSmarty->assign('runNormal', zen_run_normal()); $gBitThemes->loadCss(BITCOMMERCE_PKG_PATH . 'css/bitcommerce.css');