Magento 2.x: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
Then Click "Clear Cache".
Then Click "Clear Cache".


== Varnish Cache ==
Magento 2 May have Varnish Cache enabled.
Magento 2 May have Varnish Cache enabled.
This is a HTML Page Cache and caches on a page basis.
This is a HTML Page Cache and caches on a page basis.

Revision as of 11:44, 14 December 2021

Tag Installation

refer to Mirza

Conversion Tracking

Add to Head

Go to:

Admin Panel > Content > Configuration

Clearing Cache

Go to:

Admin Panel > System > Cache Management

Then Click "Clear Cache".

Varnish Cache

Magento 2 May have Varnish Cache enabled. This is a HTML Page Cache and caches on a page basis. If this is enabled this needs to be cleared as well.

This will be located underneath the other cache options.

Feeds

All Major feed plugins for Magento 2.x are paid for plugins.

WyoMind Data Feed Manager plugin

Go to:

Admin Panel > WyoMind > Data Feed Manager > Data Feeds

XML to Use:

<item>
<!-- Basic Product Information -->
<g:id>{{product.sku}}</g:id>
<title>{{product.name}}</title>
<link>{{parent.url | product.url}}</link>
<description>{{parent.description output="strip_tags($self)" | product.description output="strip_tags($self)"}}</description>
<g:google_product_category>{{product.google_product_category | parent.google_product_category}}</g:google_product_category>

<g:product_type>{{parent.categories nth=0 | product.categories nth=0 }}</g:product_type>
<g:product_type>{{parent.categories nth=1 | product.categories nth=1 }}</g:product_type>
<g:product_type>{{parent.categories nth=2 | product.categories nth=2 }}</g:product_type>
<g:product_type>{{parent.categories nth=3 | product.categories nth=3 }}</g:product_type>
<g:product_type>{{parent.categories nth=4 | product.categories nth=4 }}</g:product_type>
<g:product_type>{{parent.categories nth=5 | product.categories nth=5 }}</g:product_type>
<g:product_type>{{parent.categories nth=6 | product.categories nth=6 }}</g:product_type>
<g:product_type>{{parent.categories nth=7 | product.categories nth=7 }}</g:product_type>
<g:product_type>{{parent.categories nth=8 | product.categories nth=8 }}</g:product_type>
<g:product_type>{{parent.categories nth=9 | product.categories nth=9 }}</g:product_type>

<g:image_link>{{product.image_link index="0" | parent.image_link index="0"}}</g:image_link>
<g:additional_image_link>{{product.image_link index="1" | parent.image_link index="1"}}</g:additional_image_link>
<g:additional_image_link>{{product.image_link index="2" | parent.image_link index="2"}}</g:additional_image_link>
<g:additional_image_link>{{product.image_link index="3" | parent.image_link index="3"}}</g:additional_image_link>
<g:additional_image_link>{{product.image_link index="4" | parent.image_link index="4"}}</g:additional_image_link>
<g:additional_image_link>{{product.image_link index="5" | parent.image_link index="5"}}</g:additional_image_link>

<!-- Availability & Price -->
<g:availability>{{product.availability}}</g:availability>

<g:price>{{product.price currency=GBP vat_rate=0 suffix=" GBP"}}</g:price>
<g:sale_price>{{product.sale_price currency=GBP vat_rate=0 suffix=" GBP"}}</g:sale_price>
<g:sale_price_effective_date>{{product.sale_price_effective_date}}</g:sale_price_effective_date>

<g:condition>{{product.condition}}</g:condition>
<!-- Unique Product Identifiers-->
<g:brand>{{product.brand}}</g:brand>
<g:gtin>{{product.upc}}</g:gtin>
<g:mpn>{{product.mpn}}</g:mpn>
<g:identifier_exists>TRUE</g:identifier_exists>

<!-- Apparel Products -->
<g:gender>{{product.gender}}</g:gender>
<g:age_group>{{product.age_group}}</g:age_group>
<g:color>{{product.color}}</g:color>
<g:size>{{product.size}}</g:size>


<!-- Product Variants -->
<g:item_group_id>{{parent.sku}}</g:item_group_id>
<g:material>{{product.material}}</g:material>
<g:pattern>{{product.pattern}}</g:pattern>

<!-- Shipping -->
<g:shipping_weight>{{product.weight output="float($self,2)" suffix="kg"}}</g:shipping_weight>

<!-- AdWords attributes -->
<g:custom_label_0>{{product.custom_label_0}}</g:custom_label_0>
<g:custom_label_1>{{product.custom_label_1}}</g:custom_label_1>
<g:custom_label_2>{{product.custom_label_2}}</g:custom_label_2>
<g:custom_label_3>{{product.custom_label_3}}</g:custom_label_3>
<g:custom_label_4>{{product.custom_label_4}}</g:custom_label_4>
</item>