This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<block type="Mage_Core_Block_Template" name="product.info" template="Mage_Catalog::product/view.twig"> | |
<data service_call="currentProduct" alias="productData" /><!-- makes the currentProduct service available in a template using the $productData variable --> | |
<data service_call="productLinks" alias="links" /><!-- makes the productLinks service available in a template using the $links variable --> | |
... | |
</block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service_calls> | |
<service_call name="searchOptimizedProduct" class="Mage_Seo_Model_Product" method="findByAlias"> | |
<arg name="alias">product_id_{{request.params.id}}_sku_{{data.selectedProduct.sku}}</arg><!-- gets a product alias similar to product_id_0_sku_iphone5345673563 --> | |
</service_call> | |
<service_calls> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service_calls> | |
<service_call name="selectedProduct" class="Mage_Catalog_Model_Product" method="load"> | |
<arg name="id">{{request.params.id}}</arg><!-- ID element from HTTP paraeters substituted during evaluation of the path --> | |
</service_call> | |
<service_call name="locateProduct" class="Mage_Warehouse_Model_Locator" method="find"> | |
<arg name="productSku">{{data.selectedProduct.sku}}</arg><!-- substitutes the SKU of the selected product --> | |
<arg name="zipCode">{{request.params.zip}}</arg><!-- substitutes the zip code from HTTP parameters --> | |
</service_call> | |
<service_calls> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service_calls> | |
<service_call name="selectedProductDetails" service="Mage_Catalog_Service_Product" method="item"> | |
<arg name="productId">{{request.params.id}}</arg> | |
</service_call> | |
</service_calls> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<block type="Mage_Catalog_Block_Product_Twig" module="Mage_Catalog" name="product.info" | |
template="Mage_Catalog::product/view.twig"> | |
<data service-call="selectedProductDetails" alias="product" /> | |
... | |
... | |
</block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service_calls> | |
<service_call name="selectedProductDetails" service="Mage_Catalog_Service_Product" method="item"> | |
<arg name="productId">{{request.params.id}}</arg> | |
</service_call> | |
<service_call name="selectedProductOptions" service="Mage_Catalog_Service_Product" method="getOptions"> | |
<arg name="productId">{{request.params.id}}</arg> | |
</service_call> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<global> | |
<events> | |
<customer_delete_commit_after> | |
<observers> | |
<customer_deleted_event> | |
<class>Mage_Customer_Model_Customer_Webhook_Observer</class> | |
<method>dispatchCustomerDeletedEvent</method> | |
</customer_deleted_event> | |
</observers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<global> | |
<webhook> | |
<subscriptions> | |
<mysubscriber_alias> | |
<name>My Sample Order Created Subscriber</name> | |
<endpoint_url>http://requestb.in/101o8wy1</endpoint_url> | |
<topics> | |
<customer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<config> | |
<system> | |
<section id="carriers"> | |
<group id="acme" translate="label" module="Acme_Carrier" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1"> | |
<label>Acme</label> | |
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0"> | |
<label>Enabled for Checkout</label> | |
<source_model>Mage_Backend_Model_Config_Source_Yesno</source_model> | |
</field> | |
<field id="free_shipping_enable" translate="label" type="select" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<global> | |
<webhook> | |
<formats> | |
<json> | |
<label>My-JSON</label> | |
<options> | |
<default_formatter>Mage_Webhook_Model_Formatter_Json</default_formatter> | |
</options> | |
<formatter_factory>MyCustomClass_Webhook_Model_Formatter_Factory_Json</formatter_factory> | |
</json> |