Skip to content

Commit

Permalink
DATA shipping service
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesnowden committed Oct 18, 2018
1 parent 2313d42 commit d763a2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/LukeSnowden/GoogleShoppingFeed/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ public function gtin($gtin)
}

/**
* [is_bundle description]
* @param [type] $bundle [description]
* @return boolean [description]
* @param $bundle
*/
public function is_bundle($bundle)
{
Expand All @@ -225,7 +223,7 @@ public function identifier_exists($identifier)
public function product_type($productType)
{
$node = new Node('product_type');
$brand = $this->safeCharEncodeText($productType);
$productType = $this->safeCharEncodeText($productType);
$this->nodes['product_type'] = $node->value($productType)->_namespace($this->namespace)->addCdata();
}

Expand Down Expand Up @@ -265,7 +263,7 @@ public function availability_date($availabilityDate)
public function shipping($code, $service, $cost, $region = null)
{
$node = new Node('shipping');
$value = "<g:country>{$code}</g:country><g:service>{$service}</g:service><g:price>{$cost}</g:price>";
$value = "<g:country>{$code}</g:country><g:service><![CDATA[{$service}]]></g:service><g:price>{$cost}</g:price>";

if($region) {
$value .= "<g:region>{$region}</g:region>";
Expand Down

0 comments on commit d763a2d

Please sign in to comment.