File: /hosting/kak.bg/web/wp-content/plugins/wp-all-export-pro/src/App/Field/CostOfGoodsSold.php
<?php
namespace Wpae\App\Field;
class CostOfGoodsSold extends Field
{
const SECTION = 'availabilityPrice';
public function getValue($snippetData)
{
$availabilityPrice = $this->feed->getSectionFeedData(self::SECTION);
if(isset($availabilityPrice['costOfGoodsSold'])) {
return $this->replaceSnippetsInValue($availabilityPrice['costOfGoodsSold'], $snippetData);
} else {
return '';
}
}
public function getFieldName()
{
return 'cost_of_goods_sold';
}
}