AEMexportervariation

The Woocommerce CSV Import AEM exporter variation class.

Defined (1)

The class is defined in the following location(s).

/export/products/variation.php  
  1. class variation extends simple 
  2.  
  3. public function __construct($id, $fields, $writer) 
  4. parent::__construct($id, $fields, $writer); 
  5.  
  6.  
  7. public function setProductType() 
  8. $this->content[ 'product_type' ] = 'product_variation'; 
  9.  
  10. public function handleVariation() 
  11.  
  12. $attributes = new woocsvAttributes(); 
  13. foreach ($attributes->all() as $atts) { 
  14. $this->content[ 'pa_' . $atts ] = get_post_meta($this->id, 'attribute_pa_' . $atts, true); 
  15.  
  16. public function save() 
  17. $this->handleVariation(); 
  18. $this->writer->write($this->getContent()); 
  19.