The module will be synchronising basic product information from Magento to Copernica. If you want to have all product data, or want to work with the most up to date data in your e-mail template you can fetch all the product data by simple calling an URL which returns the data as XML in your Copernica e-mail template. This URL can be called in two differtent ways, by using the Magento product id, or the SKU of the product. 

Example URL's

Example URL calling by product ID, where you replace {product_id} with the ID of the product withing Magento:

http://www.webshopdomainname.com/index.php/copernica/product/xml/?id={product_id}

Example URL calling by SKU, where you replace {sku} with the ID of the product withing Magento:

http://www.webshopdomainname.com/index.php/copernica/product/xml/?id={sku}&identifier=sku

Example Return

All product data is returned as XML. A sample result can be found below:

<products xmlns:xlink="http://www.w3.org/1999/xlink">
<product xlink:href="http://www.webshopdomainname.com/index.php/copernica/product/xml/id/29/" xlink:title="Product details" xlink:type="resource" xlink:actuate="onRequest" xlink:show="new">
<id>29</id>
<sku>cn_3</sku>
<name>CN Clogs Beach/Garden Clog</name>
<description>
Comfortable and fun to wear these clogs are the latest trend in fashion footwear
</description>
<modified>2008-08-08 00:51:34</modified>
<created>2007-08-24T20:53:19+02:00</created>
<productUrl>
http://www.webshopdomainname.com/index.php/cn-clogs-beach-garden-clog-3.html
</productUrl>
<imageUrl>
http://www.webshopdomainname.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/image.jpg
</imageUrl>
<thumbnailUrl>
http://www.webshopdomainname.com/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/thumbnail.jpg
</thumbnailUrl>
<weight>1.0000</weight>
<price>€ 15,99</price>
<specialPrice>€ 0,00</specialPrice>
<isNew>no</isNew>
<categories/>
<attributes name="Shoes">
<model type="text" label="Model">B000JI2N0I</model>
<manufacturer type="select" label="Manufacturer">CN CLogs</manufacturer>
<cost type="price" label="Cost">1.0000</cost>
<in_depth type="textarea" label="In Depth">
* Made of EVA foam
 * Heel strap keeps shoe on foot
 * Non-marking, slip-resistant outsole
 * Weigh just 6-10 ounces
</in_depth>
<shoe_size type="select" label="Shoe Size">3</shoe_size>
<shoe_type type="select" label="Shoe Type">Sandal</shoe_type>
<color type="select" label="Color">Blue</color>
<gender type="select" label="Gender">Womens</gender>
</attributes>
<parents>
<product xlink:href="http://www.webshopdomainname.com/index.php/copernica/product/xml/id/83/" xlink:title="Product details" xlink:type="resource" xlink:actuate="onRequest" xlink:show="new">
<id>83</id>
<sku>cn</sku>
<name>CN Clogs Beach/Garden Clog</name>
<description>
Comfortable and fun to wear these clogs are the latest trend in fashion footwear
</description>
<modified>2008-08-08 15:00:07</modified>
<created>2007-08-29T12:32:52+02:00</created>
<productUrl>
http://www.webshopdomainname.com/index.php/cn-clogs-beach-garden-clog.html
</productUrl>
<imageUrl>
http://www.webshopdomainname.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/image.jpg
</imageUrl>
<thumbnailUrl>
http://www.webshopdomainname.com/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/thumbnail.jpg
</thumbnailUrl>
<weight>1.0000</weight>
<price>€ 15,99</price>
<specialPrice>€ 0,00</specialPrice>
<isNew>no</isNew>
<categories>
<category id="16">Mens > Shoes > Apparel > Root Catalog</category>
<category id="17">Womens > Shoes > Apparel > Root Catalog</category>
</categories>
<attributes name="Shoes">
<model type="text" label="Model">B000JI2N0I</model>
<in_depth type="textarea" label="In Depth">
<ul>
 <ul class="disc">
 <li>Made of EVA foam<br></li>
 <li>Heel strap keeps shoe on foot<br></li>
 <li>Non-marking, slip-resistant outsole<br></li>
 <li> Weigh just 6-10 ounces<br></li>
</in_depth>
<shoe_type type="select" label="Shoe Type">Sandal</shoe_type>
</attributes>
<parents/>
</product>
</parents>
<children/>
</product>
</products>
  • No labels