Skip to content

Commit

Permalink
Added two ways to add google product type field in the data feed to b…
Browse files Browse the repository at this point in the history
…e used in the adwords.
  • Loading branch information
rasseljandavid committed Jul 21, 2011
1 parent b311e45 commit 45959ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cron/generateXMLFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@
$columns.='<g:product_type>';
$columns.= parseAndTrim($prod->google_product_type);
$columns.='</g:product_type>'.chr(13).chr(10);
} elseif(!empty($google_types)) {
$columns.='<g:product_type>';
$columns.= parseAndTrim($google_types);
$columns.='</g:product_type>'.chr(13).chr(10);
}
//$breadcrumb = $prod->storeCategory[0]->getEcomSubcategories();
//eDebug($breadcrumb,true);
Expand Down
6 changes: 6 additions & 0 deletions datafeed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28752,6 +28752,7 @@ CSIB - Combat Service Identification Badge</description>
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand All @@ -28765,6 +28766,7 @@ CSIB - Combat Service Identification Badge</description>
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand Down Expand Up @@ -40778,6 +40780,7 @@ Carry Bag Included</description>
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand Down Expand Up @@ -49793,6 +49796,7 @@ Color: BLACK</description>
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand Down Expand Up @@ -101093,6 +101097,7 @@ COLOR: HEATHER</description>
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand Down Expand Up @@ -135849,6 +135854,7 @@ Available In Sizes XS to XL
<g:brand>Propper</g:brand>
<g:availability>in stock</g:availability>
<g:quantity>99</g:quantity>
<g:product_type>Sporting Goods &gt; Combat Sports</g:product_type>
</item>

<item>
Expand Down

0 comments on commit 45959ae

Please sign in to comment.