Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
xcommerce-gists / Magentostudy_News.xml
Created January 17, 2014 22:00
Sample app/code/etc/modules/Magentostudy_News.xml for the News Management extension
<?xml version="1.0"?>
<!--
/**
* Module initial config
*
* @author Magento
*/
-->
<config>
<modules>
@xcommerce-gists
xcommerce-gists / sample-item-master.xml
Last active January 2, 2016 20:19
eBay Enterprise Item Master feed example
<?xml version="1.0" encoding="utf-8"?>
<ItemMaster>
<MessageHeader>
... <!-- omitted for brevity -->
</MessageHeader>
<Item operation_type="Add" gsi_client_id="YOUR-CLIENT-ID" catalog_id="45">
<ItemId>
<ClientItemId>45-000906011391</ClientItemId>
</ItemId>
<BaseAttributes>
@xcommerce-gists
xcommerce-gists / content-master-example.xml
Last active January 2, 2016 18:18
eBay Enterprise Content Master Feed example
<?xml version="1.0" encoding="utf-8"?>
<ContentMaster>
<MessageHeader>
... <!-- omitted for brevity -->
</MessageHeader>
<Content catalog_id="45" gsi_client_id="YOUR-CLIENT-ID">
<UniqueID>45-B16F3D3E</UniqueID>
<ProductLinks> <!-- Associates this product with the listed related and cross-sell products -->
<ProductLink link_type="crosssell" operation_type="Add">
<LinkToUniqueID>45-69ED5562</LinkToUniqueID>
@xcommerce-gists
xcommerce-gists / e2bc.xml
Last active January 2, 2016 10:08
Sample app/etc/e2bc.xml
<?xml version='1.0' encoding="utf-8" ?>
<!--
Magento to Exchange platform mappings:
The below configurations translate from Magento to Exchange.
Copy this file to eb2c.xml and configure the appropriate values below.
-->
<config>
<default>
<eb2ccore>
<!--
@xcommerce-gists
xcommerce-gists / hello.phtml
Last active January 1, 2016 08:29
Magento simple Hello World extension: Template
/**
* Magento simple Hello World extension: Template
*
* Template that formats static text
* provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
*/
@xcommerce-gists
xcommerce-gists / hello.xml
Last active January 1, 2016 08:29
Magento simple Hello World extension: Sample layout
<!--
/**
* Magento simple Hello World extension: Sample layout
*
* Sample layout for the simple Hello World extension
* provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
*/
@xcommerce-gists
xcommerce-gists / IndexController.php
Last active January 1, 2016 06:39
Magento simple Hello World extension: Index action controller
/**
* Magento simple Hello World extension: Index action controller
*
* Action controller that loads and renders the layout
* provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2013 eBay Inc. (http://www.magentocommerce.com)
*/
@xcommerce-gists
xcommerce-gists / Hello.php
Last active January 1, 2016 06:39
Magento simple Hello World extension: Template helpers
/**
* Magento simple Hello World extension: Template helpers
*
* Helper classes for the template
* provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
*/
@xcommerce-gists
xcommerce-gists / Tutorials_HelloWorld.xml
Last active January 1, 2016 01:59
Magento simple Hello World extension: Application configuration file
<!--
/**
* Magento simple Hello World extension: Application configuration file
*
* Specifies the extension's namespace (Tutorials_HelloWorld),
* that the extension is active, and is in the community
* code pool. Provided for documentation purposes for the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
@xcommerce-gists
xcommerce-gists / config.xml
Last active January 1, 2016 01:59
Magento simple Hello World extension: Extension configuration file
/**
* Magento simple Hello World extension: Extension configuration file
*
* Every Magento extension must have a config.xml that specifies
* necessary configuration information.
* Provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
*/