Esempio n. 1
0
 public function addAdditionalFeature2Product($featureId, $productId)
 {
     $feature = $this->getAdditionalFeature($featureId);
     $currencies = $this->getCurrenciesRatios();
     foreach ($currencies as $cur) {
         $row = array('afp_afid' => $featureId, 'afp_pid' => $productId, 'afp_curid' => $cur['c_id'], 'afp_price' => Price::calcPrice($feature['af_default_price'], $cur['c_ratio'], $cur['c_code']));
         $this->allDbAdapter->insert('pa_adfeatures_prices', $row);
     }
 }