<-- Back

Shopware 5

GOOGLE SHOPPING UNTER SHOPWARE 5 EINRICHTEN

Anlegen von zwei Freitextfeldern

Artikel (s_articles_attributes):

Checkbox: Google Shopping Export
Einfacher Text: Hier kommt die Google Shopping Kategorie rein

Im Google Feed > Weitere Filter

Eigene Filter den Wert: at.attr4=”1″

Hier muss das Attribut 4 mit dem Attribut angelegten Checkbox ausgetauscht werden.

Kopfzeile des Shopping Feeds: XML

<?xml version= ”1.0″ encoding=”UTF-8″ ?>
<rss version= ”2.0″ xmlns:g= ”http://base.google.com/ns/1.0″ xmlns:atom= ”http://www.w3.org/2005/Atom”>
<channel>
<atom:link href= ”http://{$sConfig.sBASEPATH} /engine/connectors/export/ {$sSettings.id} /{$sSettings.hash}/ {$sSettings.filename}” rel=”self” type=”application/rss+xml” />
<title> {$sConfig.sSHOPNAME|escape} </title>
<description> Beschreibung im Header hinterlegen </description>
<link> http://{$sConfig.sBASEPATH} </link>
<language> DE </language>
<image>
<url> http://{$sConfig.sBASEPATH} /media/image/b2/a4/4c/logo.png </url>
<title> {$sConfig.sSHOPNAME|escape} </title>
<link> http:// {$sConfig.sBASEPATH} </link>
</image>

Der Mediapfad ist der Pfad zum Shoplogo und muss angepasst werden.

Template des Shopping Feeds XML

<item>
<g:id>{$sArticle.ordernumber|escape}</g:id>
<g:item_group_id> {$sArticle.articleID|escape} </g:item_group_id>
<title> {$sArticle.name|strip_tags| strip|trim|truncate:60:”…”:true| escape|regex_replace:”#[^\w\.%&\-+ öüäÖÜÄß]#iu”} {$sArticle.additionaltext}</title>
<description> {$sArticle.description_long| strip_tags|strip|truncate:900:”…”| escape} </description>
<g:google_product_category> {$sArticle.attr5|escape:”xml” } </g:google_product_category>
<g:product_type> {$sArticle.articleID| category:” > “|escape} </g:product_type>
<link> {$sArticle.articleID| link:$sArticle.name| escape} </link>
<g:image_link> {$sArticle.image| image:1} </g:image_link>
<g:condition> neu</g:condition>
<g:availability> {if $sArticle.esd} auf Lager {elseif $sArticle.instock>0} auf Lager {elseif $sArticle.releasedate && $sArticle.releasedate| strtotime > $smarty.now} vorbestellbar {elseif $sArticle.shippingtime} vorbestellbar {else}nicht auf Lager{/if} </g:availability>
<g:price> {$sArticle.price| format:”number”} </g:price>
<g:brand> {$sArticle.supplier| escape} </g:brand>
<g:gtin> {$sArticle.ean| escape} </g:gtin>
<g:mpn> {$sArticle.suppliernumber| escape} </g:mpn>
<g:shipping>
<g:country> DE </g:country>
<g:service> Standard </g:service>
<g:price> {$sArticle | @shippingcost: ”prepayment” : ”de”|escape:number} </g:price>
</g:shipping>
{if $sArticle.changed} <pubDate> {$sArticle.changed|date_format:”%a, %d %b %Y %T %Z” } </pubDate> {/if}
</item>

Das Kategorie Attribut {$sArticle.attr5|escape:”xml”} im Template muss an das angelegte Freitextfeld angepasst werden.

Ab PHP 7.2 muss regex_replace:”#[^\w\.%&\-+ öüäÖÜÄß]#iu” entfernt werden.

Google Shopping Produkt Kategorien

Die offizielle Liste der Google Shopping Produkt Kategorien findet ihr hier: https://support.google.com/
merchants/
answer/
6324436?hl=de

Um die Kategorie herauszufinden einfach mal unter Google Shopping nach entsprechenden Produkten suchen. Hier z.B. erkennt man die Kategorie 5879 aus der URL
https://www.google.com/search?

hl=de&tbm=shop&tbs=cat:5879&

q=roller&sa=X&ved=0ahUKEwj46a

-TtdLjAhWHGuwKHQwr
BekQthUIDQ

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Read more and subscribe

Here’s more cool stuff

Read what's next.