AAAAwww/administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php000060400000043310151402137250031626 0ustar00home/academiac
langList; ?>
product->virtuemart_product_id ?> lists['manufacturers'])) { ?> '; }?> product->ordering)) { $this->product->ordering = 0; ?>
lists['manufacturers'];?> productLayouts, 'layout', 'size=1', 'value', 'text', $this->product->layout); ?>
shoppergroupList; ?> lists['vendors'];?> '; }?>
activeShoppergroups); ?> product; if (empty($this->product->prices)) { $this->product->prices[] = array(); } $this->i = 0; $rowColor = 0; if (!class_exists ('calculationHelper')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php'); } $calculator = calculationHelper::getInstance (); $currency_model = VmModel::getModel ('currency'); $currencies = $currency_model->getCurrencies (); $nbPrice = count ($this->product->prices); $this->priceCounter = 0; $this->product->prices[$nbPrice] = $this->product_empty_price; if (!class_exists ('calculationHelper')) { require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php'); } $calculator = calculationHelper::getInstance (); ?> product->prices); foreach ($this->product->prices as $sPrices) { if(count($sPrices) == 0) continue; if (empty($sPrices['virtuemart_product_price_id'])) { $sPrices['virtuemart_product_price_id'] = ''; } //vmdebug('my $sPrices ',$sPrices); $sPrices = (array)$sPrices; $this->tempProduct = (object)array_merge ((array)$this->product, $sPrices); $this->calculatedPrices = $calculator->getProductPrices ($this->tempProduct); if((string)$sPrices['product_price']==='0' or (string)$sPrices['product_price']===''){ $this->calculatedPrices['costPrice'] = ''; } $currency_model = VmModel::getModel ('currency'); $this->lists['currencies'] = JHTML::_ ('select.genericlist', $currencies, 'mprices[product_currency][' . $this->priceCounter . ']', '', 'virtuemart_currency_id', 'currency_name', $this->tempProduct->product_currency); $DBTax = ''; //vmText::_('COM_VIRTUEMART_RULES_EFFECTING') ; foreach ($calculator->rules['DBTax'] as $rule) { $DBTax .= $rule['calc_name'] . '
'; } $this->DBTaxRules = $DBTax; $tax = ''; //vmText::_('COM_VIRTUEMART_TAX_EFFECTING').'
'; foreach ($calculator->rules['Tax'] as $rule) { $tax .= $rule['calc_name'] . '
'; } foreach ($calculator->rules['VatTax'] as $rule) { $tax .= $rule['calc_name'] . '
'; } $this->taxRules = $tax; $DATax = ''; //vmText::_('COM_VIRTUEMART_RULES_EFFECTING'); foreach ($calculator->rules['DATax'] as $rule) { $DATax .= $rule['calc_name'] . '
'; } $this->DATaxRules = $DATax; if (!isset($this->tempProduct->product_tax_id)) { $this->tempProduct->product_tax_id = 0; } $this->lists['taxrates'] = ShopFunctions::renderTaxList ($this->tempProduct->product_tax_id, 'mprices[product_tax_id][' . $this->priceCounter . ']'); if (!isset($this->tempProduct->product_discount_id)) { $this->tempProduct->product_discount_id = 0; } $this->lists['discounts'] = $this->renderDiscountList ($this->tempProduct->product_discount_id, 'mprices[product_discount_id][' . $this->priceCounter . ']'); $this->lists['shoppergroups'] = ShopFunctions::renderShopperGroupList ($this->tempProduct->virtuemart_shoppergroup_id, false, 'mprices[virtuemart_shoppergroup_id][' . $this->priceCounter . ']'); if ($this->priceCounter == $nbPrice) { $tmpl = "productPriceRowTmpl"; } else { $tmpl = "productPriceRowTmpl_" . $this->priceCounter; } ?> priceCounter++; } ?>
*/ ?> loadTemplate ('price'); ?>
product->virtuemart_product_id) { $link=JROUTE::_('index.php?option=com_virtuemart&view=product&task=createVariant&virtuemart_product_id='.$this->product->virtuemart_product_id.'&token='.JUtility::getToken() ); $add_child_button=""; } else { $link=""; $add_child_button=" not-active"; } ?> product->product_parent_id) { $result = vmText::_('COM_VIRTUEMART_EDIT').' ' . $this->product_parent->product_name; echo ' | '.JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id='.$this->product->product_parent_id), $this->product_parent->product_name, array('title' => $result)).' | '.$this->parentRelation; } ?>
product_childs)>0 ) { $customs = array(); if(!empty($this->product->customfields)){ foreach($this->product->customfields as $custom){ //vmdebug('my custom',$custom); if($custom->field_type=='A'){ $customs[] = $custom; } } } // vmdebug('ma $customs',$customs); ?> product_childs as $child ) { $i = 1 - $i; ?> custom_value; if(isset($child->$attrib)){ $childAttrib = $child->$attrib; } else { //vmdebug('unset? use Fallback product_name instead $attrib '.$attrib,$child); $childAttrib = $child->product_name; } ?>
custom_value)))?> foo
virtuemart_product_id), $child->slug, array('title' => vmText::_('COM_VIRTUEMART_EDIT').' '.$child->product_name)) ?> product_in_stock ?> product_ordered ?> virtuemart_product_id.'][published]', $child->published) ?>