</div> <!-- Default tax and shipping profile --> <div class="control-group"> <label class="control-label" for="taxprofile_id"> <?php echo JHtml::tooltip(JText::_('COM_QUICK2CART_VEN_TAXPROFILE_DESC'), JText::_('COM_QUICK2CART_VEN_TAXPROFILE'), '', JText::_('COM_QUICK2CART_VEN_TAXPROFILE')); ?> </label> <div class="controls qtc_shipProfileList"> <span id="qtc_shipProfileSelListWrapper"> <?php if ($isTaxationEnabled && !empty($this->storeinfo[0]->id)) { $defaultProfile = !empty($this->storeinfo[0]->taxprofile_id) ? $this->storeinfo[0]->taxprofile_id : ''; echo $tax_listSelect = $storeHelper->getStoreTaxProfilesSelectList($this->storeinfo[0]->id, $defaultProfile, $fieldName = 'taxprofile_id', $fieldClass = '', $fieldId = 'taxprofile_id'); if (empty($tax_listSelect)) { echo JText::_('COM_QUICK2CART_VEN_U_NEED_TO_SETUP_TAXPROFILE_FIRST'); } } else { echo JText::_('COM_QUICK2CART_VEN_U_NEED_TO_SETUP_TAXPROFILE_FIRST'); } ?> </span> </div> </div> <?php if ($isShippingEnabled) { ?> <!-- Default tax and shipping profile --> <div class="control-group">
function getTaxprofileList() { $jinput = JFactory::getApplication()->input; $store_id = $jinput->get('store_id'); $selected = $jinput->get('selected'); $storeHelper = new storeHelper(); $tax_listSelect = $storeHelper->getStoreTaxProfilesSelectList($store_id, $selected, $fieldName = 'taxprofile_id', $fieldClass = '', $fieldId = 'taxprofile_id'); $html = ''; if (!empty($tax_listSelect)) { $html = $tax_listSelect; } else { $html .= ' <label>' . JText::_('COM_QUICK2CART_NO_TAXPROFILE_FOR_STORE') . '</label>'; } $data['html'] = $html; echo json_encode($html); jexit(); }