Пример #1
0
 public function getCustomVariant($product, &$productCustomsPrice, $selected)
 {
     if ($productCustomsPrice->custom_element !== $this->_name) {
         return false;
     }
     vmPlugin::declarePluginParams('vmcustom', $productCustomsPrice->custom_element, $productCustomsPrice->custom_jplugin_id, $productCustomsPrice);
     // 		VmTable::bindParameterable($productCustomsPrice,'custom_params',$this->_varsToPushParam);
     $pluginFields = JRequest::getVar('customPlugin', null);
     if ($pluginFields == null) {
         $pluginFields = json_decode($product->customPlugin, true);
     }
     return $pluginFields[$productCustomsPrice->virtuemart_customfield_id][$this->_name];
 }