jen
10/27/2016 - 9:58 PM

Google Shopping Feed header_template

<mvt:if expr="NOT ISNULL l.settings:record:customfield:main">
    <mvt:assign name="g.full_image_path" value="g.domain:base_url $ l.settings:record:customfield:main" />
<mvt:else>
    <mvt:assign name="g.full_image_path" value="''" />
</mvt:if>

&mvt:record:code;,&mvt:record:name;,&mvt:record:descrip;,&mvt:record:customfield:googleshopping_product_category;,&mvt:record:customfield:googleshopping_product_type;,&mvt:record:url;,&mvt:record:url;,&mvt:global:full_image_path;,&mvt:record:customfield:googleshopping_condition;,&mvt:record:customfield:googleshopping_availability;,&mvt:record:price;,&mvt:record:customfield:googleshopping_color;,&mvt:record:customfield:googleshopping_material;,&mvt:record:weight;,&mvt:record:customfield:googleshopping_gender;,&mvt:record:customfield:googleshopping_age_group;,&mvt:record:customfield:googleshopping_brand;,&mvt:global:future_date;,&mvt:eol:crlf;

<mvt:assign name="g.days_in_future" value="30" />
 
<mvt:assign name="g.days_in_seconds" value="(60*60*24) * g.days_in_future" />
 
<mvt:assign name = "l.settings:month" value = "padl( time_t_month( s.time_t + g.days_in_seconds, 'local' ), 2, '0' )" />
<mvt:assign name = "l.settings:day"   value = "padl( time_t_dayofmonth( s.time_t + g.days_in_seconds, 'local' ), 2, '0' )" />
<mvt:assign name = "l.settings:year"  value = "time_t_year( s.time_t + g.days_in_seconds, 'local' )" />
 
<mvt:assign name="g.future_date" value="l.settings:year $ '-' $ l.settings:month $ '-' $ l.settings:day" />

PRODUCT ID,PRODUCT TITLE,DESCRIPTION,GOOGLE PRODUCT CATEGORY,PRODUCT TYPE,LINK,MOBILE LINK,IMAGE LINK,CONDITION,AVAILABILITY,PRICE,COLOR,MATERIAL,WEIGHT,GENDER,AGE GROUP,BRAND,EXPIRATION_DATE,&mvt:eol:crlf;