Benutzer-Werkzeuge

Webseiten-Werkzeuge


vm21_extension_upgrade

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
vm21_extension_upgrade [2014/01/19 16:42] – [section 1] reinholdvm21_extension_upgrade [2014/01/19 16:46] reinhold
Zeile 7: Zeile 7:
  
 PROBLEMS: PROBLEMS:
-  * -) Custom fields: param changes in product are NOT saved +  * Custom fields: param changes in product are NOT saved 
-  * -) fields are not properly displayed (param in xml are used) +  * fields are not properly displayed (param in xml are used) 
-  * -) VirtueMartModelCustomfields::getproductCustomslist or VirtueMartModelCustomfields::getCustomEmbeddedProductCustomFields?? What's the change?+  * VirtueMartModelCustomfields::getproductCustomslist or VirtueMartModelCustomfields::getCustomEmbeddedProductCustomFields?? What's the change?
  
  
Zeile 26: Zeile 26:
  return $this->declarePluginParams('custom', $name, $id, $data);  return $this->declarePluginParams('custom', $name, $id, $data);
  }  }
 +  
  function plgVmSetOnTablePluginParamsCustom($name, $id, &$table){  function plgVmSetOnTablePluginParamsCustom($name, $id, &$table){
  return $this->setOnTablePluginParams($name, $id, $table);  return $this->setOnTablePluginParams($name, $id, $table);
Zeile 32: Zeile 32:
  
 TO: TO:
 +<code>
   function plgVmDeclarePluginParamsCustom(&$data){   function plgVmDeclarePluginParamsCustom(&$data){
   return $this->declarePluginParams('custom', $data);   return $this->declarePluginParams('custom', $data);
Zeile 39: Zeile 40:
   return $this->setOnTablePluginParams($name, $id, $table);   return $this->setOnTablePluginParams($name, $id, $table);
   }   }
 +</code>
  
 ----  ---- 
Zeile 91: Zeile 92:
 ===== CHANGED TRIGGERS: ===== ===== CHANGED TRIGGERS: =====
  
-  * -) signature: %%plgVmOnViewCart($product,$row,&$html)%% => %%plgVmOnViewCart(&$product, &$productCustom, &$html) %% +  * signature: %%plgVmOnViewCart($product,$row,&$html)%% => %%plgVmOnViewCart(&$product, &$productCustom, &$html) %% 
-  * -) signature: %%plgVmDisplayInOrderBE($item, $row, &$html)%% => %%plgVmDisplayInOrderBE(&$item, $productCustom, &$html)%% +  * signature: %%plgVmDisplayInOrderBE($item, $row, &$html)%% => %%plgVmDisplayInOrderBE(&$item, $productCustom, &$html)%% 
-  * -) signature: %%plgVmDisplayInOrderFE($item, $row, &$html)%% => %%plgVmDisplayInOrderBE(&$item, $productCustom, &$html)%% +  * signature: %%plgVmDisplayInOrderFE($item, $row, &$html)%% => %%plgVmDisplayInOrderBE(&$item, $productCustom, &$html)%% 
-  * -) signature: %%plgVmSetOnTablePluginParamsCustom($name, $id, &$table)%% => %%plgVmSetOnTablePluginParamsCustom($name, $id, &$table,$xParams)%% +  * signature: %%plgVmSetOnTablePluginParamsCustom($name, $id, &$table)%% => %%plgVmSetOnTablePluginParamsCustom($name, $id, &$table,$xParams)%% 
-  * -) %%plgVmCalculateCustomVariant($product, &$productCustomsPrice, $selected)%% => %%plgVmPrepareCartProduct($product, &$productCustomsPrice,$selected,&$modificatorSum)%%+  * %%plgVmCalculateCustomVariant($product, &$productCustomsPrice, $selected)%% => %%plgVmPrepareCartProduct($product, &$productCustomsPrice,$selected,&$modificatorSum)%%
  
  
  
 Various:  Various: 
-  * -) plgVmOnProductEdit: parseCustomParams not needed any more? +  * plgVmOnProductEdit: parseCustomParams not needed any more? 
-  * -) plgVmOnDisplayProductVariantFE seems to be changed to plgVmOnDisplayProductFE +  * plgVmOnDisplayProductVariantFE seems to be changed to plgVmOnDisplayProductFE 
-  * -) plgVmOnViewCart: Change foreach loop to +  * plgVmOnViewCart: Change foreach loop to 
-  * foreach($product->customProductData[$productCustom->virtuemart_custom_id][$productCustom->virtuemart_customfield_id] as $name => $value) +<code>foreach($product->customProductData[$productCustom->virtuemart_custom_id][$productCustom->virtuemart_customfield_id] as $name => $value)</code> 
-  * -) plgVmDisplayInOrderBE: Need to assign $item->productCustom = $productCustom; +  * plgVmDisplayInOrderBE: Need to assign $item->productCustom = $productCustom; 
-  * -) plgVmDisplayInOrderFE: Need to assign $item->productCustom = $productCustom; +  * plgVmDisplayInOrderFE: Need to assign $item->productCustom = $productCustom; 
-  * -) New trigger? plgVmGetTablePluginParams +  * New trigger? plgVmGetTablePluginParams 
-  * -) plgVmCalculateCustomVariant: use $modificatorSum instead of $productCustomsPrice->custom_price to set the price modification +  * plgVmCalculateCustomVariant: use $modificatorSum instead of $productCustomsPrice->custom_price to set the price modification
-  * +
  
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki