コード例 #1
0
ファイル: default.php プロジェクト: BetterBetterBetter/B3App
    JLoader::register('qtcshiphelper', $path);
    JLoader::load('qtcshiphelper');
}
$qtcshiphelper = new qtcshiphelper();
$params = JComponentHelper::getParams('com_quick2cart');
$qtc_shipping_opt_status = $params->get('shipping', 0);
$isTaxationEnabled = $params->get('enableTaxtion', 0);
$prodAdmin_approval = $params->get('admin_approval', 0);
$document = JFactory::getDocument();
$qtc_base_url = JUri::root();
$js_currency = "\n\tvar qtc_base_url=\"" . $qtc_base_url . "\"\n\ttechjoomla.jQuery(document).ready(function()\n\t{\n\n\t  var width = techjoomla.jQuery(window).width();\n\n\t   if (width < 321 )\n\t   {\n\t\t\ttechjoomla.jQuery('div.techjoomla-bootstrap').removeClass('form-horizontal');\n\t\t\ttechjoomla.jQuery('div.q2c-wrapper').removeClass('form-horizontal');\n\t\t}\n\t});\n\n\tfunction checkfornum(el)\n\t{\n\t\tvar i =0 ;\n\t\tfor(i=0;i<el.value.length;i++)\n\t\t{\n\t\t   if (el.value.charCodeAt(i) > 47 && el.value.charCodeAt(i) < 58) { alert('Numerics Not Allowed'); el.value = el.value.substring(0,i); break;}\n\t\t}\n\t}\n";
JLoader::import('attributes', JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'models');
$quick2cartModelAttributes = new quick2cartModelAttributes();
$change_storeto = 0;
if (!empty($pid)) {
    $this->itemDetail = $itemDetail = $quick2cartModelAttributes->getItemDetail($pid, $client);
    // Get store id of product
    $change_storeto = $this->itemDetail['store_id'];
    // Get owner of store
    $storeInfo = $this->comquick2cartHelper->getSoreInfo($change_storeto);
    $owner = $storeInfo['owner'];
    $itemvalue = $itemDetail['name'];
}
$currencies = $params->get('addcurrency');
$curr = explode(',', $currencies);
JLoader::import('store', JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'models');
$store_model = new Quick2cartModelstore();
$owner = isset($owner) ? $owner : 0;
//$store_id = $store_model->getStoreId($owner);
$store_role_list = $storeList = $this->comquick2cartHelper->getStoreIds($owner);
if (!empty($store_role_list)) {