Ejemplo n.º 1
0
 /**
  * Get product configuration
  *
  * @return array
  */
 public function getConfiguration()
 {
     $arrConfig = deserialize($this->configuration);
     if (empty($arrConfig) || !is_array($arrConfig)) {
         return array();
     }
     if ($this->hasProduct()) {
         return Isotope::formatProductConfiguration($arrConfig, $this->getProduct());
     } else {
         foreach ($arrConfig as $k => $v) {
             $arrConfig[$k] = new Plain($v, $k);
         }
         return $arrConfig;
     }
 }
Ejemplo n.º 2
0
 /**
  * Get the product configuration
  * This includes customer defined fields and variant options
  *
  * @return array
  */
 public function getConfiguration()
 {
     $arrConfig = array_merge($this->getVariantConfig(), $this->getCustomerConfig());
     return Isotope::formatProductConfiguration($arrConfig, $this);
 }