/** * This function is used to Show map * * @return HTML data */ function showMap() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('SITE_MAP'); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CAddCart.php'; include 'classes/Core/CSiteMap.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['sitemap'] = Core_CSiteMap::showMap(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('sitemap.html', $output); }
/** * This function is used to Display the News Page * * @return string */ function showNewsPage() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); } $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['newscontent'] = Core_CNews::showNewsPage(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } Bin_Template::createTemplate('news.html', $output); }
/** * This function is used to Display the price compare page * * @return string */ function showPriceComparePage() { include_once 'classes/Core/CPriceCompare.php'; include_once 'classes/Display/DPriceCompare.php'; include_once 'classes/Core/CUserRegistration.php'; include_once 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CWishList.php'; include_once 'classes/Display/DWishList.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['signup'] = Display_DUserRegistration::signUp(); $output['skinname'] = Core_CHome::skinName(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $default = new Core_CPriceCompare(); $output['pricecompare'] = $default->showPriceComparePage(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); } $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CPriceCompare::showPriceComparePage(); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to Display the FAQ Page * * @return string */ function showFaq() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CFaq.php'; include 'classes/Display/DFaq.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; include 'classes/Core/CAddCart.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CFaq::showFaq(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to Display the Featured Product Page * * @return string */ function showFeaturedProduct() { include_once 'classes/Core/CFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include_once 'classes/Display/DFeaturedItems.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Lib/TagClouds.php'; include 'classes/Core/CTagClouds.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['signup'] = Display_DUserRegistration::signUp(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::snapshotForHome(); } $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $default = new Core_CFeaturedItems(); $output['subcatbreadcrumb'] = $default->subcatBreadCrumb(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['subcatlandcontent'] = $default->getSubcatlandContent(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['tagClouds'] = Core_CTagClouds::displayTagClouds(); $output['showBestSellingProducts'] = Core_CFeaturedItems::showBestSellingProducts(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $sort = $_POST['selsort']; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['banner'] = Core_CHome::getBanner(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['timezone'] = Core_CHome::setTimeZone(); $sort = $_POST['selsort']; $mode = $_POST['selmode']; $output['narrowsearch'] = Core_CKeywordSearch::narrowSearch($sort, $mode); $cou = $_SESSION['countsearch']; $output['countrecords'] = Core_CKeywordSearch::countSearch($cou); $output['disppagesize'] = Display_DKeywordSearch::displayPageSize(); if ((int) $_SESSION['countsearch'] > 0) { $output['dispselection'] = Display_DKeywordSearch::displaySelection(); } $output['disppricerange'] = Core_CKeywordSearch::priceRange(); if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") { $output['features'] = Core_CKeywordSearch::featureList(); } $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount(); $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory(); $output['mylink'] = Core_CKeywordSearch::linkMode(); $output['sortby'] = Display_DKeywordSearch::sortBy(); $output['viewproducts'] = Core_CFeaturedItems::viewProducts(); $output['searchoptions'] = Core_CFeaturedItems::dispSearch(); $output['narrow'] = Core_CFeaturedItems::dispNarrow(); $output['pricenarrow'] = Core_CFeaturedItems::dispPriceNarrow(); $output['brandnarrow'] = Core_CFeaturedItems::dispBrandNarrow(); Bin_Template::createTemplate('subcategory.html', $output); }
/** * This function is used to show the order confirmation. * @param array $arr array of records * @param string $domain domain name * * @return string */ function getPaymentGatewayForms($arr, $domain) { /* $sucess_url='http://'.$_SERVER['SERVER_NAME'].'/?do=paymentgateway&action=success'; $cancel_url='http://'.$_SERVER['SERVER_NAME'].'/?do=paymentgateway&action=failure';*/ $sucess_url = '' . $_SESSION['base_url'] . '/index.php?do=paymentgateway&action=success'; $cancel_url = '' . $_SESSION['base_url'] . '/index.php?do=paymentgateway&action=failure'; $getMerchantId = new Core_CAddCart(); $recordSet = $getMerchantId->getPaymentGatewaySettings($arr['gateway_id']); for ($i = 0; $i < count($recordSet); $i++) { if ($recordSet[$i]['setting_name'] == 'Merchant ID') { $merchantid = base64_decode($recordSet[$i]['setting_values']); } } //$amount=$_SESSION['checkout_amount']; $amount = $_SESSION['checkout_amount'] * $_SESSION['currencysetting']['default_currency']['conversion_rate']; //to covert into equivalent dollar values $payment_html['PayPal'] = ' <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input name="cmd" value="_xclick" type="hidden"> <input name="business" value="' . $merchantid . '" type="hidden"> <input name="item_name" value="' . $_SERVER['SERVER_NAME'] . ' Check out" type="hidden"> <input name="amount" value="' . $amount . '" type="hidden"> <input name="no_note" value="once" type="hidden"> <input name="currency_code" value="USD" type="hidden"> <input name="rm" value="2" type="hidden"> <input name="return" value="' . $sucess_url . '&pay_type=1" type="hidden"> <input name="cancel_return" value="' . $cancel_url . '" type="hidden"> <input src="' . $_SESSION['base_url'] . '/images/payment/paypal.jpg" name="submit" alt="PayPal" type="image" border="0" style="height:30;width:100px;"></form>'; $payment_html['e-bullion'] = '<form name="atip" method="post" action="https://atip.e-bullion.com/process.php"> <input type="hidden" name="ATIP_STATUS_URL" value="' . $_SERVER['SERVER_NAME'] . '"> <input type="hidden" name="ATIP_STATUS_URL_METHOD" value="POST"> <input type="hidden" name="ATIP_BAGGAGE_FIELDS" value=""> <input type="hidden" name="ATIP_SUGGESTED_MEMO" value=""> <input type="hidden" name="ATIP_FORCED_PAYER_ACCOUNT" value=""> <input type="hidden" name="ATIP_PAYER_FEE_AMOUNT" value=""> <input type="hidden" name="ATIP_PAYMENT_URL" value="' . $sucess_url . '&pay_type=2"> <input type="hidden" name="ATIP_PAYMENT_URL_METHOD" value="POST"> <input type="hidden" name="ATIP_NOPAYMENT_URL" value="' . $cancel_url . '"> <input type="hidden" name="ATIP_NOPAYMENT_URL_METHOD" value="POST"> <input type="hidden" name="ATIP_PAYMENT_FIXED" value="1"> <input type="hidden" name="ATIP_PAYEE_ACCOUNT" value="' . $merchantid . '"> <input type="hidden" name="ATIP_PAYEE_NAME" value="' . $merchantid . '"> <input type="hidden" name="ATIP_BUTTON" value="1"> <input type="hidden" name="ATIP_PAYMENT_AMOUNT" value="' . $amount . '" size="10"> <input type="hidden" name="ATIP_PAYMENT_UNIT" value="1"> <input type="hidden" name="ATIP_PAYMENT_METAL" value="3"> <input type="image" name="pay" src="' . $_SESSION['base_url'] . '/images/payment/ebullion.jpg" style="height:30;width:100px;"></form>'; $payment_html['e-gold'] = '<form action="https://www.e-gold.com/sci_asp/payments.asp" method=post> <input type=hidden name="PAYMENT_AMOUNT" value="' . $amount . '"> <input type=hidden name="SUGGESTED_MEMO" value = "' . $_SERVER['SERVER_NAME'] . ' Check out"> <input type="hidden" name="PAYEE_ACCOUNT" value="' . $merchantid . '"> <input type="hidden" name="PAYEE_NAME" value="' . $_SERVER['SERVER_NAME'] . '"> <input type=hidden name="PAYMENT_UNITS" value=1> <input type=hidden name="PAYMENT_METAL_ID" value=1> <input type="hidden" name="STATUS_URL" value="mailto:' . $_SERVER['SERVER_NAME'] . '"> <input type="hidden" name="NOPAYMENT_URL" value="' . $cancel_url . '"> <input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST"> <input type="hidden" name="PAYMENT_URL" value="' . $sucess_url . '&pay_type=3"> <input type="hidden" name="PAYMENT_URL_METHOD" value="POST"> <input type="hidden" name="BAGGAGE_FIELDS" value="PROGL"> <input type="hidden" name="PROGL" value="01"> <input type=image src="' . $_SESSION['base_url'] . '/images/payment/egold.jpg" style="height:30;width:100px;"> </form> '; $payment_html['google-checkout'] = ' <!--<form method="POST" action="https://sandbox.google.com/checkout/cws/v2/Merchant/' . $merchantid . '/checkoutForm" accept-charset="utf-8">--><form method="POST" action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/' . $merchantid . '" accept-charset="utf-8"> <input type="hidden" name="item_name_1" value="Payment For Shopping In ' . $_SERVER['SERVER_NAME'] . '"/> <input type="hidden" name="item_description_1" value="Payment For Shopping In ' . $_SERVER['SERVER_NAME'] . '"/> <input type="hidden" name="item_quantity_1" value="1"/> <input type="hidden" name="item_price_1" value="' . $amount . '"/> <input type="hidden" name="item_currency_1" value="USD"/> <input type="hidden" name="ship_method_name_1" value="UPS Ground"/> <input type="hidden" name="ship_method_price_1" value="0.00"/> <input type="hidden" name="tax_rate" value="0.00"/> <input type="hidden" name="tax_us_state" value="NY"/> <input type="hidden" name="_charset_" value=""/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="' . $sucess_url . '&pay_type=4"> <input type="image" name="Google Checkout" alt="Fast checkout through Google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=' . $merchantid . '&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/> </form>'; /*$payment_html['2checkout']=' <form id="form2co" name="form2co" method="post" action="https://www.2checkout.com/2co/buyer/purchase"> <input type="hidden" name="sid" value="'.$arr['merchant_id'].'" /> <input type="hidden" name="cart_order_id" value="100" /> <input type="hidden" name="total" value="'.$amount.'" /><input type="hidden" name="demo" value="Y" /> <input type="hidden" name="fixed" value="Y" /><input type="hidden" name="return_url" value="'.$sucess_url.'" /> <input type="hidden" name="lang" value="en" /> <input type="hidden" name="card_holder_name" value="" /><input type="image" src="../logo_2co.gif" name="submit" alt="2checkout" /> </form>';*/ $payment_html['2checkout'] = ' <form id="form2co" name="form2co" method="post" action="' . $_SESSION['base_url'] . '/index.php?do=showcart&action=show2checkout"> <input type="hidden" name="sid" value="' . $merchantid . '" /> <input type="hidden" name="cart_order_id" value="100" /> <input type="hidden" name="total" value="' . $amount . '" /><!--<input type="hidden" name="demo" value="Y" />--> <INPUT TYPE="HIDDEN" NAME="x_test_request" VALUE="TRUE"> <input type="hidden" name="fixed" value="Y" /><input type="hidden" name="return_url" value="' . $sucess_url . '" /> <input type="hidden" name="lang" value="en" /> <input type="hidden" name="card_holder_name" value="" /><input type="image" src="' . $_SESSION['base_url'] . '/images/payment/payment/2checkout.gif" name="submit" alt="2checkout" style="height:30;width:100px;"/> </form>'; // $payment_html['2checkout']=' <form action="https://www.2checkout.com/checkout/purchase" method="post"> // <p> // <input type="hidden" name="c_prod_1" value="1,7" /> // <input type="hidden" name="c_name_1" value="science fiction book." /> // <input type="hidden" name="c_price_1" value="10.00" /> // <input type="hidden" name="c_description_1" value="This is a science fiction book, 276 pages, second edition." /> // <input type="hidden" name="c_prod_2" value="2,2" /> // <input type="hidden" name="c_price_2" value="20.00" /> // <input type="hidden" name="c_name_2" value="non-fiction book" /> // <input type="hidden" name="c_description_2" value="This is a non-fiction book, 335 pages, first edition." /> // <input type="hidden" name="c_prod_3" value="3,4" /> // <input type="hidden" name="c_price_3" value="30.00" /> // <input type="hidden" name="c_name_3" value="technical book" /> // <input type="hidden" name="c_description_3" value="This is a technical book, 442 pages, third edition." /> // <input type="hidden" name="id_type" value="1" /> // <input type="hidden" name="cart_order_id" value="example_cart_order_id_abc_123" /> // <input type="hidden" name="total" value="230.00" /> // // <input type="hidden" name="sid" value="'.$merchantid.'" /> // <input type="submit" class="submit" name="purchase" value="Buy from 2CO" /> // </p> // </form> '; $payment_html['Authorize.net'] = ' <form id="form2co" name="form2co" method="post" action="' . $_SESSION['base_url'] . '/index.php?do=showcart&action=showauthorizenet"> <INPUT TYPE="HIDDEN" NAME="x_test_request" VALUE="TRUE"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/authorize.gif" name="submit" alt="Authorize.net" style="height:30;width:100px;" /> </form>'; $payment_html['worldpay'] = ' <form id="worldpay" name="worldpay" method="post" action="' . $_SESSION['base_url'] . '/index.php?do=showcart&action=showworldpay"> <input type=hidden name="instId" value="' . $merchantid . '"> <input type=hidden name="cartId" value=" 122 "> <input type=hidden name="amount" value="' . $amount . '"> <input type=hidden name="currency" value="USD"> <input type=hidden name="desc" value="Payment For Shopping In ' . $_SERVER['SERVER_NAME'] . '"> <!--<input type=hidden name="testMode" value="100"> --> <input type="hidden" name="MC_callback" value="' . $sucess_url . '" /> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/worldpay.gif" name="submit" alt="WorldPay" style="height:30;width:100px;"> </form>'; /*$payment_html['worldpay']=' <form action="https://select.worldpay.com/wcc/purchase" method=POST> <input type=hidden name="instId" value="'.$arr['merchant_id'].'"> <input type=hidden name="cartId" value=" 122 "> <input type=hidden name="amount" value="'.$amount.'"> <input type=hidden name="currency" value="USD"> <input type=hidden name="desc" value="Payment For Shopping In '.$_SERVER['SERVER_NAME'].'"> <input type=hidden name="testMode" value="100"> <input type="hidden" name="MC_callback" value="'.$sucess_url.'" /> <input type="image" src="../worldpay.gif" name="submit" alt="WorldPay"> </form> ';*/ if ((!isset($_SESSION['digitalproducts']) || $_SESSION['digitalproducts'] == 0) && (!isset($_SESSION['gift']) || $_SESSION['gift'] == 0)) { $payment_html['Pay in Store'] = ' <form action="' . $sucess_url . '&pay_type=8" method=POST> <input type=hidden name="amount" value="' . $amount . '"> <input type=hidden name="currency" value="USD"> <input type=hidden name="desc" value="Payment For Shopping In ' . $_SERVER['SERVER_NAME'] . '"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/payinstore.gif" name="submit" alt="Pay in Store" style="height:30;width:100px;"> </form> '; } if (!isset($_SESSION['digitalproducts']) || $_SESSION['digitalproducts'] == 0 || (!isset($_SESSION['gift']) || $_SESSION['gift'] == 0)) { $payment_html['Cash on Delivery'] = ' <form action="' . $sucess_url . '&pay_type=9" method=POST> <input type=hidden name="amount" value="' . $amount . '"> <input type=hidden name="currency" value="USD"> <input type=hidden name="desc" value="Payment For Shopping In ' . $_SERVER['SERVER_NAME'] . '"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/cashondelivery.gif" name="submit" alt="Cash On Delivery" style="height:30;width:100px;"> </form> '; } $payment_html['Paymate'] = ' <form action="https://www.paymate.com/PayMate/ExpressPayment?mid=' . $merchantid . '" method="post"> <input type="hidden" name="amt" value="' . $amount . '"> <input type="hidden" name="amt_editable" value="N"> <input type="hidden" name="currency" value="USD"> <input type="hidden" name="ref" value="' . $_SERVER['SERVER_NAME'] . ' Check out"> <input type="hidden" name="return" value="' . $sucess_url . '&pay_type=10"> <input type="hidden" name="popup" value="' . $cancel_url . '"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/paymate.gif" name="submit" alt="Pay with Paymate Express" style="height:30;width:100px;"> </form>'; $payment_html['Moneybookers'] = '<form action="https://www.moneybookers.com/app/payment.pl" target="_blank" method="post" > <input type="hidden" name="pay_to_email" value="' . $merchantid . '"> <input type="hidden" name="merchant_id" value="' . $arr['merchant_id'] . '"> <input type="hidden" name="return_url" value="' . $sucess_url . '&pay_type=11"> <input type="hidden" name="cancel_url" value="' . $cancel_url . '"> <input type="hidden" name="language" value="EN"> <input type="hidden" name="amount" value="' . $amount . '"> <input type="hidden" name="currency" value="USD"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/moneybookers.jpg" name="submit" alt="Money Bookers" style="height:30;width:100px;"> </form>'; $payment_html['PSIGate'] = '<!--<FORM ACTION="https://devcheckout.psigate.com/HTMLPost/HTMLMessenger" METHOD=post>--><FORM ACTION="https://checkout.psigate.com/HTMLPost/HTMLMessenger" METHOD=post> <INPUT TYPE=hidden NAME="MerchantID" VALUE="' . $merchantid . '"> <INPUT TYPE=hidden NAME="ThanksURL" VALUE="' . $sucess_url . '&pay_type=12"> <INPUT TYPE=hidden NAME="NoThanksURL" VALUE="' . $cancel_url . '"> <INPUT TYPE=hidden NAME="PaymentType" VALUE="CC"> <!--<INPUT TYPE=hidden NAME="TestResult" VALUE="1">--> <INPUT TYPE=hidden NAME="OrderID" VALUE=""> <INPUT TYPE=hidden NAME="SubTotal" VALUE="' . $amount . '"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/psigate.gif" name="submit" alt="PSI Gate" style="height:30;width:100px;"> </FORM>'; $payment_html['Strompay'] = '<form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php"> <input type="hidden" name="generic" value="1"> <input type="hidden" name="payee_email" value="' . $merchantid . '" > <input type="hidden" name="product_name" value="Cart"> <input type="hidden" name="user_id" value=1> <input type="hidden" name="amount" value="' . $amount . '"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="require_IPN" value="1"> <input type="hidden" name="notify_URL" value="' . $domain . '"> <input type="hidden" name="return_URL" value="' . $sucess_url . '&pay_type=13"> <input type="hidden" name="cancel_URL" value="' . $cancel_url . '"> <input type="hidden" name="subject_matter" value="Cart Payment"> <input type=image src="' . $_SESSION['base_url'] . '/images/payment/strompay.jpg" alt="Strompay" style="height:30;width:100px;"> </form>'; /*$payment_html['Alertpay']='<form action="https://www.alertpay.com/PayProcess.aspx" method="post"> <input type="hidden" name="ap_purchasetype" value="Item"> <input type="hidden" name="ap_merchant" value="'.$arr['merchant_id'].'"> <input type="hidden" name="ap_itemname" value="PTYW"> <input type="hidden" name="ap_currency" value="USD"> <input type="hidden" name="ap_returnurl" value="'.$sucess_url.'&pay_type=14"> <input type="hidden" name="ap_quantity" value="1"> <input type="hidden" name="ap_description" value="PTYW"> <input type="hidden" name="ap_amount" value="0.26"> <input type="hidden" name="ap_cancelurl" value="'.$cancel_url.'"> <input type="image" src="images/payment/alertpay.jpeg" alt="Alertpay"> </form>'; */ $payment_html['Alertpay'] = "<form action='https://www.alertpay.com/PayProcess.aspx' method='post'>\n\t\t\t\t\t<input type='hidden' name='ap_purchasetype' value='Item'>\n\t\t\t\t\t<input type='hidden' name='ap_merchant' value='" . $merchantid . "'>\n\t\t\t\t\t<input type='hidden' name='ap_itemname' value='PTYW'>\n\t\t\t\t\t<input type='hidden' name='ap_currency' value='USD'>\n\t\t\t\t\t<input type='hidden' name='ap_returnurl' value='" . $sucess_url . "&pay_type=14'>\n\t\t\t\t\t<input type='image' src='" . $_SESSION['base_url'] . "/images/payment/alertpay.jpeg' style='height:30;width:100px;'>\n\t\t\t\t\t<input type='hidden' name='ap_quantity' value='1'>\n\t\t\t\t\t<input type='hidden' name='ap_description' value='PTYW'>\n\t\t\t\t\t<input type='hidden' name='ap_amount' value='" . $amount . "'>\n\t\t\t\t\t<input type='hidden' name='ap_cancelurl' value='" . $cancel_url . "'>\n\t\t\t\t\t</form>"; /** * Yourpay connect settings: * 1. You need to log into Yourpay. * 2. After you login, click on Customization at the top. * 3. Then click on "Configure your Yourpay Connect." * 4. Enter the URL address for the order page on your web site or the very last page during checkout for your shopping cart. * You can enter multiple address but they need to be separated by a space. * The Order Submission Form field has a limit of 250 characters. * By default Yourpay Connect will display the customer a confirmation page that they can print out for their records. * If you do not create your own thank you and sorry pages then you can enter the address for your web site. For example: http://www.yourdomain.com * You only need to enable "URL is a CGI script" if you want Yourpay to post the data back to your website so you can collect the information using a scripting language like PHP or ASP. * If you do not want customers to see the Yourpay confirmaiton page then you need to enable the auto forwarding option. */ $payment_html['Yourpay'] = '<!--<form action="https://www.staging.linkpointcentral.com/lpcentral/servlet/lppay" method="post">--><form action="https://secure.linkpt.net/lpcentral/servlet/lppay" method="post"> <input type="hidden" name="mode" value="fullpay"> <input type="hidden" name="chargetotal" value="' . $amount . '"> <input type="hidden" name="storename" value="' . $merchantid . '"> <input type="hidden" name="txntype" value="sale"> <input type="hidden" name="comments" value="' . $domain . '-Buy cart"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/yourpay.jpeg" alt="Yourpay" style="height:30;width:100px;"> <!--<input type="submit" name="btnup" value="Yourpay">--> </form>'; $payment_html['iTransact'] = '<form method="post" action="https://secure.paymentclearing.com/cgi-bin/mas/split.cgi" > <input type="hidden" name="home_page" value="' . $domain . '"> <input type="hidden" name="vendor_id" value="' . $merchantid . '"> <input type="hidden" name="mername" value="Buy Cart"> <input type="hidden" name="ret_addr" value="' . $sucess_url . '&pay_type=16"> <input type="hidden" name="1-qty" value="1" /> <input type="hidden" name="ret_mode" value="post"> <input type="hidden" name="splitType" value="split" /> <input type="hidden" name="1-cost" value="' . round($amount) . '" /> <input type="hidden" name="1-desc" value="Item" /> <input type="hidden" name="first_name" value="venkat" /> <input type="hidden" name="last_name" value="venkat"/> <input type="hidden" name="address" value="vilacheri"/> <input type="hidden" name="city" value="madurai"/> <input type="hidden" name="phone" value="34343434"/> <input type="hidden" name="country" value="USA"/> <input type="hidden" name="email" value="' . $merchantid . '"/> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/itransact.gif" alt="submit securely" style="height:30;width:100px;"/> </form>'; $payment_html['Bluepay'] = ' <form id="formbluepay" name="formbluepay" method="post" action="' . $_SESSION['base_url'] . '/index.php?do=showcart&action=showbluepay"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/bluepay.jpeg" name="submit" alt="BluePay" style="height:30;width:100px;"/> </form>'; if ($arr['gateway_id'] == '17') { $_SESSION['bluepaydetails'] = $merchantid . '|' . $sucess_url . '|' . $cancel_url; } $payment_html['Safepay'] = '<form action="https://www.safepaysolutions.com/index.php" method="post"> <input type="hidden" name="_ipn_act" value="_ipn_payment"> <input type="hidden" name="fid" value="' . $merchantid . '"> <input type="hidden" name="itestmode" value="off"> <input type="hidden" name="notifyURL" value="' . $sucess_url . '&pay_type=18"> <input type="hidden" name="returnURL" value="' . $sucess_url . '&pay_type=18" > <input type="hidden" name="cancelURL" value="' . $cancel_url . '" > <input type="hidden" name="notifyEml" value=""> <input type="hidden" name="iowner" value=""> <input type="hidden" name="ireceiver" value=""> <input type="hidden" name="iamount" value="' . round($amount) . '"> <input type="hidden" name="itemName" value="Deposit Amount"> <input type="hidden" name="itemNum" value=""> <input type="hidden" name="idescr" value=""> <input type="hidden" name="idelivery" value=""> <input type="hidden" name="iquantity" value=""> <input type="hidden" name="imultiplyPurchase" value="y"> <input type="hidden" name="colortheme" value="LightBlueYellow"> <input type="image" src="' . $_SESSION['base_url'] . '/images/payment/safepay.gif" alt="Pay through SafePay Solutions" style="height:30;width:100px;"> </form>'; return $payment_html[$arr['gateway_name']]; }
/** * This function is used to Display the compare product page * * @return string */ function compareProduct() { include "classes/Lib/HandleErrors.php"; $output['val'] = $Err->values; $output['msg'] = $Err->messages; include 'classes/Core/CProductReview.php'; include 'classes/Display/DProductReview.php'; include 'classes/Display/DWishList.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CWishList.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['reviewproduct'] = Core_CProductReview::showProductReview($Err); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); $default = new Core_CWishList(); $output['wishlist'] = $default->addtoWishList(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); Bin_Template::createTemplate('reviews.html', $output); }
/** * This function is used to Display the Extended Search Page * * @return HTML data */ function extendedSearch() { include_once 'classes/Core/CFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include_once 'classes/Display/DFeaturedItems.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['banner'] = Core_CHome::getBanner(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['googlead'] = Core_CHome::getGoogleAd(); $sort = $_POST['selsort']; $mode = $_POST['selmode']; $output['dispsubcat'] = Core_CKeywordSearch::dispSubCategory(); $output['extendedsearch'] = Core_CKeywordSearch::extendedSearch($sort, $mode); $cou = $_SESSION['countsearch']; $output['countrecords'] = Core_CKeywordSearch::countSearch($cou); $output['disppagesize'] = Display_DKeywordSearch::displayPageSize(); $output['searchsession'] = Display_DKeywordSearch::searchSession($search); $output['disppricerange'] = Core_CKeywordSearch::priceRange(); if ($_POST['subcatsel'] != "" or $_SESSION['subcategory'] != "") { $output['features'] = Core_CKeywordSearch::featureList(); } if ((int) $_SESSION['countsearch'] > 0) { $output['dispselection'] = Display_DKeywordSearch::displaySelection(); } $output['brandwithcount'] = Core_CKeywordSearch::dispBrandWithCount(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['mylink'] = Core_CKeywordSearch::linkMode(); $output['sortby'] = Display_DKeywordSearch::sortBy(); Bin_Template::createTemplate('searchpage.html', $output); }
/** * This function is used to Display the product detail page * * @return string */ function productDetail() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('PRODUCT_DETAILS'); $_SESSION['url'] = $_GET['do']; include 'classes/Core/CHome.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Core/CAddCart.php'; include 'classes/Core/CWishList.php'; include 'classes/Core/CLastViewedProducts.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Display/DAddCart.php'; include 'classes/Display/DWishList.php'; include 'classes/Display/DLastViewedProducts.php'; include 'classes/Lib/TagClouds.php'; include 'classes/Core/CTagClouds.php'; include_once 'classes/Core/CCurrencySettings.php'; include_once 'classes/Display/DCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); //--------- Details for Header---------------// $output['skinname'] = Core_CHome::skinName(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['sitelogo'] = Core_CHome::getLogo(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); //--------- Details for Left Part-----------// $output['relatedproduct'] = Core_CProductDetail::disprelatedProduct(); $output['currencylist'] = Core_CCurrencySettings::displayEnabledCurrencies(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['tagClouds'] = Core_CTagClouds::displayTagClouds(); //--------- Details for Product Part-----------// $default = new Core_CProductDetail(); $output['product'] = $default->productDetail(); // $output['pageinfo']=$default->pageInfo(); $output['attributes'] = $default->attributeList(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['cartcount'] = Core_CAddCart::countCart(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); Bin_Template::createTemplate('productdetail.html', $output); unset($_SESSION['reviewResult']); unset($_SESSION['reviewResultSuccess']); unset($_SESSION['quantitymsg']); unset($_SESSION['error_quantity']); }
function calculateShipCost() { include_once 'classes/Core/CAddCart.php'; Core_CAddCart::calculateShipCost(); }
/** * This function is used to check and download digital product for my downloads * * @return string */ function CheckDigitalProduct() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('MY_DOWNLOADS'); $this->checkLogin(); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserWishList.php'; include_once 'classes/Core/CHome.php'; include "classes/Lib/HandleErrors.php"; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CUserOrder.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); Core_CUserWishList::Ulogin($Err); $output['val'] = $Err->values; $output['msg'] = $Err->messages; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['divStat'] = Core_CUserWishList::getStatus(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CUserOrder::CheckDigitalProduct($result); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to display new letter subscription page * * @return string */ function addNewsletterSubscription() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('HOME'); include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $default = new Core_CFeaturedItems(); $output['maincatimage'] = $default->showMainCategory(); $output['allfeaturedproducts'] = $default->featuredProducts(); $output['showBestSellingProducts'] = $default->showBestSellingProducts(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); include 'classes/Core/CHome.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['timezone'] = Core_CHome::setTimeZone(); $output['homepageads'] = Core_CHome::showHomePageAds(); $output['homepagecontent'] = Core_CHome::showHomePageContent(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['banner'] = Core_CHome::getBanner(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['cartcount'] = Core_CAddCart::countCart(); $default = new Core_CFeaturedItems(); $output['maincatimage'] = $default->showMainCategory(); $output['newarrivalproducts'] = $default->newArrivalProducts(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::snapshotForHome(); } $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['slideshow'] = Core_CUserRegistration::viewSlideShow(); $output['slideshowparameter'] = Core_CUserRegistration::getSlideShowParameter(); $output['newsletter'] = Core_CUserRegistration::addNewsletterSubscription(); Bin_Template::createTemplate('index.html', $output); }
/** * This function is used to Display the about us Page * * @return string */ function aboutUs() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include 'classes/Core/CFooterLinks.php'; include 'classes/Display/DFooterLinks.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['categories'] = Display_DUserRegistration::showMainCat(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['terms'] = Core_CFooterLinks::termsCondition(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['aboutus'] = Core_CFooterLinks::aboutUs(); $output['newstitle'] = Core_CNews::showNewsMenu(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('aboutus.html', $output); }
/** * This function is used to get product quantity from db. * * * * @return void */ function getProductQtyForProduct() { if ($_SESSION['user_id'] != '') { // check wheter cart is exists for the user $cartid = Core_CAddCart::getCartIdOfUser(); if ($cartid != 0) { //check the product id and cart id available in the scpt $sql = "SELECT product_id,cart_id,product_qty FROM shopping_cart_products_table WHERE product_id='" . (int) $_GET['prodid'] . "' and cart_id='" . $cartid . "'"; //if(yes) if ($query->executeQuery($sql)) { $req_qty = $query->records[0]['product_qty']; $sql_soh = 'select soh from product_inventory_table where product_id=' . (int) $_GET['prodid']; $query_soh = new Bin_Query(); $query_soh->executeQuery($sql_soh); $soh_product = $query_soh->records[0]['soh']; $dispproduct = $soh_product - $req_qty; } } } else { $sql_soh = 'select soh from product_inventory_table where product_id=' . (int) $_GET['prodid']; $query_soh = new Bin_Query(); $query_soh->executeQuery($sql_soh); $soh_product = $query_soh->records[0]['soh']; $dispproduct = $soh_product - $_SESSION['mycart'][$_GET['prodid']]['qty']; } return $dispproduct; }
/** * This function is used to show the dynamic cms * * @return string */ function showDynamicContent() { include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserAddressBook.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['result'] = $result; $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['showpages'] = Core_CHome::showDynamicContent(); Bin_Template::createTemplate('cms.html', $output); }
/** * This function is used to Display the failure page after orderconfirmation and payment process * * @return string */ function failure() { include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CPaymentGateways.php'; include 'classes/Display/DPaymentGateways.php'; include 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['payments'] = Core_CPaymentGateways::optPaymentMode(); $output['selectedpayment'] = $_POST['paymentBy']; include 'classes/Core/CHome.php'; include 'classes/Display/DAddCart.php'; $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['cartcount'] = Core_CAddCart::countCart(); $output['failure'] = '<div class="alert alert-error"> <button data-dismiss="alert" class="close" type="button">×</button> Payment Failure Your Payment has not been made. </div>'; Bin_Template::createTemplate('failure.html', $output); }
function gridGiftProducts() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('COMMON'); include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $default = new Core_CNewProducts(); $output['gridviewproducts'] = $default->viewGiftProducts(); $output['categorybreadcrumb'] = $default->categoryBreadCrumb(); $output['title'] = $default->getTitle(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('gift_grid_products.html', $output); }